-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-all.sh
More file actions
executable file
·62 lines (51 loc) · 1.36 KB
/
Copy pathbuild-all.sh
File metadata and controls
executable file
·62 lines (51 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DOCKER_USER="${DOCKER_USER:-nessnetwork}"
BUILD_ARGS=()
if [[ "${NO_CACHE:-0}" != "0" ]]; then
BUILD_ARGS+=("--no-cache")
fi
# Keep the build order deterministic so dependency images are prepared first.
# Pi 3 Essentials profile (as used by ness-menu-v3.sh)
PI3_IMAGES=(
"emercoin-core"
"yggdrasil"
"dns-reverse-proxy"
"skywire"
"privateness"
"pyuheprng-privatenesstools"
)
# Full image set (includes extras beyond the Pi3 profile)
DEFAULT_IMAGES=(
"emercoin-core"
"yggdrasil"
"dns-reverse-proxy"
"skywire"
"privateness"
"ness-blockchain"
"pyuheprng"
"privatenesstools"
"pyuheprng-privatenesstools"
"ipfs"
"i2p-yggdrasil"
"htcondor-cm"
"htcondor-submit"
"htcondor-execute"
)
if [[ "${PI3_ONLY:-0}" != "0" ]]; then
IMAGES=("${PI3_IMAGES[@]}")
else
IMAGES=("${DEFAULT_IMAGES[@]}")
fi
echo "Building ${#IMAGES[@]} images for namespace '${DOCKER_USER}'..."
for image in "${IMAGES[@]}"; do
context_path="${SCRIPT_DIR}/${image}"
if [[ ! -d "${context_path}" ]]; then
echo "[ERROR] Missing build context: ${context_path}" >&2
exit 1
fi
echo "\n>>> Building ${DOCKER_USER}/${image}:latest"
docker build --progress=plain "${BUILD_ARGS[@]}" -t "${DOCKER_USER}/${image}:latest" "${context_path}"
done
echo "\nAll images built successfully."