Created
March 19, 2015 06:44
-
-
Save abn/30af6e2eb25006ac3b50 to your computer and use it in GitHub Desktop.
Deploy and start docker based Revok Scanner instance on CentOS 7
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
| #!/usr/bin/env bash | |
| yum -y install epel-release | |
| yum -y install docker git | |
| systemctl enable docker | |
| systemctl start docker | |
| mkdir /opt/revok | |
| cd /opt/revok | |
| git clone https://github.com/abn/revok-dockerfiles.git | |
| cd revok-dockerfiles | |
| cp -R runtime-template runtime | |
| chcon -Rt svirt_sandbox_file_t runtime | |
| # map to 80 becayse we can muahahaha | |
| sed -i s/'-p \${WEB_PORT}:\${WEB_PORT}'/'-p 80:\${WEB_PORT}'/ revok-docker-ctl | |
| # need to configure SMTP and passwords as required in prod | |
| # TODO: What 21 said | |
| ./revok-docker-ctl pull | |
| ./revok-docker-ctl start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment