forked from antoinejaussoin/retro-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.78 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
TARGET_ARCHS?=linux/amd64,linux/arm64,linux/arm/v7
PACKAGE_VERSION?=local
# Use this to test Docker builds manually
# Setup Buildx on x86 systems. Don't use this on M1 Macs.
setup:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name xbuilder --use
build:
docker buildx inspect --bootstrap
docker buildx build --cache-from=retrospected/maintenance:${PACKAGE_VERSION} --pull --platform ${TARGET_ARCHS} -f ./maintenance/Dockerfile -t retrospected/maintenance:${PACKAGE_VERSION} ./maintenance
docker buildx build --cache-from=retrospected/backend:${PACKAGE_VERSION} --pull --platform ${TARGET_ARCHS} -f ./backend/Dockerfile -t retrospected/backend:${PACKAGE_VERSION} ./backend
docker buildx build --cache-from=retrospected/frontend:${PACKAGE_VERSION} --pull --platform ${TARGET_ARCHS} -f ./frontend/Dockerfile -t retrospected/frontend:${PACKAGE_VERSION} ./frontend
single-build:
docker build -f ./maintenance/Dockerfile -t retrospected/maintenance:${PACKAGE_VERSION} ./maintenance
docker build -f ./backend/Dockerfile -t retrospected/backend:${PACKAGE_VERSION} ./backend
docker build -f ./frontend/Dockerfile -t retrospected/frontend:${PACKAGE_VERSION} ./frontend
local:
docker build -f ./backend/Dockerfile -t retrospected/backend:local ./backend
docker build -f ./frontend/Dockerfile -t retrospected/frontend:local ./frontend
install-trivy:
brew install trivy
trivy:
docker build -f ./backend/Dockerfile -t retrospected/backend:trivy ./backend
docker build -f ./frontend/Dockerfile -t retrospected/frontend:trivy ./frontend
trivy image retrospected/backend:trivy
trivy image retrospected/frontend:trivy
translate:
crowdin push sources
crowdin pre-translate --method=mt --engine-id=316468 -l=fr -l=nl -l=ar -l=de -l=it -l=ja -l=uk
crowdin download