-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
36 lines (29 loc) · 921 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
build:
docker build -t proftpd .
stop:
docker stop proftpd
rm:
docker rm proftpd
run:
docker run --name proftpd --net=host \
-e FTP_DB_HOST=$$FTP_DB_HOST -e FTP_DB_NAME=$$FTP_DB_NAME -e FTP_DB_USER=$$FTP_DB_USER -e FTP_DB_PASS=$$FTP_DB_PASS \
-e MASQ_ADDR=$$MASQ_ADDR \
-v $$FTP_ROOT:/srv/ftp \
-v $$LOGS:/var/log/proftpd \
-v $$(pwd)/.salt:/etc/proftpd/.salt \
-e MOD_TLS=ON \
-v $$(pwd)/tls.conf:/etc/proftpd/tls.conf \
-v $$(pwd)/certs:/etc/proftpd/certs \
-e MOD_EXEC=ON \
-v $$(pwd)/exec:/etc/proftpd/exec \
-e MOD_VROOT=ON \
-v $$(pwd)/.vroot.conf:/etc/proftpd/vroot.conf \
-d proftpd
env_run:
(export $$(cat .env | grep -v ^\# | xargs) && make run)
logs:
docker logs proftpd
curl_list:
curl -v --ssl --insecure --disable-epsv ftp://my-ftp-server.com:21 -u user:pwd
curl_put:
curl -v -T </path/to/file> --ssl --insecure --disable-epsv ftp://my-ftp-server.com:21 -u user:pwd