Skip to content

Commit

Permalink
Force the CI to run docker as readonly, disable templateflow auto u…
Browse files Browse the repository at this point in the history
…pdate on import (#29)

* full_test see force the CI to run docker as readonly

* full_test remove -ti

* full_test autoupdate
  • Loading branch information
htwangtw authored Sep 15, 2023
1 parent aa9cf8d commit 5d5a16b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
- name: Test the Docker image
run: |
docker load -i ${HOME}/docker/image.tar
docker run --rm \
docker run --rm --read-only \
-v /home/runner/work/giga_auto_qc/giga_auto_qc/giga_auto_qc/data/test_data:/test_data \
-v ./outputs:/outputs \
-v ./outputs/working_dir:/work \
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ RUN apt-get update -qq && \
ARG TEMPLATEFLOW_HOME="/templateflow"

RUN pip3 install templateflow==0.8.1 && \
mkdir -p /code && mkdir -p /templateflow
mkdir -p /code && mkdir -p ${TEMPLATEFLOW_HOME}

ENV TEMPLATEFLOW_HOME=${TEMPLATEFLOW_HOME}
ENV TEMPLATEFLOW_AUTOUPDATE=off

WORKDIR /code

Expand All @@ -20,6 +23,4 @@ COPY [".", "/code"]

RUN pip3 install -e .

ENV TEMPLATEFLOW_HOME=${TEMPLATEFLOW_HOME}

ENTRYPOINT ["/usr/local/bin/giga_auto_qc"]

0 comments on commit 5d5a16b

Please sign in to comment.