-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile.RoR
23 lines (20 loc) · 1.04 KB
/
Dockerfile.RoR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# To build for RoR, first check out the flux-model repository
# so that the RAM-SCB and flux-model repos have a common
# parent directory. Then copy .dockerignore into the parent.
# To build:
# docker build -t git.smce.nasa.gov:5050/ccmc-ram-scb/ram-scb -f RAM-SCB/Dockerfile.RoR .
# To run locally (from a directory containing a suitable PARAM.in file):
# docker run -v $(pwd):/input [image ID] -d /runror /input/PARAM.in
FROM ubuntu:20.04
ENV PERL5LIB=.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ssh make gcc git g++ gfortran libopenmpi-dev openmpi-bin libgsl-dev libgsl23 gsl-bin libgsl-dbg libnetcdf-dev libnetcdff-dev nco netcdf-bin python3 python3-pip python-is-python3
RUN pip install --upgrade pip
RUN pip install numpy==1.21 && pip install spacepy==0.6.0 && pip install netCDF4
COPY flux-model /SHIELDS/flux-model
WORKDIR /SHIELDS/flux-model
RUN pip install .
COPY RAM-SCB /SHIELDS
WORKDIR /SHIELDS
RUN ./Config.pl -install -compiler=gfortran -mpi=openmpi -openmp -gsl -ncdf && make
ENTRYPOINT ["python", "launch_run.py"]