-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmakefile
26 lines (24 loc) · 909 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
26
# Define TAG; e.g.:
# make push TAG=dev # latest=mainline,dev=development
.PHONY: build run log stop push clean
build:
docker build --tag scienceis/uoa-inzight-lite:${TAG} --build-arg GITHUB_PAT=${GITHUB_PAT} .
run: pull
docker run --rm --name lite-${TAG} -p 3838:3838 scienceis/uoa-inzight-lite:${TAG}
log:
docker logs -f lite-${TAG}
stop:
docker stop lite-${TAG}
push:
docker push scienceis/uoa-inzight-lite:${TAG}
clean:
docker image prune
pull:
docker pull scienceis/uoa-inzight-lite:${TAG}
container: .devcontainer/Dockerfile
# combine the two files to create the Dockerfile
.devcontainer/Dockerfile: Dockerfile .devcontainer/Dockerfile.template
@echo "# This file is generated using make - do not edit by hand" > .devcontainer/Dockerfile
@cat Dockerfile >> .devcontainer/Dockerfile
@echo "\n\n" >> .devcontainer/Dockerfile
@cat .devcontainer/Dockerfile.template >> .devcontainer/Dockerfile