You can run Docker commands as a part of your build process by adding them to your build spec. However, Docker is not enabled by default.
To enable Docker:
- You’ll need to be on one of our paid plans.
- Your builds need to be using one of our General Purpose build images.
Contact us and let us know which service needs to have it enabled.
Once you’ve got Docker enabled, you can run tests using LocalStack on Seed by adding something like the following in your
before_compile: - > docker run -d --rm -p 4567-4608:4567-4608 -e DOCKER_HOST=unix:///var/run/docker.sock -v /tmp/localstack:/tmp/localstack -v /var/run/docker.sock:/var/run/docker.sock localstack/localstack
Read more about the build spec options here.