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

Complete CI pipeline demo #41

Open
bensonz opened this issue Sep 28, 2017 · 2 comments
Open

Complete CI pipeline demo #41

bensonz opened this issue Sep 28, 2017 · 2 comments

Comments

@bensonz
Copy link
Collaborator

bensonz commented Sep 28, 2017

Now we can set up a jenkins server and connect to kubernetes. Yet a more detailed example illustrating how a pipeline is created and used is called for.

@bensonz
Copy link
Collaborator Author

bensonz commented Sep 29, 2017

Can not find docker in Jenkins' build pipeline.
screen shot 2017-09-29 at 17 37 48

Not an issue of plugin cuz when I type

kubectl exec -it jenkins-2713620618-c27w2 -- /bin/bash 

and we can see there is /var/run/docker.sock, yet the docker command is not found.

jenkins@ip-10-0-226-111:/$ docker
bash: docker: command not found
jenkins@ip-10-0-226-111:/$ ls                      
bin  boot  dev	docker-java-home  etc  home  lib  lib64  media	mnt  opt  proc	root  run  sbin  srv  sys  tmp	usr  var
jenkins@ip-10-0-226-111:/$ cd var/run
jenkins@ip-10-0-226-111:/var/run$ ls
docker.sock  lock  mount  secrets  utmp

@bensonz
Copy link
Collaborator Author

bensonz commented Oct 13, 2017

Okay I got way too stuck here so I posted a question on stackoverflow. Here's the link:

https://stackoverflow.com/questions/46727012/exposing-the-same-service-with-same-url-but-two-different-ports-with-traefik

Meanwhile I'll go ahead and create our custom slave image (with docker client and kubectl installed).

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

No branches or pull requests

1 participant