Skip to content

dev2choiz/ci-cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

local docker registry

Launch the docker container registry in a docker container

cd ./registry
sh ./generate-credential.sh
docker-compose up -d

It is ready at the url http://localhost:5000

Jenkins

This command will install jenkins locally

sh ./jenkins/install.sh

Add the jenkins job helloapi

cp ./jenkins/jobs/helloapi /var/lib/jenkins/jobs/helloapi

Add docker registry credential in jenkins as global

username : developer
password : secret
id       : localRegistryCredential

Usage

the goal being to have a ci / cd from commit to prod, you can trigger a build by :

jenkins build