forked from VNOI-Admin/runtimes-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (16 loc) · 886 Bytes
/
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
TAG ?= latest
.PHONY: all image-tier1 image-tier2 image-tier3 test-tier1 test-tier2 test-tier3
all: image-tier1 image-tier2 image-tier3
image-tier1:
cd tier1 && docker build -t vnoj/runtimes-tier1 -t vnoj/runtimes-tier1:$(TAG) -t ghcr.io/vnoj/runtimes-tier1:$(TAG) .
image-tier2: image-tier1
cd tier2 && docker build -t vnoj/runtimes-tier2 -t vnoj/runtimes-tier2:$(TAG) -t ghcr.io/vnoj/runtimes-tier2:$(TAG) .
image-tier3: image-tier2
cd tier3 && docker build -t vnoj/runtimes-tier3 -t vnoj/runtimes-tier3:$(TAG) -t ghcr.io/vnoj/runtimes-tier3:$(TAG) .
test: test-tier1 test-tier2 test-tier3
test-tier1:
docker run --rm -v "`pwd`/test":/code --cap-add=SYS_PTRACE vnoj/runtimes-tier1
test-tier2:
docker run --rm -v "`pwd`/test":/code --cap-add=SYS_PTRACE vnoj/runtimes-tier2
test-tier3:
docker run --rm -v "`pwd`/test-tier3":/code --cap-add=SYS_PTRACE vnoj/runtimes-tier3