Public Repository

Last pushed: 5 months ago
Short Description
Short description is empty for this repo.
Full Description

Create Volume

docker volume create --name CDB_WAR

Build

docker build -t radequin/jenkins:1.0 .

Run

docker run -d --name jenkins -v CDB_Volume:/cdb -v WAR_CDB:/cdb_war -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -p 8085:8080 radequin/jenkins:1.0

Get Initial Admin Password

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

Job Jenkins

sudo cp -rf ./* /cdb sudo rm -rf ./* sudo docker start -i test_maven sudo docker start -i prod_maven sudo cp -a /cdb/target/computerdb.war /cdb_war sudo rm -rf /cdb/*

Docker Pull Command
Owner
radequin

Comments (0)