Provide a docker image (including "docker", "maven" and "java") to be used in ci integration
955
The purpose of this project is to provide a docker image (including "docker", "maven" and "java") to be used in ci integration.
In your .gitlab-cy.yml file :
image: mougnibas/gitlab-ci-docker
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
services:
- docker:dind
You're now ready to go to invoque maven and docker in your jobs script.
Example from your source directory (Windows Powershell) :
docker run -it --name my-ci -v /var/run/docker.sock:/var/run/docker.sock -v "$(pwd):/mnt/sources" mougnibas/ci bash
cd /mnt/sources
mvn clean package
docker build .
Content type
Image
Digest
Size
490 MB
Last updated
over 7 years ago
docker pull mougnibas/ci