Mercurial > public > ssdt-docker
annotate utils/docker-entrypoint.sh @ 489:47bc2fdeb1a4
USASR-5154 remove keyring
author | belknapSSDT <zach.belknap@mcoecn.org> |
---|---|
date | Fri, 29 Sep 2023 09:41:02 -0400 |
parents | b997ad087ac1 |
children |
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 |
86
b997ad087ac1
DEP-12: modify utils image to pull production branch from ssdt-docker by default
smith@nwoca.org
parents:
74
diff
changeset
|
5 mkdir -p $SSDT_HOME |
14
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
6 cd $SSDT_HOME |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
7 if [ ! -d ".hg" ]; then |
74
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
54
diff
changeset
|
8 echo "cloning repository $SSDT_DOCKER to $SSDT_HOME" |
14
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 |
86
b997ad087ac1
DEP-12: modify utils image to pull production branch from ssdt-docker by default
smith@nwoca.org
parents:
74
diff
changeset
|
11 branch=${2:-production} |
b997ad087ac1
DEP-12: modify utils image to pull production branch from ssdt-docker by default
smith@nwoca.org
parents:
74
diff
changeset
|
12 echo "pulling updates from $SSDT_DOCKER ($branch)" |
14
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
13 hg pull -y $SSDT_DOCKER |
54 | 14 hg revert -a |
86
b997ad087ac1
DEP-12: modify utils image to pull production branch from ssdt-docker by default
smith@nwoca.org
parents:
74
diff
changeset
|
15 hg update $branch |
14
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 else |
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 exec "$@" |
5643072a1af9
DEP-7: formalize ssdt-utils image. add template preview usas compose file
smith@nwoca.org
parents:
diff
changeset
|
20 |
74
541766977a11
add script to connect to telnet console of usxsapp
smith@nwoca.org
parents:
54
diff
changeset
|
21 fi |