-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (32 loc) · 1.58 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
FROM fredhutch/ls2_easybuild_foss:2016b
# easyconfig to build
ENV EASYCONFIG_NAME Python-3.6.4-foss-2016b-fh1.eb
# required OS packages for the build
ENV INSTALL_OS_PKGS "awscli build-essential pkg-config libssl-dev unzip libc6-dev libthread-queue-any-perl\
pandoc"
# os pkg list to be removed after the build - in EasyBuild, the 'dummy' toolchain requires build-essential
# also, the current toolchain we are using (foss-2016b) does not actually include 'make'
# removing build-essential will mean the resulting container cannot build additional software
ENV UNINSTALL_OS_PKGS "build-essential"
# required for xorg-macros <- libX11/1.6.3-foss-2016b
# switch to our non-root user
USER neo
# copy in AWS Batch's "fetch-and-run" for S3-based scripts
COPY aws-batch-helpers/fetch-and-run/fetch_and_run.sh /home/neo/fetch_and_run.sh
# copy in easyconfigs (so many due to missing dependencies in existing easyconfigs)
COPY easyconfigs/* /app/fh_easyconfigs/
# R sources that cannot be programmatically downloaded
COPY sources/* /app/sources/
# run script to download larger sources
RUN /bin/bash /app/sources/download_sources.sh
# install build-essential, build R, remove build-essential
# EVERYTHING beyond build-essential needs to be moved into EB!!!
USER root
RUN apt-get update -y && apt-get install -y $INSTALL_OS_PKGS && \
su -c ". /app/lmod/lmod/init/bash && \
module use /app/modules/all && \
module load EasyBuild && \
eb -l $EASYCONFIG_NAME --robot" - neo && \
apt-get remove -y --purge $UNINSTALL_OS_PKGS && \
apt-get autoremove -y
USER neo