-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (65 loc) · 2.7 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
all:
@echo nothing special
DOCKER_TAG_LINUX := ghcr.io/cubao/build-env-manylinux2014-x64:v0.0.5
docker_build_linux:
docker build -t $(DOCKER_TAG_LINUX) -f Dockerfile.linux .
docker images dockcross/manylinux2014-x64 --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker images $(DOCKER_TAG_LINUX) --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker_push_linux:
docker push $(DOCKER_TAG_LINUX)
docker_pull_linux:
docker pull $(DOCKER_TAG_LINUX)
docker_test_linux:
docker run --rm -v `pwd`:`pwd` -w `pwd` -it $(DOCKER_TAG_LINUX) bash
DOCKER_TAG_WINDOWS := ghcr.io/cubao/build-env-windows-x64:v0.0.1
docker_build_windows:
docker build -t $(DOCKER_TAG_WINDOWS) -f Dockerfile.windows .
docker images dockcross/windows-static-x64 --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker images $(DOCKER_TAG_WINDOWS) --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker_push_windows:
docker push $(DOCKER_TAG_WINDOWS)
docker_pull_windows:
docker pull $(DOCKER_TAG_WINDOWS)
docker_test_windows:
docker run --rm -v `pwd`:`pwd` -w `pwd` -it $(DOCKER_TAG_WINDOWS) bash
DOCKER_TAG_MACOS := ghcr.io/cubao/build-env-macos-arm64:v0.0.1
docker_build_macos:
docker build -t $(DOCKER_TAG_MACOS) -f Dockerfile.macos .
docker images ghcr.io/goreleaser/goreleaser-cross:v1.19.2 --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker images $(DOCKER_TAG_MACOS) --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker_push_macos:
docker push $(DOCKER_TAG_MACOS)
docker_pull_macos:
docker pull $(DOCKER_TAG_MACOS)
docker_test_macos:
docker run --rm -v `pwd`:`pwd` -w `pwd` -it $(DOCKER_TAG_MACOS) bash
DOCKER_TAG_EMSDK := ghcr.io/cubao/build-env-emsdk:v0.0.2
docker_build_emsdk:
docker build -t $(DOCKER_TAG_EMSDK) -f Dockerfile.emsdk .
docker images $(DOCKER_TAG_EMSDK) --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker_push_emsdk:
docker push $(DOCKER_TAG_EMSDK)
docker_pull_emsdk:
docker pull $(DOCKER_TAG_EMSDK)
docker_test_emsdk:
docker run --rm -v `pwd`:`pwd` -w `pwd` -it $(DOCKER_TAG_EMSDK) bash
DOCKER_TAG_U20GUI := ghcr.io/cubao/build-env-u20gui:v0.0.1
docker_build_u20gui:
docker build -t $(DOCKER_TAG_U20GUI) -f Dockerfile.u20gui .
docker images $(DOCKER_TAG_U20GUI) --format "{{.Repository}}:{{.Tag}} -> {{.Size}}"
docker_push_u20gui:
docker push $(DOCKER_TAG_U20GUI)
docker_pull_u20gui:
docker pull $(DOCKER_TAG_U20GUI)
PORT ?= 6081
docker_test_u20gui:
# docker run --rm -v `pwd`:`pwd` -w `pwd` -it $(DOCKER_TAG_U20GUI) bash
# -e OPENBOX_ARGS='--startup /data/startup_command.sh'
docker run --rm -p $(PORT):80 -v /dev/shm:/dev/shm \
-v `pwd`:`pwd` \
-it $(DOCKER_TAG_U20GUI)
# https://stackoverflow.com/a/25817631
echo-% : ; @echo -n $($*)
Echo-% : ; @echo $($*)
ECHO-% : ; @echo $* = $($*)
echo-Tab: ; @echo -n ' '