From 6a537e2e9c2b662c986cbf0da1d358ad6539d759 Mon Sep 17 00:00:00 2001 From: Hrafn Malmquist Date: Mon, 12 Aug 2024 11:34:37 +0100 Subject: [PATCH 1/2] Build test_data into Docker image --- .dockerignore | 2 ++ Dockerfile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.dockerignore b/.dockerignore index f72e8b1..8f45f6a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,3 +10,5 @@ !translations !static !assets +!test_data +test_data/10.14469_hpc_* diff --git a/Dockerfile b/Dockerfile index e6685cf..7e2d4e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,4 +26,7 @@ RUN cp -r ./static/. ${INVENIO_INSTANCE_PATH}/static/ && \ invenio collect --verbose && \ invenio webpack buildall +# Make directory owned by Invenio user +RUN chown -R 1000 test_data/ + ENTRYPOINT [ "bash", "-c"] From 5da8f7f2721fb1eefed68cf8a75000bfc2324267 Mon Sep 17 00:00:00 2001 From: Hrafn Malmquist Date: Mon, 12 Aug 2024 17:06:55 +0100 Subject: [PATCH 2/2] Named user in chmod --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7e2d4e9..22bbcfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,6 @@ RUN cp -r ./static/. ${INVENIO_INSTANCE_PATH}/static/ && \ invenio webpack buildall # Make directory owned by Invenio user -RUN chown -R 1000 test_data/ +RUN chown -R invenio test_data/ ENTRYPOINT [ "bash", "-c"]