Run environments on external servers without root access, utilizing rootless Docker
We recently encountered two similar cases with specific requirements, so I’ll document how we addressed them. This might be useful for others with similar needs or for extending L3D to support such scenarios.
The primary request from the hosting company was that root access would not be granted, as they manage the server and its software. We are responsible only for everything running inside the Docker containers.
We encountered a few challenges during setup:
- Configuring the GitLab runner within a Docker container
- Insufficient permissions to create projects in the /drupal/* directory, which required moving the projects to our home directory
- We also faced an issue with insufficient permissions to move files and database dumps into container volumes
- Permission issues with the Borgmatic (backup) container volume
- Permission issues with the cron container volume / docker socket
I'll provide the solutions for these issues in the comments.