However, this is still slow compared to linux. The results show a speed improvement of 2.6 to 8 times. elixir- artifacts: /opt/elixir- artifactsĮLIXIR_BUILD_PATH: /opt/elixir- artifacts/_buildĮLIXIR_DEPS_PATH: /opt/elixir- artifacts/deps Update the docker-compose-override.ymlfile to pass through the location of where to put the build and deps files:.Update your source code so you can explicitly set the deps_path and build_path attributes:īuild_path: System.get_env( "ELIXIR_BUILD_PATH") || './_build',ĭeps_path: System.get_env( "ELIXIR_DEPS_PATH") || './deps',.This file is loaded by default unless you explicitly don’t load it by using the -f flag (eg docker-compose -f docker-compose.yml build) will not use the override file, whereas (eg docker-compose build) will use the developer overlay file (as well as the original). Let’s set up a docker-compose-override.ymlfile. For our Elixir service we have dependencies, and build artifacts, that are written to disk, so moving deps and _build folders external to the shared project folder should speed things up. gitignore for hints on what to remove in your project. The minimum set of files we want to sync is the actual source code that is committed into git.
0 Comments
Leave a Reply. |