Mercurial > public > ssdt-docker
annotate utils/docker-entrypoint.sh @ 47:a0283d218ff5
handle training instances with prefix in directory name. use docker-compose.yml as template instead of linking. set application property to reduce memory requirements
author | smith@nwoca.org |
---|---|
date | Thu, 04 Feb 2016 22:39:09 +0000 |
parents | 5643072a1af9 |
children | 334d65dac778 |
rev | line source |
---|---|
14
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
1 #!/bin/bash |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
2 set -e |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
3 |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
4 if [ "$1" = 'update' ]; then |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
5 cd $SSDT_HOME |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
6 if [ ! -d ".hg" ]; then |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
7 echo "cloning repository $SSDT_DOCKER to $SSDT_HOME" |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
8 mkdir -p $SSDT_HOME |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
9 hg init |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
10 fi |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
11 echo "pulling updates" |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
12 hg pull -y $SSDT_DOCKER |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
13 hg update default |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
14 |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
15 else |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
16 |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
17 exec "$@" |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
18 |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
19 fi |