-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
26 lines (18 loc) · 584 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
.PHONY : image test-e2e test-e2e-secure
DOCKERFILE_CONTEXT=oshinko-webui-build
image: $(DOCKERFILE_CONTEXT)
docker build -t oshinko-webui $(DOCKERFILE_CONTEXT)
test-e2e: image
test/e2e.sh
test-e2e-secure: image
WEBUI_TEST_SECURE=true test/e2e.sh
clean-context:
-rm -f $(DOCKERFILE_CONTEXT)/Dockerfile
-rm -rf $(DOCKERFILE_CONTEXT)/modules
-rm -rf $(DOCKERFILE_CONTEXT)/*.tar.gz
context: clean-context
cekit generate --descriptor=image.yaml
cp -R target/image/* $(DOCKERFILE_CONTEXT)
$(MAKE) zero-tarballs
zero-tarballs:
-truncate -s 0 $(DOCKERFILE_CONTEXT)/*.tar.gz