Use docker run jenkins, and call docker shell api in jenkins.
- copy the .env.example to .env
- modify the
DOCKER_PATH
,LIBLTDL_PATH
,DOCKER_VOLUMES
to match your machine. - to build:
docker-compose build
- to start up:
docker-compose up -d
- to fix
Permission denied
,chown -R NOT_ROOT_USER:NOT_ROOT_USER ${JENKINS_VOLUMES}
to change theJENKINS_VOLUMES
owner.
DOCKER_PATH=/usr/local/bin/docker
LIBLTDL_PATH=/usr/lib/x86_64-linux-gnu/libltdl.so.7
DOCKER_VOLUMES=~/docker-volumes/
DOCKER_PATH=/bin/docker
LIBLTDL_PATH=/lib64/libltdl.so.7
DOCKER_VOLUMES=~/docker-volumes/