Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to launch the Jenkins Docker PBS node #12

Open
4 tasks
tfnico opened this issue Sep 10, 2015 · 1 comment
Open
4 tasks

Clarify how to launch the Jenkins Docker PBS node #12

tfnico opened this issue Sep 10, 2015 · 1 comment

Comments

@tfnico
Copy link

tfnico commented Sep 10, 2015

I just got the plugin up and running using the docker-based PBS server, but had some issues on the way:

  • The docker container does not expose port 9618, and I think leaving this out lead to a PBS Status panel without any queues in it.
  • The documentation does not clearly state that the Jenkins slave should run inside the docker container (if I understand it correctly). For this you first need to manually install Java inside the container in order to launch the slave process (I saw some failing automatic Java install). yum install java-1.8.0-openjdk.x86_64 inside the container was easier.
  • The container does not expose its own SSH connection where Jenkins can connect, nor does the documentation say to configure a different port than that of the docker host.
  • The documentation does not say which credentials to use for launching the slave in the container. I used the root/root login that ships with the image.

So I roughly ended up with these steps in order to get it working:

docker run -it -h pbs.local -p 10022:22 -p 9618:9618 --privileged agaveapi/torque bash
# the above command will start an interactive shell in the container.
yum install java-1.8.0-openjdk.x86_64 # in order to launch slave
/usr/bin/supervisord # starts pbs server, and sshd
# now create the slave in jenkins with SSH port 10022 and credentials root/root 
@tfnico tfnico changed the title Clarify some points on how to launch the Jenkins PBS node Clarify some points on how to launch the Jenkins Docker PBS node Sep 10, 2015
@tfnico tfnico changed the title Clarify some points on how to launch the Jenkins Docker PBS node Clarify how to launch the Jenkins Docker PBS node Sep 10, 2015
@kinow
Copy link
Member

kinow commented Sep 10, 2015

I hope you don't mind if I shamelessly steal your steps and update the docs in the next days. Or if you have spare time and can submit a pull request (to pbs-plugin's README, as a Wiki page, or even to biouno.github.io) I'll give it a try and merge it.

Thanks @tfnico !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants