Docker image with globally installed Elm compiler, elm-test, and other tools. Suitable for testing/building Elm applications or packages in docker-based CI.
- Based on Alpine Linux image for smaller size (frol/docker-alpine-glibc)
make
,git
,ssh
,bash
,node
, andyarn
are installed- Global
elm
CLI is modified to be called viasysconfcpus
as per the workaround discussed in this issue.- Since Elm 0.19, we can also use Haskell runtime system option like
+RTS -N2
- However, community tools that indirectly use
elm
may not support command line option passing, so in this image we keep wrapping globalelm
CLI withsysconfcpus
. - Number of cores passed to
elm
CLI can be customized usingN_CORES
environment variable. Defaults to 2.
- Since Elm 0.19, we can also use Haskell runtime system option like
- Included CLI tools:
In CircleCI 2.0,
version: 2
jobs:
test:
docker:
- image: ymtszw/elm_for_ci
working_directory: ~/repo
steps:
- restore_cache:
keys:
- repo-{{ .Branch }}-{{ .Revision }}
- repo-{{ .Branch }}-
- repo-
- checkout
- run: elm-test
- save_cache:
paths:
- .
key: repo-{{ .Branch }}-{{ .Revision }}
workflows:
version: 2
build:
jobs:
- test
BSD-3-Clause