Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] pin dependencies for docker build #59

Merged
merged 4 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
ignored:
- DL3008
13 changes: 12 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,15 @@ repos:
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- id: flake8
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
name: Lint Dockerfiles
description: Runs hadolint Docker image to lint Dockerfiles
language: docker_image
types: [dockerfile]
entry: ghcr.io/hadolint/hadolint hadolint
ci:
skip: [hadolint-docker]
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM python:3.9
# https://hub.docker.com/layers/library/python/3.9-slim-bullseye/images/sha256-de58dcff6a8ccd752899e667aded074ad3e8f5fd552969ec11276adcb18930a4
FROM python@sha256:de58dcff6a8ccd752899e667aded074ad3e8f5fd552969ec11276adcb18930a4

ARG DEBIAN_FRONTEND="noninteractive"

Expand All @@ -9,16 +10,14 @@ RUN apt-get update -qq && \

ARG TEMPLATEFLOW_HOME="/templateflow"

RUN pip3 install nilearn==0.9.2 templateflow pybids h5py tqdm&& \
mkdir -p /code && mkdir -p /templateflow

WORKDIR /code

RUN python3 -c "from templateflow.api import get; get(['MNI152NLin2009cAsym', 'MNI152NLin6Asym'])"

COPY [".", "/code"]

RUN pip install --upgrade pip && pip3 install -e .
RUN pip3 install --no-cache-dir pip==23.0.1 && \
pip3 install --no-cache-dir --requirement requirements.txt && \
python3 -c "from templateflow.api import get; get(['MNI152NLin2009cAsym', 'MNI152NLin6Asym'])" && \
pip3 --no-cache-dir install --editable .

ENV TEMPLATEFLOW_HOME=${TEMPLATEFLOW_HOME}

Expand Down
33 changes: 33 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
astor==0.8.1
bids-validator==1.14.0
certifi==2023.11.17
charset-normalizer==3.3.2
click==8.1.7
docopt==0.6.2
formulaic==0.5.2
h5py==3.10.0
idna==3.6
interface-meta==1.3.0
joblib==1.3.2
lxml==4.9.3
nibabel==5.2.0
nilearn==0.9.2
num2words==0.5.13
numpy==1.26.2
packaging==23.2
pandas==2.1.4
pybids==0.15.6
python-dateutil==2.8.2
pytz==2023.3.post1
requests==2.31.0
scikit-learn==1.3.2
scipy==1.11.4
six==1.16.0
SQLAlchemy==1.3.24
templateflow==0.8.1
threadpoolctl==3.2.0
tqdm==4.66.1
typing_extensions==4.9.0
tzdata==2023.3
urllib3==2.1.0
wrapt==1.16.0
Loading