observatory-platform
observatory-platform copied to clipboard
Docker build stuck at step when changing airflow user id to large host UID
Regarding https://github.com/The-Academic-Observatory/observatory-platform/blob/aa244153e944ad9d9ddf999895a678cc34b48845/Dockerfile.observatory#L12 and probably https://github.com/The-Academic-Observatory/observatory-platform/blob/aa244153e944ad9d9ddf999895a678cc34b48845/Dockerfile.observatory#L15 as well, but this part isn't reached.
The usermod commands are giving issues on my new work macbook, I suspect because of the large UID. Similar problems at moby/moby#5419 and snw35/cloudenv#1.
For me docker-compose is stuck at this step and will finally give the following error:
ERROR: compose.cli.main.main: Service 'webserver' failed to build: Error processing tar file(exit status 1): write /var/log/faillog: no space left on device
I tried one of the solutions mentioned in moby/moby#5419, adding '-l' or '--no-log-init' to the 'useradd' command. This worked for me, however this parameter doesn't exist for 'usermod'. @jdddog I'm not sure exactly what the difference is between the usermod and useradd command.
It can be circumvented for now by manually changing the host-id and group-id when starting the observatory platform.
E.g. observatory platform start --host-uid 1001 --host-gid 1001