-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepic-srwapp.docker
46 lines (46 loc) · 1.94 KB
/
epic-srwapp.docker
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
FROM noaaemc/ubuntu-hpc:v1.4
LABEL AUTHOR Redline Performance Solutions LLC (from Penguin Computing recipe)
RUN mkdir -p /home/builder/ufs
WORKDIR /home/builder/ufs
RUN git clone -b feature/singularity https://github.com/noaa-emc/hpc-stack
ENV ZLIB_ROOT=/usr/local/lib
ENV PNETCDF_ROOT=/usr/local/lib
ENV NETCDF_ROOT=/usr/local/lib
ENV CC=mpicc
ENV CXX=mpicxx
ENV FC=mpif90
ENV ESMFMKFILE=/home/builder/opt/lib/esmf.mk
WORKDIR /home/builder/ufs/
RUN git clone https://github.com/ufs-community/ufs-srweather-app.git
WORKDIR /home/builder/ufs/ufs-srweather-app
RUN ./manage_externals/checkout_externals
#RUN git clone --recurse-submodules https://github.com/noaa-emc/UFS_UTILS
#RUN git clone --recurse-submodules https://github.com/ufs-community/ufs-weather-model
#RUN git clone --recurse-submodules https://github.com/NOAA-EMC/UPP
RUN mkdir /home/builder/ufs/ufs-srweather-app/build
WORKDIR /home/builder/ufs/ufs-srweather-app/build
RUN cmake -DCMAKE_INSTALL_PREFIX=/home/builder/opt -DCMAKE_PREFIX_PATH=/home/builder/opt ..
RUN make VERBOSE=1
WORKDIR /home/builder/ufs
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /home/builder/opt/miniconda
ENV PATH=$PATH:/home/builder/opt/miniconda/bin
RUN git clone --recursive https://github.com/NOAA-GSD/contrib_miniconda3.git miniconda3
WORKDIR /home/builder/ufs/miniconda3/environments
#RUN ls -l
#RUN which sed
RUN sed -i '3 a - conda-forge' regional_workflow.yml
RUN sed -i 's/^-/ -/g' regional_workflow.yml
RUN sed -i 's/^ - https/# - https/g' regional_workflow.yml
WORKDIR /home/builder/ufs
RUN conda env create -f /home/builder/ufs/miniconda3/environments/regional_workflow.yml
USER root
RUN \
apt-get update && \
apt-get install -y ruby-full
USER builder
WORKDIR /home/builder/ufs
RUN git clone https://github.com/christopherwharrop/rocoto.git
WORKDIR /home/builder/ufs/rocoto
ENV LIBRARY_PATH=$LIBRARY_PATH:/home/builder/opt/lib
RUN ./INSTALL