Skip to content

Commit 6f1d8d3

Browse files
committed
initial commit
1 parent df3e36c commit 6f1d8d3

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM ubuntu:22.04
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends \
5+
ca-certificates \
6+
bzip2 \
7+
curl \
8+
&& apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10+
11+
12+
# Create a shared $HOME directory
13+
RUN useradd -m -s /bin/bash -G users babs
14+
WORKDIR /home/babs
15+
ENV HOME="/home/babs"
16+
17+
WORKDIR /
18+
RUN echo "2024.04.11"
19+
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
20+
21+
COPY docker/environment.yml /tmp/environment.yml
22+
ENV MAMBA_ROOT_PREFIX="/opt/conda" \
23+
MAMBA_NO_LOW_SPEED_LIMIT=1 \
24+
PIP_DEFAULT_TIMEOUT=100
25+
26+
RUN micromamba config set extract_threads 1 \
27+
&& micromamba create -vv -y -f /tmp/environment.yml \
28+
&& micromamba clean -y -a
29+
30+
ENV PATH=/opt/conda/envs/babs/bin:$PATH
31+
32+
# Configure the git user name and email
33+
RUN git config --global user.name "CircleCI" \
34+
&& git config --global user.email "circleci@example.com"
35+
36+
# install BABS
37+
COPY . $HOME/babs
38+
WORKDIR $HOME/babs
39+
RUN pip install .[tests]
40+
41+
# # pytest BABS
42+
# RUN pytest ~/babs

docker/environment.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: babs
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- apptainer
6+
- git
7+
- git-annex
8+
- pip
9+
- python=3.11
10+
- pip:
11+
- backoff
12+
- coverage
13+
- datalad >= 0.17.2
14+
- datalad_container >= 1.1.6
15+
- filelock >= 3.8.0
16+
- jinja2
17+
- nibabel
18+
- numpy
19+
- pandas
20+
- pyyaml >= 6.0
21+
- qstat >= 0.0.5
22+
- regex
23+
- tqdm
24+
- pytest
25+
- pytest-cov==5.0.0
26+
- pytest-env==1.1.3

0 commit comments

Comments
 (0)