Skip to content

Instantly share code, notes, and snippets.

@abn
Created March 19, 2015 06:44
Show Gist options
  • Select an option

  • Save abn/30af6e2eb25006ac3b50 to your computer and use it in GitHub Desktop.

Select an option

Save abn/30af6e2eb25006ac3b50 to your computer and use it in GitHub Desktop.
Deploy and start docker based Revok Scanner instance on CentOS 7
#!/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