bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-setup.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-update.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-setup.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-update.sh)
Last active
October 1, 2018 11:56
-
-
Save vjm/fea77232e2bd6bb49f24 to your computer and use it in GitHub Desktop.
Install DevOps applications as Docker Images and auto-start
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
mkdir -p /media/data1 | |
docker create --name elk_stack -p 5601:5601 -p 9200:9200 -p 9998:9998 -v /media/data1:/data1 vjm03/elk | |
curl https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk_stack.conf > /etc/init/elk_stack.conf | |
start elk_stack |
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
docker pull vjm03/elk:latest | |
docker stop elk_stack | |
docker rm elk_stack | |
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-setup.sh) |
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
description "ELK container" | |
author "Vince Montalbano" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker start -a elk_stack | |
end script |
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
mkdir -p /media/data1/jenkins_home | |
mkdir -p /media/data1/jenkins_backup | |
chown -R 1000:1000 /media/data1/jenkins_home | |
chown -R 1000:1000 /media/data1/jenkins_backup | |
docker create --name jenkins_stack -p 50000:50000 -p 8081:8080 -v /media/data1/jenkins_home:/var/jenkins_home -v /media/data1/jenkins_backup:/var/jenkins_backup jenkins | |
curl https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins_stack.conf > /etc/init/jenkins_stack.conf | |
start jenkins_stack |
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
docker pull jenkins:latest | |
docker stop jenkins_stack | |
docker rm jenkins_stack | |
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-setup.sh) |
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
description "Jenkins container" | |
author "Vince Montalbano" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker start -a jenkins_stack | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment