-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
46 lines (29 loc) · 767 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
VERSION ?= 1.0.0-SNAPSHOT
CONTAINER_NAME ?= vsftpd
.PHONY: build
build:
docker build . -t lhauspie/vsftpd-alpine -t lhauspie/vsftpd-alpine:${VERSION}
.PHONY:
push:
docker push lhauspie/vsftpd-alpine
.PHONY: run
run:
docker run -d --name ${CONTAINER_NAME} -p 20-22:20-22 -p 21100-21110:21100-21110 lhauspie/vsftpd-alpine:${VERSION}
.PHONY: start
start:
docker start ${CONTAINER_NAME}
.PHONY: stop
stop:
docker stop ${CONTAINER_NAME}
.PHONY: clean-container
clean-container:
docker container rm ${CONTAINER_NAME}
.PHONY: clean-images
clean-images:
docker image rm lhauspie/vsftpd-alpine lhauspie/vsftpd-alpine:${VERSION}
.PHONY: clean-all
clean-all: clean-container clean-images
.PHONY: up
up: build run
.PHONY: down
down: stop clean-container