-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #284 from niaid/feature/containers
Adds Dockerfile which can be used to generate a test environment
- Loading branch information
Showing
7 changed files
with
124 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
*.DS_store | ||
|
||
# C extensions | ||
*.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ARG BUILD_IMAGE=ubuntu:20.04 | ||
|
||
FROM ${BUILD_IMAGE} | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update -y && \ | ||
apt install -y python3 unzip wget git python3-pip && \ | ||
apt install -y ca-certificates-java && \ | ||
apt install -y openjdk-8-jdk && \ | ||
apt install -y libblosc1 && \ | ||
apt install -y ffmpeg && \ | ||
apt install -y graphicsmagick && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/*; | ||
|
||
RUN ln -fs /usr/bin/python3.8 /usr/bin/python | ||
|
||
# Setup JAVA_HOME -- useful for docker commandline | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ | ||
|
||
RUN export JAVA_HOME | ||
|
||
# setup IMOD | ||
# Install libGL ? | ||
ARG IMOD=imod_4.11.24_RHEL7-64_CUDA10.1.sh | ||
|
||
RUN wget https://bio3d.colorado.edu/imod/AMD64-RHEL5/${IMOD} && \ | ||
sh ${IMOD} -yes && \ | ||
rm -f ${IMOD} | ||
|
||
ENV IMOD_DIR=/usr/local/IMOD | ||
ENV PATH=$IMOD_DIR/bin:$PATH | ||
|
||
ARG BIOFORMATS2RAW_VERSION=0.7.0 | ||
|
||
WORKDIR /opt/bin | ||
# setup bioformats2raw | ||
RUN wget https://github.com/glencoesoftware/bioformats2raw/releases/download/v${BIOFORMATS2RAW_VERSION}/bioformats2raw-${BIOFORMATS2RAW_VERSION}.zip | ||
RUN unzip bioformats2raw-${BIOFORMATS2RAW_VERSION}.zip && \ | ||
rm bioformats2raw-${BIOFORMATS2RAW_VERSION}.zip | ||
|
||
ENV PATH="/opt/bin/bioformats2raw-${BIOFORMATS2RAW_VERSION}/bin:${PATH}" | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
RUN rm requirements.txt | ||
|
||
WORKDIR /image_portal_workflows | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ARG BUILD_IMAGE=ubuntu:20.04 | ||
|
||
FROM ${BUILD_IMAGE} | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update -y && \ | ||
apt install -y unzip wget && \ | ||
apt install -y ca-certificates-java && \ | ||
apt install -y openjdk-8-jdk && \ | ||
apt install -y libblosc1 && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/*; | ||
|
||
# Setup JAVA_HOME -- useful for docker commandline | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ | ||
|
||
RUN export JAVA_HOME | ||
|
||
ARG BIOFORMATS2RAW_VERSION=0.7.0 | ||
|
||
WORKDIR /opt/bin | ||
|
||
# setup bioformats2raw | ||
RUN wget https://github.com/glencoesoftware/bioformats2raw/releases/download/v${BIOFORMATS2RAW_VERSION}/bioformats2raw-${BIOFORMATS2RAW_VERSION}.zip | ||
|
||
RUN unzip bioformats2raw-${BIOFORMATS2RAW_VERSION}.zip && \ | ||
rm bioformats2raw-${BIOFORMATS2RAW_VERSION}.zip | ||
|
||
ENV PATH="/opt/bin/bioformats2raw-${BIOFORMATS2RAW_VERSION}/bin:${PATH}" | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[pytest] | ||
env = | ||
HEDWIG_ENV=dev | ||
USER=test | ||
|
||
addopts = --strict-markers | ||
markers = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters