Last active
June 1, 2018 22:24
-
-
Save orendain/375341e346cbfb3d00c0d06c00c658f6 to your computer and use it in GitHub Desktop.
Deploy CDA - 04172018
This file contains 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 | |
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