-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
30 lines (21 loc) · 768 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
27
28
29
30
.DEFAULT_GOAL := help
IMAGE_TAG := "ssh-port-forward-server"
build: ## build the image
docker build . -t ${IMAGE_TAG}
buildx: ## build & push the image with docker buildx
docker buildx build . --file=./Dockerfile \
--platform=${ARCH} \
--tag=${IMAGE_TAG} \
--output type=image,push=true
start: ## start existing container
docker start ${IMAGE_TAG}
stop: ## stop existing container
docker stop ${IMAGE_TAG}
rm: ## remove existing container
docker rm ${IMAGE_TAG}
attach-it: ## attach to existing container on interactive mode
docker exec -it ${IMAGE_TAG} bash
test: ## run test script
SSH_SERVER_IMAGE=${IMAGE_TAG} bash tools/test.sh
help: ## show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'