File tree 4 files changed +95
-1
lines changed
4 files changed +95
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ function usage()
11
11
echo "
12
12
Usage: $0 [-h|--help] [--force]
13
13
14
+ Build the PTG ANGEL system docker container images.
15
+
14
16
Options:
15
17
-h | --help Display this message.
16
18
--force Force image building regardless of workspace hygiene.f
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Pull the docker images.
4
+ #
5
+ set -e
6
+ SCRIPT_DIR=" $( cd " $( dirname " ${0} " ) " && pwd) "
7
+ pushd " $SCRIPT_DIR "
8
+
9
+ function usage()
10
+ {
11
+ echo "
12
+ Usage: $0 [-h|--help]
13
+
14
+ Pull docker images from the registry configured via the environment parameters.
15
+
16
+ Options:
17
+ -h | --help Display this message.
18
+ "
19
+ }
20
+
21
+ # Option parsing
22
+ dc_forward_params=()
23
+ while [[ $# -gt 0 ]]
24
+ do
25
+ case " $1 " in
26
+ -h|--help)
27
+ usage
28
+ exit 0
29
+ ;;
30
+ * ) # anything else
31
+ dc_forward_params+=(" $1 " )
32
+ shift
33
+ esac
34
+ done
35
+
36
+ if [[ " ${# dc_forward_params[@]} " -gt 0 ]]
37
+ then
38
+ # shellcheck disable=SC2145
39
+ echo " Forwarding to docker-compose: ${dc_forward_params[@]} "
40
+ fi
41
+
42
+ docker-compose \
43
+ --env-file " $SCRIPT_DIR " /docker/.env \
44
+ -f " $SCRIPT_DIR " /docker/docker-compose.yml \
45
+ --profile build-only \
46
+ pull " $@ "
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Push the docker images.
4
+ #
5
+ set -e
6
+ SCRIPT_DIR=" $( cd " $( dirname " ${0} " ) " && pwd) "
7
+ pushd " $SCRIPT_DIR "
8
+
9
+ function usage()
10
+ {
11
+ echo "
12
+ Usage: $0 [-h|--help]
13
+
14
+ Push docker images to the registry configured via the environment parameters.
15
+
16
+ Options:
17
+ -h | --help Display this message.
18
+ "
19
+ }
20
+
21
+ # Option parsing
22
+ dc_forward_params=()
23
+ while [[ $# -gt 0 ]]
24
+ do
25
+ case " $1 " in
26
+ -h|--help)
27
+ usage
28
+ exit 0
29
+ ;;
30
+ * ) # anything else
31
+ dc_forward_params+=(" $1 " )
32
+ shift
33
+ esac
34
+ done
35
+
36
+ if [[ " ${# dc_forward_params[@]} " -gt 0 ]]
37
+ then
38
+ # shellcheck disable=SC2145
39
+ echo " Forwarding to docker-compose: ${dc_forward_params[@]} "
40
+ fi
41
+
42
+ docker-compose \
43
+ --env-file " $SCRIPT_DIR " /docker/.env \
44
+ -f " $SCRIPT_DIR " /docker/docker-compose.yml \
45
+ --profile build-only \
46
+ push " $@ "
Original file line number Diff line number Diff line change 1
1
COMPOSE_PROJECT_NAME = angel-system
2
2
3
- PTG_REGISTRY = kitware/ptg-angel
3
+ PTG_REGISTRY = gitlab. kitware.com:4567 /ptg-angel/docker
4
4
PTG_TAG = latest
5
5
6
6
# Directory for the workspace shell to mount files and directories into on the
You can’t perform that action at this time.
0 commit comments