1 | #!/usr/bin/env bash
|
2 |
|
3 |
|
4 |
|
5 | images_to_pull () {
|
6 | source .env
|
7 | export COMPOSE_FILE
|
8 | export COMPOSE_PROJECT_NAME
|
9 |
|
10 | IFS=' ' read -r -a TST <<< $DX_PULL_IMAGES
|
11 | for NAME in "${TST[@]}"
|
12 | do
|
13 | echo NAME: ${NAME}
|
14 | done
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | test_getServiceNames () {
|
22 | source .env
|
23 | export COMPOSE_FILE
|
24 | export COMPOSE_PROJECT_NAME
|
25 |
|
26 | echo "[]:" $(scripts/getServiceNames.js)
|
27 | echo "[--front]:" $(scripts/getServiceNames.js --front)
|
28 | echo "[--watchable]:" $(scripts/getServiceNames.js --watchable)
|
29 | echo "[--testable]:" $(scripts/getServiceNames.js --testable)
|
30 | echo "[--composefile dc.prod.yml]:" $(scripts/getServiceNames.js --composefile dc.prod.yml)
|
31 | echo "[--composefile dc.prod.yml --watchable]:" $(scripts/getServiceNames.js --composefile dc.prod.yml --watchable)
|
32 | echo "[--composefile dc.test.yml]:" $(scripts/getServiceNames.js --composefile dc.test.yml)
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | network_names () {
|
40 | source .env
|
41 | export COMPOSE_FILE
|
42 | export COMPOSE_PROJECT_NAME
|
43 |
|
44 | echo "getNetworkNames:" $(scripts/getNetworkNames.js)
|
45 | echo "getNetworkNames --prepend:" $(scripts/getNetworkNames.js --prepend)
|
46 | }
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | test_volume_names () {
|
53 | source .env
|
54 | export COMPOSE_FILE
|
55 | export COMPOSE_PROJECT_NAME
|
56 |
|
57 | echo "getTestVolumeNames:" $(scripts/getTestVolumeNames.js)
|
58 | }
|
59 |
|
60 | test_volume_names
|