-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
41 lines (30 loc) · 1.32 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
deploy: update-image
docker run -it -d --network=host --name wol-web -v ${PWD}/wol-web-data:/wol-server/data huakunshen/wol:latest
deploy-test: update-image
docker run -it --network=host --name wol-web -v ${PWD}/wol-web-data:/wol-server/data huakunshen/wol:latest
update-image:
docker pull huakunshen/wol:latest
build: build-frontend build-backend
build-frontend:
docker compose -f docker-compose-helpers.yml run build-frontend && docker compose -f docker-compose-helpers.yml down
build-backend:
docker compose -f docker-compose-helpers.yml run build-backend && docker compose -f docker-compose-helpers.yml down
download-frontend:
rm -rf ./frontend/dist ./frontend/dist.zip
curl -s https://api.github.com/repos/HuakunShen/wol-web/releases/latest | grep "browser_download_url.*dist\.zip" | cut -d '"' -f 4 | xargs curl -L -o frontend/dist.zip
unzip ./frontend/dist.zip -d ./frontend
dev-backend:
mkdir -p data
docker compose -f docker-compose-helpers.yml run dev-backend
dev-frontend:
docker compose -f docker-compose-helpers.yml run dev-frontend
run-db:
docker compose run db
buildx:
docker buildx build --push \
--platform linux/arm64/v8,linux/arm/v6,linux/arm/v7,linux/amd64 \
-t huakunshen/wol:latest .
clean:
docker compose down
docker compose -f docker-compose-helpers.yml down
docker volume rm wol-web_wol-web-db