Open tokuchar opened 2 years ago
to run docker from jenkins (on the same docker host) whe must create DID (docker in docker) https://shisho.dev/blog/posts/docker-in-docker/
follow the instruction for debian, but you must install only docker-ce
:
https://docs.docker.com/engine/install/debian/
and inside root user in docker we must:
chmod 777 /var/run/docker.sock
[Jenkins] Working on dynamically branch picking.
[Jenkins] Dynamically branch picking option has been added.
to install docker-compose
:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
logstash:
container_name: logstash
image: logstash:7.16.3
ports:
- '5002:5000'
- '9600:9600'
volumes:
- type: bind
source: /home/opc/jenkins_data
/home/opc/jenkins_data
must be mapped in jenkins container and OCI and ports.conf
must be moved by jenkins to this dir
docker memory limits does not work in version 3* in docker compose here is how to resolve it: https://nickjanetakis.com/blog/docker-tip-78-using-compatibility-mode-to-set-memory-and-cpu-limits
we need to install pipeline-utility-steps
on jenkins host
with Jenkinsfile and docker-compose create:
++stage to test if each part of the env responds correctly ;)