So call me crazy, but I would like to run an image with two services. Both WordPress (Apache) and an SFTP server. This will be run in a Kubernetes cluster. The reasoning for wanting an SFTP server is to easily edit files in the volume that is mounted by the Docker image, which in Kubernetes is ReadWriteOnly. We tried using an NFS server, but this was a way to slow for our needs.
I am using the Bitnami WordPress Docker image and trying to customize this by installing OpenSSH. The Bitnami image runs as non-root, and thus I am having problems getting the SSH server to start. Forcing the image to run as root makes it work, but this is a security problem and I would like it to run as non-root.
So, has anyone managed this?
I'm also opened to discussing whether or not my setup is a good idea. I've currently this site https://tickarise.com! host on some VPSes, but our idea is to move all of our sites to Kubernetes. Being able to easily edit code using SFTP/FTP is crucial to our workflow.