picatz / goldengirl

✨ All that shimmers is gold!
MIT License
3 stars 0 forks source link

implement ftp server with docker #18

Closed picatz closed 6 years ago

picatz commented 6 years ago

There's no offical centos example to pull reference from, but there's this: https://github.com/fauria/docker-vsftpd

reno777 commented 6 years ago

So this needs sftp and ftp, as well as up and down on both correct?

picatz commented 6 years ago

The scoring engine check apparently is the same. Yolo

reno777 commented 6 years ago

Docker file is present, and same with the .conf file. I ran into a problem with getting systemctl to run within docker. I have found a potential fix, but I need to go to bed lmao.

reno777 commented 6 years ago

Didnt mean to close lol oops

picatz commented 6 years ago

@reno777 Yeah you can't run systemd services within docker basically. You should run them directly.

picatz commented 6 years ago

🤔 https://github.com/andrewarrow/paradise_ftp

picatz commented 6 years ago

@reno777 https://github.com/fclairamb/ftpserver 👌

picatz commented 6 years ago
# Creating a storage dir
mkdir data

# Starting the sample FTP server
docker run --rm -d -p 2121-2200:2121-2200 -v $(pwd)/data:/data fclairamb/ftpserver

# Connecting to it and uploading a file
ftp ftp://test:test@localhost:2121
!wget -c -O ftpserver-v0.3 https://github.com/fclairamb/ftpserver/releases/download/v0.3/ftpserver
put ftpserver-v0.3 ftpserver-v0.3
quit
ls -lh data/ftpserver-v0.3
picatz commented 6 years ago

Fixed with https://github.com/picatz/goldengirl/commit/c8d99d65fdd8347d496ef51bc68bd2dc6315b485