-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathDockerfile
55 lines (48 loc) · 1.38 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:focal-20210609
LABEL maintainer="[email protected]"
LABEL Name=conp-dataset Version=0.0.1
RUN : \
&& apt-get -yq update \
&& apt-get install -yq --no-install-recommends \
python3-dev \
python3-pip \
curl \
openssh-client \
netbase \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& :
# Retrieve the binaries for the latest version of git-annex.
RUN : \
&& curl \
https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz \
| tar -zxvf - \
&& sh /git-annex.linux/runshell \
&& :
ENV PATH="/git-annex.linux:${PATH}"
# Setup Git for GitHub Actions
RUN : \
&& git config --global user.email "[email protected]" \
&& git config --global user.name "GitHub Action" \
&& :
# Retrieve lastest version of conp-dataset.
RUN : \
&& git clone \
--progress \
--depth=1 \
https://github.com/CONP-PCNO/conp-dataset \
/conp-dataset \
&& :
WORKDIR /conp-dataset
# Install dependencies.
RUN : \
&& find . -name requirements.txt | xargs -I{} pip install --quiet -r {} \
&& :
# Prepare the image for running tests, if needed.
RUN : \
&& datalad install -r scripts/dats_validator \
&& python tests/create_tests.py \
&& :
ENV PYTHONPATH=/conp-dataset
CMD [ "bash" ]