how to create a jenkins pipeline for launching containers in 2 instances of docker machines (centos)

7 views
Skip to first unread message

visar

unread,
Jan 25, 2019, 8:50:44 AM1/25/19
to Jenkins Users
Hi team,

i am trying to automate the pipeline code in Jenkins to launch my web2py customized images in 2 remote servers.

i have my web2py docker image already in docker hub (eg:my/web2py). now i need to make it through jenkins job as code so that developers can execute it and launch the containers whenever they required.

We may need to launch the containers n times with the requirement with named volume concept.

example. right now manually executing the docker command in target machines as below

docker container run -d -8 9000:8000 -v myappdirectory:/home/web2py/web2py/applications my/web2py  
 the aim of the named volume is that, we have to create another Jenkins job to trigger a build( copying the checkouts in svn from Jenkins workspace to web2pys this named volume location) so that they can check the modifications in web2py server url
 
Reply all
Reply to author
Forward
0 new messages