Closed sabre1041 closed 8 years ago
Enable jekyll-asciidoc-docker container to be used as a Jenkins slave for building openshift-playbooks in Jenkins
openshift-playbooks
docker/jekyll-asciidoc-docker
Build a new image
docker build -t rhtconsulting/jekyll-asciidoc .
Run a new container
docker run -it --rm -P rhtconsulting/jekyll-asciidoc /usr/sbin/sshd -D
Determine the port that has been assigned for SSH
docker ps | grep rhtconsulting/jekyll-asciidoc`
Inspect the result. Look for the value preceded by ->22
b6489098f923 rhtconsulting/jekyll-asciidoc "/usr/sbin/sshd -D" 5 minutes ago Up 5 minutes 0.0.0.0:32770->4000/tcp, 0.0.0.0:32771->22/tcp goofy_stallman
In this case, it is port 32771
6.. Attempt to connect to the container via SSH
ssh -p 32771 builder@<DOCKER_HOST>
None
/cc @etsauer
@etsauer Added clarification to message
What does this PR do?
Enable jekyll-asciidoc-docker container to be used as a Jenkins slave for building
openshift-playbooks
in JenkinsHow should this be manually tested?
docker/jekyll-asciidoc-docker
)Build a new image
Run a new container
Determine the port that has been assigned for SSH
Inspect the result. Look for the value preceded by ->22
In this case, it is port 32771
6.. Attempt to connect to the container via SSH
Is there a relevant Issue open for this?
None
Who would you like to review this?
/cc @etsauer