-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1.03 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
#include .env
env_file:=".env"
gen-pass:
@echo "generating passwords into env file"
@echo "password=`openssl rand -base64 12 | tr --delete =`" > $(env_file)
@echo
start:
docker compose up -d
build-image:
echo $(images)
install-with-nginx:
mkdir -p /etc/nginx/conf.d/project-engine/
cp ./jenkins/nginx.locations /etc/nginx/conf.d/project-engine/jenkins.locations
cp ./registry/nginx.locations /etc/nginx/conf.d/project-engine/registry.locations
nginx -t && systemctl reload nginx
upload-over-ssh:
ssh $(host) "rm -fr /tmp/project-engine && mkdir -p /tmp/project-engine /data/project-engine"
scp -r ./* $(host):/tmp/project-engine
ssh $(host) "sudo cp -r /tmp/project-engine/* /data/project-engine"
install-over-ssh:
ssh $(host) "rm -fr /tmp/project-engine && mkdir -p /tmp/project-engine /data/project-engine"
scp -r ./* $(host):/tmp/project-engine
ssh $(host) "sudo cp -r /tmp/project-engine/* /data/project-engine" \
"&& cd /data/project-engine" \
"&& sudo make gen-pass install-with-nginx" \
"&& sudo make start"