-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·43 lines (31 loc) · 880 Bytes
/
build.sh
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
#!/bin/bash
set -e
GIT_FOLDER=".."
DOCKER_IMAGE_PREFIX="flavienperier"
build() {
FOLDER="$1"
NAME="$2"
echo "Build image $NAME"
(
cd "$GIT_FOLDER/$FOLDER"
docker buildx build -t "$DOCKER_IMAGE_PREFIX/$NAME" .
)
}
build "dockerfile-dns" "dns"
build "dockerfile-jupyter" "jupyter"
build "dockerfile-openssl" "openssl"
build "dockerfile-owa" "owa"
build "dockerfile-proxy" "proxy"
build "dockerfile-sandbox-hack" "sandbox-hack"
build "dockerfile-sandbox-dev" "sandbox-dev"
build "flavien-website" "flavien-website"
build "markdown-api" "markdown-api"
build "eco-webserver" "eco-webserver"
echo 'DOMAIN=domain.lan
PASSWORD=password
SANDBOX_LOCATION=/home/user/sandbox-files' > .env
docker compose down
docker compose up -d
sleep 5
curl -x 127.0.0.1:3128 https://website.domain.lan/
curl -x 127.0.0.1:3128 https://jupyter.domain.lan/