Skip to content

Commit

Permalink
Merge pull request #10 from VISIONAI/dev_latest
Browse files Browse the repository at this point in the history
./vmx update dev && ./vmx start 3000 will now start the dev version
  • Loading branch information
quantombone committed Feb 1, 2015
2 parents edad841 + f19e9d5 commit 053d0c7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions vmx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ FOLDERNAME=`date +%Y%a%b%d_%H%M%S`

init () {
echo "Starting containers..."
if [ "$VMXTAG" = ""]; then
VMXTAG=":$VMXTAG"
fi

docker run -d --name vmx-mcr visionai/mcr-2014a 2>/dev/null
docker run -d --name vmx-userdata visionai/vmx-userdata 2>/dev/null
docker run -d --name vmx-middle visionai/vmx-middle 2>/dev/null
docker run -d --name vmx-server visionai/vmx-server 2>/dev/null
docker run -d --name vmx-appbuilder visionai/vmx-appbuilder 2>/dev/null
docker run -d --name vmx-middle:$VMXTAG visionai/vmx-middle 2>/dev/null
docker run -d --name vmx-server:$VMXTAG visionai/vmx-server 2>/dev/null
docker run -d --name vmx-appbuilder:$VMXTAG visionai/vmx-appbuilder 2>/dev/null
touch .vmx-init
}

Expand Down Expand Up @@ -56,11 +60,12 @@ usage () {
echo " - Restore from a backup"
echo " $ ./vmx restore .vmx-backup/2014_FriNov21_20_04"
echo " "
echo " - Update vmx to latest (stable) version"
echo " - Update vmx to the latest version (this is the stable one)"
echo " $ ./vmx update"
echo " or"
echo " $ ./vmx update latest"
echo " - Update vmx to dev version"
echo " "
echo " - Update vmx to dev version (this is the bleeding-edge release)"
echo " $ ./vmx update dev"
echo " "
echo " - Update the vmx-docker-manager"
Expand Down Expand Up @@ -276,6 +281,7 @@ case "$cmd" in
init
fi
export VMXHOSTPORT=$2
export VMXTAG=$3
start_vmx
exit 0
;;
Expand All @@ -289,7 +295,8 @@ case "$cmd" in
update)
export VMXTAG=$2
update_vmx
echo "Stopped vmx"
init
echo "Updated vmx"
exit 0
;;

Expand Down

0 comments on commit 053d0c7

Please sign in to comment.