Open
Description
Quick Summary: I'm trying to setup a container to run tests on students code. The container has to run with docker run --network none
and in such conditions, the compilation takes around 5s where it only takes few hundreds milliseconds if network is available. The behavior is easily reproducible with my main OS (Archlinux) when turning off wifi.
SSCCE
elm init
printf "module Main exposing (main)\n\nimport Html\n\nmain = Html.text \"hello world\"" > src/Main.elm
elm make src/Main.elm --output=/dev/null
rm -rf elm-stuff
# cut network, turn off wifi for example
time elm make src/Main.elm --output=/dev/null
# is hanging for 5s before compiling
- Elm: 0.19.1
- Browser: no
- Operating System: Archlinux | Alpine linux container
Additional info
I've seen that timestamps play a role, but it does not seem to be the only thing. In my current container setup, I'm generating ~/.elm
, elm.json
and elm-stuff
at build time, packing them in a tar archive then unpacking them in the script to run tests. Yet I'm still facing that 5s hang.