community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r1695199 - in /comdev/tools: .svnignore scripts/ scripts/machines.sh
Date Tue, 11 Aug 2015 03:07:02 GMT
Author: rgardler
Date: Tue Aug 11 03:07:01 2015
New Revision: 1695199

URL: http://svn.apache.org/r1695199
Log:
a script for make hyper-v and Azure machines for dev and stage

Added:
    comdev/tools/scripts/machines.sh
Modified:
    comdev/tools/.svnignore
    comdev/tools/scripts/   (props changed)

Modified: comdev/tools/.svnignore
URL: http://svn.apache.org/viewvc/comdev/tools/.svnignore?rev=1695199&r1=1695198&r2=1695199&view=diff
==============================================================================
--- comdev/tools/.svnignore (original)
+++ comdev/tools/.svnignore Tue Aug 11 03:07:01 2015
@@ -1,5 +1,3 @@
-scripts/config.sh
-
 *.cer
 *.pem
 *.pfx

Propchange: comdev/tools/scripts/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Aug 11 03:07:01 2015
@@ -1,12 +1 @@
-scripts/config.sh
-
-*.cer
-*.pem
-*.pfx
-
-# Generated files
-groups.json
-meetups.json
-meetups.mdtext
-meetups.mlist
-meetups.tweets
+config.sh

Added: comdev/tools/scripts/machines.sh
URL: http://svn.apache.org/viewvc/comdev/tools/scripts/machines.sh?rev=1695199&view=auto
==============================================================================
--- comdev/tools/scripts/machines.sh (added)
+++ comdev/tools/scripts/machines.sh Tue Aug 11 03:07:01 2015
@@ -0,0 +1,26 @@
+###########################################################################
+# Setup the machine you need to run the demo's here
+###########################################################################
+
+source ./scripts/config.sh
+
+echo "##########################################################################################"
+echo "Creating "$DEV_MACHINE_TYPE" machine for development with name $DEV_MACHINE_NAME"
+echo "##########################################################################################"
+
+docker-machine create -d $DEV_MACHINE_TYPE $DEV_MACHINE_NAME
+docker-machine env $DEV_MACHINE_NAME
+
+echo "##########################################################################################"
+echo "Creating "$STAGE_MACHINE_TYPE" machine for staging with name $STAGE_MACHINE_NAME"
+echo "##########################################################################################"
+
+case "$STAGE_MACHINE_TYPE" in
+  azure) docker-machine create -d azure --azure-location="$AZURE_LOCATION" --azure-subscription-id="$AZURE_SUBSCRIPTION_ID"
--azure-subscription-cert="$AZURE_CERT_NAME" $STAGE_MACHINE_NAME
+	 ;;
+  *) echo "ERROR: Cannot create machine of type $STAGE_MACHINE_TYPE"
+     ;;
+esac
+
+echo "Unless an error is reported above your VM is now ready to use"
+echo "Remember, you will need to open appropriate endpoints on your VM if you want to access
Docker containers from elsewhere"



Mime
View raw message