Extends official Jenkins image with Docker to be able run jobs inside containers.
- Based on: Official
Jenkins 2.176.1
,Jenkins 2.305
,Jenkins 2.324
andJenkins 2.401
- Included:
- Docker
Note: Provided images require additional configuration for development, staging and production use.
Tag | Jenkins version | Details | Dockerfile |
---|---|---|---|
spryker/jenkins:latest | 2.401.3 | ๐ | |
spryker/jenkins:2.176 | 2.176.1 | ๐ | |
spryker/jenkins:2.305 | 2.305 | ๐ | |
spryker/jenkins:2.324 | 2.324 | ๐ | |
spryker/jenkins:2.401 | 2.401.3 | ๐ |
$ docker pull spryker/jenkins:2.401
FROM spryker/jenkins:2.401
jenkins:
image: spryker/jenkins:2.401
- Linux:
export DOCKER_GID=$(ls -n /var/run/docker.sock | awk '{print $4}')
- MacOS, Windows:
export DOCKER_GID=0
docker run -it --rm --group-add ${DOCKER_GID} -v /var/run/docker.sock:/var/run/docker.sock:ro spryker/jenkins:2.401
jenkins:
image: spryker/jenkins:2.401
user: "1000:${DOCKER_GID}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
...
<builders>
<hudson.tasks.Shell>
<command>
docker run -i --rm \
my-image \
command-to-run
</command>
</hudson.tasks.Shell>
</builders>
...