This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
44 lines (33 loc) · 1.53 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
.PHONY: core dashboard clean
bundle: bundle-core bundle-node
build: dashboard core
build-debug: dashboard core-debug
all: build bundle
builder:
# The source image is manually built from the TilBlechschmidt/rust-musl-builder repository
docker build --platform linux/arm64 --build-arg TAG=arm64 -f distribution/docker/images/builder/Dockerfile -t webgrid/rust-musl-builder:arm64-root .
docker build --platform linux/amd64 --build-arg TAG=amd64 -f distribution/docker/images/builder/Dockerfile -t webgrid/rust-musl-builder:amd64-root .
mkdocs-docker:
docker build -f distribution/docker/images/mkdocs/Dockerfile -t mkdocs .
core:
cd core && ./build.sh --release
core-debug:
cd core && ./build.sh
dashboard:
cd dashboard && yarn && yarn build
mkdir -p .artifacts/web-root
rsync -av --delete ./dashboard/dist/ ./.artifacts/web-root
bundle-core: dashboard core
docker build --platform linux/amd64 -f distribution/docker/images/core/Dockerfile -t webgrid/core:latest .
bundle-node: core
docker build --platform linux/amd64 -f distribution/docker/images/node/Dockerfile -t webgrid/node-firefox:latest --build-arg browser=firefox .
docker build --platform linux/amd64 -f distribution/docker/images/node/Dockerfile -t webgrid/node-chrome:latest --build-arg browser=chrome .
clean:
rm -rf .artifacts
rm -rf core/.cache core/target
rm -rf dashboard/dist dashboard/node_modules
install:
-docker network create webgrid
docker-compose -f distribution/docker/docker-compose.yml up -d
uninstall:
docker-compose -f distribution/docker/docker-compose.yml down