Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
updated for release and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Mar 6, 2024
1 parent e907022 commit 745f174
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Dockerfile → container-assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions scripts/build-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 745f174

Please sign in to comment.