-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (43 loc) · 1.67 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
ARG METPLUS_VERSION
FROM dtcenter/metplus:${METPLUS_VERSION:-develop}
MAINTAINER John Halley Gotway <johnhg@ucar.edu>
#
# This Dockerfile extends the METplus image for training
#
ARG SOURCE_BRANCH
RUN if [ -z ${SOURCE_BRANCH+x} ]; then \
echo "ERROR: SOURCE_BRANCH undefined! Rebuild with \"--build-arg SOURCE_BRANCH={branch name}\""; \
exit 1; \
else \
echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \
fi
ARG METPLUS_VERSION
RUN if [ -z ${METPLUS_VERSION+x} ]; then \
echo "ERROR: METPLUS_VERSION undefined! Using default (develop) or rebuild with \"--build-arg METPLUS_VERSION={branch or tag name}\""; \
exit 1; \
else \
echo "Build Argument METPLUS_VERSION=${METPLUS_VERSION}"; \
fi
#
# Set working directory
#
WORKDIR /metplus
#
# Setup the environment for interactive bash/csh container shells.
#
RUN mkdir -p /metplus/METplus_Tutorial \
&& echo export METPLUS_TUTORIAL_DIR=/metplus/METplus_Tutorial >> /etc/bashrc \
&& echo setenv METPLUS_TUTORIAL_DIR /metplus/METplus_Tutorial >> /etc/csh.cshrc \
&& echo export METPLUS_BUILD_BASE=/metplus/METplus >> /etc/bashrc \
&& echo setenv METPLUS_BUILD_BASE /metplus/METplus >> /etc/csh.cshrc \
&& echo export MET_BUILD_BASE=/usr/local >> /etc/bashrc \
&& echo setenv MET_BUILD_BASE /usr/local >> /etc/csh.cshrc \
&& echo export METPLUS_DATA=/data/input/METplus_Data >> /etc/bashrc \
&& echo setenv METPLUS_DATA /data/input/METplus_Data >> /etc/csh.cshrc
# copy tutorial config file
COPY scripts/Tutorial/tutorial-4.0.0.conf /metplus/METplus_Tutorial/tutorial.conf
#
# Install additional tools for METplus Training modules
#
# RUN yum -y update \
# && yum -y install nco.x86_64