forked from AER-RC/LBLRTM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 795 Bytes
/
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
# Build LBLRTM and LBLRTM in the latest CentOS environment
FROM centos:6
# install tools necessary for building models
RUN yum -y install make gcc-gfortran && \
yum -y -q update && \
yum clean all
RUN rm -rf /var/cache/yum/*
WORKDIR /LBLRTM
# necessary code for LBLRTM
ADD aer_rt_utils /LBLRTM/aer_rt_utils
ADD build /LBLRTM/build
ADD src /LBLRTM/src
ADD cross-sections/xs /LBLRTM/xs
ADD cross-sections/FSCDXS /LBLRTM/FSCDXS
# build the model and clean up after the build
RUN cd /LBLRTM/build; \
make -f make_lblrtm linuxGNUdbl; \
rm -rf lblrtm_v12.9_linux_gnu_dbl.obj *.mod; cd /LBLRTM; \
ln -s lblrtm_v12.9_linux_gnu_dbl lblrtm
VOLUME LBLRTM_In
VOLUME LBLRTM_Out
COPY LBLRTM_entrypoint.sh .
# run model and build binary line file (TAPE3)
ENTRYPOINT ["./LBLRTM_entrypoint.sh"]