-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (39 loc) · 1.4 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
38
39
40
41
42
43
44
45
46
47
48
49
logs:
docker compose logs -f
prepare:
echo "Adding the repository to Apt sources..."
p2:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
build: down ensureitems
docker compose build --no-cache
down:
docker compose down --remove-orphans
update: down pull build
echo "Proxy updated. Bring it up with make up logs"
up: down ensureitems
docker compose up -d
download:
sudo rm -Rf main.zip proxy.tar.bz2 dkproxy-main
sudo wget https://github.com/dagknows/dkproxy/archive/refs/heads/main.zip
sudo unzip main.zip
sudo tar --strip-components=1 -zcvf proxy.tar.bz2 dkproxy-main
sudo tar -zxvf proxy.tar.bz2
sudo rm -Rf main.zip proxy.tar.bz2 dkproxy-main
sudo chown -R ${USER} .
ensureitems:
touch outpost/requirements.txt
touch cmd_exec/requirements.txt
-mkdir -p ./outpost/sidecar/pyrunner
-mkdir -p ./outpost/sidecar/statuses
-sudo chmod -R a+rw ./outpost/sidecar
-sudo chmod a+rx ./outpost/sidecar ./outpost/sidecar/statuses ./outpost/sidecar/pyrunner
-sudo chmod -R a+rwx cmd_exec/logs
-sudo chmod -R a+rwx outpost/logs
-sudo chmod -R a+rwx outpost/jobs
-sudo chmod -R a+rwx vault/data
pull:
docker pull public.ecr.aws/n5k3t9x2/outpost:latest
docker pull public.ecr.aws/n5k3t9x2/cmd_exec:latest