-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
43 lines (34 loc) · 1.75 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
# build Terastitcher binaries
FROM ubuntu:bionic AS terastitcher
RUN apt update
RUN apt install -y git build-essential cmake libscalapack-openmpi-dev openmpi-bin
RUN git clone https://github.com/abria/TeraStitcher
RUN mkdir build-terastitcher
RUN cd build-terastitcher && \
cmake -DWITH_UTILITY_MODULE_teraconverter=ON -DWITH_UTILITY_MODULE_mdatagenerator=ON -DWITH_UTILITY_MODULE_volumeconverter=ON -DWITH_UTILITY_MODULE_mergedisplacements=ON ../TeraStitcher/src && \
make -j `nproc` && \
# need ownership of /usr/local to install without sudo
# chown -R ${USER}:${USER} /usr/local/ && \
make install
# now install CloudReg
FROM intelpython/intelpython3_full
# create environment variables for credentials
ENV SSH_KEY_PATH=/run/secrets/ssh_key
ENV CV_CRED_PATH=/run/secrets/cloudvolume_credentials
# install CloudReg
ADD https://api.github.com/repos/neurodata/CloudReg/git/refs/heads/master version.json
RUN git clone https://github.com/neurodata/CloudReg.git --branch master --single-branch
RUN cd CloudReg && \
pip install -r requirements.txt && \
pip install --pre SimpleITK --find-links https://github.com/SimpleITK/SimpleITK/releases/tag/v2.0rc1 && \
pip install mpi4py
# need to upgrade this package as bug fix
RUN pip install --upgrade protobuf numpy
# installed terastitcher binaries are in /usr/local
# we want terastitcher, teraconverter, mergedisplacements, mdatagenerator
RUN apt install -y libscalapack-openmpi-dev openmpi-bin
COPY --from=terastitcher /usr/local/bin/terastitcher /usr/local/bin/teraconverter /usr/local/bin/mdatagenerator /usr/local/bin/mergedisplacements /usr/local/bin/
ADD entrypoint.sh entrypoint.sh
ENTRYPOINT [ "/bin/bash", "entrypoint.sh" ]
CMD [ "-h" ]
# ENTRYPOINT [ "python", "CloudReg/scripts/colm_pipeline.py" ]