From 745f1740cd8cb24db67b6287f67827473c7cee6c Mon Sep 17 00:00:00 2001 From: alexPatrie Date: Wed, 6 Mar 2024 12:51:05 -0500 Subject: [PATCH] updated for release and docker --- .idea/workspace.xml | 13 ++++++------- Dockerfile => container-assets/Dockerfile | 6 ++++-- poetry.lock => container-assets/poetry.lock | 0 pyproject.toml => container-assets/pyproject.toml | 0 scripts/build-container.sh | 6 ++++-- 5 files changed, 14 insertions(+), 11 deletions(-) rename Dockerfile => container-assets/Dockerfile (91%) rename poetry.lock => container-assets/poetry.lock (100%) rename pyproject.toml => container-assets/pyproject.toml (100%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ae744f6b9..6ce6cf9e7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,11 +6,10 @@ - - - - - + + + + @@ -160,7 +159,7 @@ - + diff --git a/Dockerfile b/container-assets/Dockerfile similarity index 91% rename from Dockerfile rename to container-assets/Dockerfile index 270932c24..f945d1e16 100644 --- a/Dockerfile +++ b/container-assets/Dockerfile @@ -10,14 +10,16 @@ ENV DEBIAN_FRONTEND=noninteractive # STORAGE_GCS_CREDENTIALS_FILE="/app/secret/gcs_credentials.json" \ # STORAGE_LOCAL_CACHE_DIR="/app/scratch" +RUN cd .. + WORKDIR /app # copy and make dirs # COPY ./biosimulator_processes /app/biosimulator_processes -COPY ./notebooks /app/notebooks +COPY ../notebooks /app/notebooks # copy files -COPY ./pyproject.toml ./poetry.lock ./data ./scripts/trust-notebooks.sh /app/ +COPY ./container-assets/pyproject.toml ./container-assets/poetry.lock ./data ./scripts/trust-notebooks.sh /app/ # COPY ./scripts/xvfb-startup.sh /xvfb-startup.sh VOLUME /app/data diff --git a/poetry.lock b/container-assets/poetry.lock similarity index 100% rename from poetry.lock rename to container-assets/poetry.lock diff --git a/pyproject.toml b/container-assets/pyproject.toml similarity index 100% rename from pyproject.toml rename to container-assets/pyproject.toml diff --git a/scripts/build-container.sh b/scripts/build-container.sh index 0de4c5c8a..4f3085587 100755 --- a/scripts/build-container.sh +++ b/scripts/build-container.sh @@ -15,8 +15,10 @@ docker buildx inspect --bootstrap set -e -docker build --platform linux/amd64 \ - -t ghcr.io/biosimulators/biosimulator-processes:"${version}" . +docker build \ + --platform linux/amd64 \ + --file container-assets/Dockerfile \ + -t ghcr.io/biosimulators/biosimulator-processes:"${version}" . if [ "${run}" == "-r" ]; then ./scripts/run-container.sh "${version}"