Customized image with docker and selected plugin pre-backed. This image makes use of docker secrets and runs in a swarm cluster
This image extends the latest version of Jenkins Continuous Integration and Delivery server. Additionally, it comes with the latest stable version of Docker engine and the following plugins are pre-installed:
git clone https://github.com/shazChaudhry/docker-jenkins.git
cd docker-jenkins
vagrant up
vagrant ssh
cd /vagrant
git clone https://github.com/shazChaudhry/docker-jenkins.git && cd docker-jenkins
docker image build --no-cache \
--tag shazchaudhry/docker-jenkins:latest \
--build-arg GIT_COMMIT=$(git log -1 --format=%H) .
Run this command to confirm git commit:-
docker image inspect shazchaudhry/docker-jenkins:latest | jq '.[].ContainerConfig.Labels'
echo "admin" | docker secret create jenkins-user -
echo "admin" | docker secret create jenkins-pass -
docker stack deploy --compose-file=docker-compose.yml jenkins
docker stack services jenkins
admin
admin
docker stack deploy --compose-file=docker-compose.portainer.yml portainer
Use Portainer agent setup to deploy inside a Swarm clustervagrant destroy --force
destroy all VMs that were created above