UNPKG

1.47 kBapplication/x-shView Raw
1#!/usr/bin/env bash
2
3# -- images_to_pull ---------- --- -- -
4
5images_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#images_to_pull
18
19# -- getServiceNames ---------- --- -- -
20
21test_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#test_getServiceNames
36
37# -- network_names ---------- --- -- -
38
39network_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#network_names
49
50# -- network_names ---------- --- -- -
51
52test_volume_names () {
53 source .env
54 export COMPOSE_FILE
55 export COMPOSE_PROJECT_NAME
56
57 echo "getTestVolumeNames:" $(scripts/getTestVolumeNames.js)
58}
59
60test_volume_names