Skip to content

Instantly share code, notes, and snippets.

@orendain
Last active June 1, 2018 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orendain/375341e346cbfb3d00c0d06c00c658f6 to your computer and use it in GitHub Desktop.
Save orendain/375341e346cbfb3d00c0d06c00c658f6 to your computer and use it in GitHub Desktop.
Deploy CDA - 04172018
#!/usr/bin/env bash
docker run --privileged --name sandbox-hdp-security -h sandbox-hdp.hortonworks.com --network=cda --network-alias=sandbox-hdp.hortonworks.com -d hortonworks/sandbox-hdp-standalone:2.6.4 /usr/sbin/sshd -D
docker exec -d sandbox-hdp-security /root/start-sandbox-hdp.sh
sed -i 's/hdpEnabled=false/hdpEnabled=true/g' /sandbox/proxy/generate-proxy-deploy-script.sh
bash /sandbox/proxy/generate-proxy-deploy-script.sh
bash /sandbox/proxy/proxy-deploy.sh
# Add container to sandbox-start.sh script to start the container on VM start
$containerName="sandbox-hdp-security"
cat << EOF >> /sandbox/sandbox-start.sh
docker ps -a | grep $containerName
if [ $? -eq 0 ]; then
docker start $containerName
fi
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment