From d47155ffd4b66bedcafb33e7f629176c6b5d31c6 Mon Sep 17 00:00:00 2001 From: Toshiki Takeuchi Date: Tue, 25 Jun 2024 10:24:05 +0900 Subject: [PATCH] Fix mock FTP server --- docker-compose.yml | 16 ++++++---------- docker/ftp/data/pureftpd.flags | 2 ++ docker/ftp/data/pureftpd.passwd | 1 + docker/ftp/data/pureftpd.pdb | Bin 0 -> 2207 bytes docker/ftp/{ => user}/test.png | Bin 5 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 docker/ftp/data/pureftpd.flags create mode 100644 docker/ftp/data/pureftpd.passwd create mode 100644 docker/ftp/data/pureftpd.pdb rename docker/ftp/{ => user}/test.png (100%) diff --git a/docker-compose.yml b/docker-compose.yml index 5e50487..d7ce192 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,18 +1,14 @@ -version: "3" - services: ftp: - image: stilliard/pure-ftpd - environment: - - PUBLICHOST=localhost - - FTP_USER_NAME=user - - FTP_USER_PASS=password - - FTP_USER_HOME=/home/user + image: crazymax/pure-ftpd:1.0.50 ports: - - "2221:21" + - "2221:2100" - "30000-30009:30000-30009" volumes: - - ./docker/ftp:/home/user + - ./docker/ftp/data:/data + - ./docker/ftp/user:/home/user + environment: + - "AUTH_METHOD=puredb" minio: image: minio/minio diff --git a/docker/ftp/data/pureftpd.flags b/docker/ftp/data/pureftpd.flags new file mode 100644 index 0000000..764d4b8 --- /dev/null +++ b/docker/ftp/data/pureftpd.flags @@ -0,0 +1,2 @@ +-d +-d diff --git a/docker/ftp/data/pureftpd.passwd b/docker/ftp/data/pureftpd.passwd new file mode 100644 index 0000000..0de6ab6 --- /dev/null +++ b/docker/ftp/data/pureftpd.passwd @@ -0,0 +1 @@ +user:$argon2id$v=19$m=8192,t=255,p=1$BVs4arroDASLO2WSDzFrGw$9SLCrMejcjZ3Ir+/h59sS1G/yuyHAhi4zeADvLoEIUI:1003:1005::/home/user/./:::::::::::: diff --git a/docker/ftp/data/pureftpd.pdb b/docker/ftp/data/pureftpd.pdb new file mode 100644 index 0000000000000000000000000000000000000000..86a3d711dfd3f35548f307ff00089534913e3ecc GIT binary patch literal 2207 zcmYk+e^e$?8VB%~4IwrwgqHB`iplh2ib~PUyki=hov4|~2#qP4(I`zb(~J;eTH6w0 zW82-95JCtcgwXD`gb;>p3GHr6=$MxL_=G>)b3XUn=bq=Bd(J)gd-FmIk^_OTa3Y8# zifCepB}g3cB$7fJnPd|phg|X~ppYVpDWQyVDygQ1TI#5$fkv8WriE78Xs3fty6C2d zUi#=~fI)^BW`u2wGR8O)OftnZGl9TP0m29;f=Hr>CWcso#1T&-DWs7}HX(AzC659M zDWaGX$|$FjYHFyZj(Qqsq={x)Xr+yII_RW}ZhGjYkA4OiWQbu#*v2Shj5EO`Q%o}x z2<#jnjBp}|B#LNah$ToI@g$N$8kuAhB8Ob^D4>uciYcLtaw@5&hFa>Vr-4SAXr_f$ z+GwYPPP*u(hhF;VXMjP57-ocRj55YJ6HGG2G&6y~E&;*_CxS?#h$eg3MrzP63Qs2l4@$GrH*b~@;!i*9=8rH_6F7-WcHMi^y` zaVD5#ifLv7f$#ufScFF?c3?+-g8lEpG5bJfFKM=US9W7}X8ZSGPku@yd+{^&CW?L7 zm;H!le-7Y4V)!`+aWJtQ!l4{SkYDgi4kwNyIFdQUa};w)Adw{eWr2C5kjl{A#r;7Ddvw@9lqK3_E;R0&8kc+sOIxgW-E~B2y zxq_`U@Efk=w>0uQuHtH%xQ1)Fj%Kds27XTqH*ynypp`%JC;m(uf8l0sp`BZ~joazq z4({YGI=P#BxR);O<9;5Xn+JJ_hw0%F9_2B5d7LMBl0Kf|X`Z2A`hbX-VnH@zq($sj2amSxLbK%h#u@s;a68&CkzWn!F-EwB>}V#hZfZ`MC?LPAXly zdhN=2ORDB1l%=Mx&re#MuzADgocU#IQnr-N4{gk?ShQr>l8mIp#Cfw*YDPvvS;e~2 OgxRwb<|btPXnYGLZ!eVq literal 0 HcmV?d00001 diff --git a/docker/ftp/test.png b/docker/ftp/user/test.png similarity index 100% rename from docker/ftp/test.png rename to docker/ftp/user/test.png