-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (30 loc) · 1.34 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
FROM fedora:latest
LABEL maintainer="markus.heene@gmail.com"
RUN dnf install -b -y gcc make automake git\
motif motif-devel libXpm-devel libXaw-devel \
xorg-x11-fonts-misc openssl-devel lbzip2\
python2-2.7.15-11.fc29.x86_64 python2-pygrib python2-numpy \
python2-matplotlib python2-basemap ImageMagick libxslt
# RUN dnf -q -b -y --refresh --allowerasing update
RUN mkdir -p /tmp/download/afd && cd /tmp/download/
RUN git clone https://github.com/holger24/AFD.git afd
RUN cd afd && ac-tools/bootstrap && \
./configure -q --enable-ssl --disable-dependency-tracking && \
make -s -j`nproc` && make -s install
RUN useradd -ms /bin/bash afd
# RUN dnf remove -q -y gcc make automake git
USER afd
ENV AFD_WORK_DIR=/home/afd/local
RUN mkdir -p ~/local && mkdir -p ~/data && \
mkdir -p ~/scripts && mkdir -p ~/plotGRIB/data && \
mkdir -p ~/config && mkdir -p ~/tmp && cd ~/tmp && \
git clone https://github.com/buwx/meteogram.git meteogram
COPY scripts/* /home/afd/scripts/
COPY config/DIR_CONFIG /home/afd/config/DIR_CONFIG
COPY ./docker-entrypoint.sh /home/afd
RUN mkdir -p ~/local/etc && \
cp /home/afd/config/DIR_CONFIG ${AFD_WORK_DIR}/etc/DIR_CONFIG
RUN cp /home/afd/scripts/index.html /home/afd/data/index.html
# RUN cp /home/afd/scripts/prepareMOS.sh /home/afd/tmp/meteogram/
ENTRYPOINT ["/home/afd/docker-entrypoint.sh"]
CMD ["afd_ctrl"]