Skip to content

Instantly share code, notes, and snippets.

@polaroi8d
Created January 16, 2019 16:17
Show Gist options
  • Save polaroi8d/9a9b21c5f01378acce83688acd4c2ac5 to your computer and use it in GitHub Desktop.
Save polaroi8d/9a9b21c5f01378acce83688acd4c2ac5 to your computer and use it in GitHub Desktop.
Gitlab CI + Testcontainer + Localstack
Problems, docker in docker
https://gitlab.com/gitlab-org/gitlab-runner/issues/3251
The Gitlab CI run with gitlab-runner which running on our computers in a docker. So first we need to configurate a docker in docker architeture.
The CI needs an image with preinstalled java8 and docker. If we don't have one of them we need to install it manually or with before script. This is the first
problem, some docker images has preinstalled docker and java, but can't use with testcontainer. (lots of error)
some usefull link releated to this topic:
- https://gitlab.com/gitlab-org/gitlab-runner/issues/1544
- https://getintodevops.com/blog/the-simple-way-to-run-docker-in-docker-for-ci
- https://medium.com/lucjuggery/about-var-run-docker-sock-3bfd276e12fd
- https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
- https://www.testcontainers.org/ci/ci.html#gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment