-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (57 loc) · 1.33 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
UID=$(shell id -u)
GID=$(shell id -g)
dev-serve:
docker run -it --rm \
-v $(PWD):/tlscerts:ro \
-w /tlscerts \
-p 8080:8080 \
python:3.9 \
python -m http.server 8080
prettier:
docker run -it --rm \
-v $(PWD):/tlscerts \
-u $(UID):$(GID) \
node:15.8 \
sh -c "mkdir ~/.npm-global && npm config set prefix '~/.npm-global' && npm install -g prettier && ~/.npm-global/bin/prettier --write /tlscerts/index.html"
wasm:
docker run -it --rm \
-v $(PWD):/tlscerts \
-w /tlscerts \
-e GOOS=js \
-e GOARCH=wasm \
-e GOCACHE=/tmp/.cache \
-u $(UID):$(GID) \
jchorl/golang \
go build -o main.wasm
test:
docker run -it --rm \
-v $(PWD):/tlscerts:ro \
-w /tlscerts \
-e GOCACHE=/tmp/.cache \
-u $(UID):$(GID) \
jchorl/golang \
go test .
compose:
docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(PWD):$(PWD):ro \
-w $(PWD)/examples \
--env=LANGUAGE=python \
docker/compose:1.27.4 \
sh
integration-build:
docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(PWD):$(PWD):ro \
-w $(PWD)/examples \
--env=LANGUAGE=python \
docker/compose:1.27.4 \
build
integration:
docker run -it --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(PWD):$(PWD):ro \
-w $(PWD)/examples \
--env=LANGUAGE=python \
docker/compose:1.27.4 \
up client