Skip to content

Instantly share code, notes, and snippets.

@marians
Last active August 29, 2015 14:16
Show Gist options
  • Save marians/3cce897e354b4640c17f to your computer and use it in GitHub Desktop.
Save marians/3cce897e354b4640c17f to your computer and use it in GitHub Desktop.
Writing to a Giant Swarm volume from a jenkins container
FROM jenkins:latest
COPY test.sh /test.sh
ENTRYPOINT ["/bin/bash", "/test.sh"]
{
"name": "jenkinstest",
"components": {
"component": {
"image": "registry.giantswarm.io/marian/jenkins",
"volumes": [
{
"path": "/var/jenkins_home",
"size": "1 GB"
}
]
}
}
}
#!/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