-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (33 loc) · 1.16 KB
/
Makefile
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
#-------------------------------------------------------------------------
#
# Makefile for 4bits
#
# auther:
# "张连壮" <[email protected]>
# "颜博" <[email protected]>
#
# Date:
# 2023.04
#
#-------------------------------------------------------------------------
FILEDESC = "4bits.cn"
all: web-image kubectl-image compose
web-image:
/bin/rm -rf ./server/webserver/web
cp -rf ./web ./server/webserver/web
cp -rf ./config.json ./server/webserver/config.json
cd ./server/webserver/; \
docker build -t `jq -r '.web_image' config.json` .
kubectl-image:
cp -rf ./config.json ./server/kubectl/1.21/config.json
cd ./server/kubectl/1.21/; \
docker build -t `jq -r '.kubectl_image' config.json` .
compose:
cp config.json ./server/versions.json
cp jq-template.awk ./server/jq-template.awk
cd ./server/; \
awk -f jq-template.awk docker-compose.template.yaml > docker-compose.yaml
cp config.json ./server/compose-configs/nginx/templates/versions.json
cp jq-template.awk ./server//compose-configs/nginx/templates/jq-template.awk
cd ./server/compose-configs/nginx/templates; \
awk -f jq-template.awk default.conf.template.conf > default.conf.template