Last active
January 26, 2019 11:18
-
-
Save SterlingAr/bebfeea49a3caa6682328256598c2213 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HELM CHART VALUES | |
Master: | |
ServiceType: ClusterIP | |
Image: "roiupagency/jenkins" | |
ImagePullPolicy: "Always" | |
ImageTag: "latest" | |
NumExecutors: 1 | |
Agent: | |
Privileged: true | |
volumes: | |
- type: HostPath | |
path: /var/run/docker.sock | |
mountPath: /var/run/docker.sock | |
Persistence: | |
Enabled: true | |
StorageClass: "do-block-storage" | |
Size: 15Gi | |
volumes: | |
- name: docker-sock | |
hostPath: | |
path: /var/run/docker.sock | |
mounts: | |
- mountPath: /var/run/docker.sock | |
name: docker-sock | |
rbac: | |
install: true | |
--- | |
### Jenkins Dockerfile for image : "roiupagency/jenkins" | |
FROM jenkins/jenkins | |
USER root | |
RUN mkdir -p /tmp/download && \ | |
curl -L https://download.docker.com/linux/static/stable/x86_64/docker-18.03.1-ce.tgz | tar -xz -C /tmp/download && \ | |
rm -rf /tmp/download/docker/dockerd && \ | |
mv /tmp/download/docker/docker* /usr/local/bin/ && \ | |
rm -rf /tmp/download | |
--- | |
### FULL CONSOLE OUTPUT | |
Started by user admin | |
Running in Durability level: MAX_SURVIVABILITY | |
[Pipeline] node | |
Running on Jenkins in /var/jenkins_home/workspace/test | |
[Pipeline] { | |
[Pipeline] sh | |
+ docker run -d -e MYSQL_ROOT_PASSWORD=87654321 mariadb:10.3.10 | |
[Pipeline] dockerFingerprintRun | |
[Pipeline] sh | |
+ docker inspect -f . richarvey/nginx-php-fpm | |
. | |
[Pipeline] withDockerContainer | |
Jenkins seems to be running inside container a728dad3ee185c9fc2100afa5637f9f0a01628082de35aaba8276c4b897dadd9 | |
$ docker run -t -d -u 0:0 --link 2e142c29d473ac3ce0b3a594d78a5bf0ecf2dff8cf712f4f3e601d42266939c3:mariadb -w /var/jenkins_home/workspace/test --volumes-from a728dad3ee185c9fc2100afa5637f9f0a01628082de35aaba8276c4b897dadd9 -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** richarvey/nginx-php-fpm cat | |
$ docker top 31906d4387beffb5774e399ccfaf63d8615540bb16e023ab85220ce228fcc529 -eo pid,comm | |
[Pipeline] { | |
[Pipeline] sh | |
+ ping -c 2 mariadb | |
ping: bad address 'mariadb' | |
[Pipeline] } | |
$ docker stop --time=1 31906d4387beffb5774e399ccfaf63d8615540bb16e023ab85220ce228fcc529 | |
$ docker rm -f 31906d4387beffb5774e399ccfaf63d8615540bb16e023ab85220ce228fcc529 | |
[Pipeline] // withDockerContainer | |
[Pipeline] sh | |
+ docker stop 2e142c29d473ac3ce0b3a594d78a5bf0ecf2dff8cf712f4f3e601d42266939c3 | |
2e142c29d473ac3ce0b3a594d78a5bf0ecf2dff8cf712f4f3e601d42266939c3 | |
+ docker rm -f 2e142c29d473ac3ce0b3a594d78a5bf0ecf2dff8cf712f4f3e601d42266939c3 | |
2e142c29d473ac3ce0b3a594d78a5bf0ecf2dff8cf712f4f3e601d42266939c3 | |
[Pipeline] } | |
[Pipeline] // node | |
[Pipeline] End of Pipeline | |
ERROR: script returned exit code 1 | |
Finished: FAILURE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment