From b9d86a4a570240d6878282bf2a94a879ca97baa0 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 25 Jun 2023 09:26:15 +0200 Subject: [PATCH] tool: Enable user initialization in Docker image again --- tool/Dockerfile.dev | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tool/Dockerfile.dev b/tool/Dockerfile.dev index f585d46d..f66dc4ff 100644 --- a/tool/Dockerfile.dev +++ b/tool/Dockerfile.dev @@ -16,8 +16,7 @@ RUN ./occ app:install notes --force --allow-unstable # 4.8.0 RUN ./occ app:install uppush --force --allow-unstable # 1.4.0 RUN ./occ app:enable password_policy -# TODO: This stopped working randomly with apache not being able to bind to the port during build. Must be some docker changes? -#RUN (bash /entrypoint.sh apache2-foreground &) && \ -# until curl -s -o /dev/null http://localhost/status.php; do true; done && \ -# for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost/ocs/v2.php/cloud/user; done +RUN (bash /entrypoint.sh php -S 0.0.0.0:8080 &) && \ + until curl -s -o /dev/null http://localhost:8080/status.php; do true; done && \ + for user in admin user1 user2; do curl -u "$user:$user" -H "ocs-apirequest: true" -s -o /dev/null http://localhost:8080/ocs/v2.php/cloud/user; done COPY --chown=www-data:www-data overlay /usr/src/nextcloud/