Elixir Docker Image Packager test setup for different CI services
--rm
seems to be okay to use.- Must install Elixir via Ubuntu package (
language: elixir
does not work). - Use
language: ruby
instead. - Also do not forget to set
sudo: required
, because we install OS packages.
See: http://docs.travis-ci.com/user/docker/
docker run
: Never use--rm
, it always fails.- Only runs successfully with Docker 1.10+
See: https://circleci.com/docs/docker
- Getting docker running in the docker container ... is an impossible thing.
- Docker-in-Docker seems not working for this service.
- Perhaps the outer container is missing the
--privileged
flag.
See: http://devcenter.wercker.com/docs/pipelines/stacks.html
- Similar to Travis (can even use their
.travis.yml
), but seems not to support running docker itself (in CI step). - Would perhaps need a Docker-in-Docker approach. (within Pre-CI/Post-CI workflow)
See: http://docs.shippable.com/docker_build/
Tell me which one to try.
It must run docker, of course!
REPOSITORY SIZE
# normal build (mix edib)
local/edib_app_test_ci 18.44 MB
# with strip (mix edib --strip)
local/edib_app_test_ci 10.5 MB
# with zip (mix edib --zip)
local/edib_app_test_ci 15.53 MB
# with strip and zip (mix edib --strip --zip)
local/edib_app_test_ci 10.32 MB
# some columns omitted
WARNING: Use --zip
carefully, avoid zipping when using NIFs.
(The compression benefit is small anyway.)