forked from NginxProxyManager/docker-nginx-full
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-build.sh
executable file
·57 lines (47 loc) · 1.36 KB
/
local-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash -e
BLUE='\E[1;34m'
CYAN='\E[1;36m'
YELLOW='\E[1;33m'
GREEN='\E[1;32m'
RESET='\E[0m'
DOCKER_IMAGE=jc21/nginx-full
export OPENRESTY_VERSION=1.21.4.1
export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
export LUA_VERSION=5.1.5
export LUAROCKS_VERSION=3.3.1
# Builds
echo -e "${BLUE}❯ ${CYAN}Building ${YELLOW}latest ${CYAN}...${RESET}"
docker build \
--pull \
--build-arg OPENRESTY_VERSION \
--build-arg CROWDSEC_OPENRESTY_BOUNCER_VERSION \
--build-arg LUA_VERSION \
--build-arg LUAROCKS_VERSION \
-t ${DOCKER_IMAGE}:latest \
-f docker/Dockerfile \
.
echo -e "${BLUE}❯ ${CYAN}Building ${YELLOW}acmesh ${CYAN}...${RESET}"
docker build \
--build-arg BASE_TAG=latest \
-t ${DOCKER_IMAGE}:acmesh \
-f docker/Dockerfile.acmesh \
.
echo -e "${BLUE}❯ ${CYAN}Building ${YELLOW}certbot ${CYAN}...${RESET}"
docker build \
--build-arg BASE_TAG=latest \
-t ${DOCKER_IMAGE}:certbot \
-f docker/Dockerfile.certbot \
.
echo -e "${BLUE}❯ ${CYAN}Building ${YELLOW}acmesh-golang ${CYAN}...${RESET}"
docker build \
--build-arg BASE_TAG=acmesh \
-t ${DOCKER_IMAGE}:acmesh-golang \
-f docker/Dockerfile.acmesh-golang \
.
echo -e "${BLUE}❯ ${CYAN}Building ${YELLOW}certbot-node ${CYAN}...${RESET}"
docker build \
--build-arg BASE_TAG=certbot \
-t ${DOCKER_IMAGE}:certbot-node \
-f docker/Dockerfile.certbot-node \
.
echo -e "${BLUE}❯ ${GREEN}All done!${RESET}"