Last active
August 29, 2015 14:16
-
-
Save marians/3cce897e354b4640c17f to your computer and use it in GitHub Desktop.
Writing to a Giant Swarm volume from a jenkins container
This file contains 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
FROM jenkins:latest | |
COPY test.sh /test.sh | |
ENTRYPOINT ["/bin/bash", "/test.sh"] |
This file contains 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
{ | |
"name": "jenkinstest", | |
"components": { | |
"component": { | |
"image": "registry.giantswarm.io/marian/jenkins", | |
"volumes": [ | |
{ | |
"path": "/var/jenkins_home", | |
"size": "1 GB" | |
} | |
] | |
} | |
} | |
} |
This file contains 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
#!/bin/bash | |
echo "Test" >> /var/jenkins_home/testfile.txt | |
cat /var/jenkins_home/testfile.txt | |
while : | |
do | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment