forked from mainframed/docker_tk4-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (49 loc) · 1.97 KB
/
Dockerfile
File metadata and controls
56 lines (49 loc) · 1.97 KB
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
54
55
56
FROM ubuntu:18.04 as builder
RUN apt-get update && apt-get install -yq unzip
WORKDIR /tk4-/
ADD http://wotho.ethz.ch/tk4-/tk4-_v1.00_current.zip /tk4-/
RUN unzip tk4-_v1.00_current.zip && \
rm -rf /tk4-/tk4-_v1.00_current.zip
ADD https://polybox.ethz.ch/index.php/s/sZk2wRMhsF2uwai/download /tk4-/sdl_summer.zip
RUN unzip -o sdl_summer.zip && \
rm -rf /tk4-/sdl_summer.zip
RUN ./activate_SDL
ADD https://polybox.ethz.ch/index.php/s/pz5Ed1pDPB0PFJz/download /tk4-/sdl_latest.zip
RUN unzip -o sdl_latest.zip && \
rm -rf /tk4-/sdl_latest.zip
RUN echo "CONSOLE">/tk4-/unattended/mode
RUN rm -rf /tk4-/hercules/darwin && \
rm -rf /tk4-/hercules/windows && \
rm -rf /tk4-/hercules/linux/32 && \
rm -rf /tk4-/hercules/linux/arm && \
rm -rf /tk4-/hercules/linux/arm_softfloat && \
rm -rf /tk4-/hercules/linux/aarch64 && \
rm -rf /tk4-/hercules/source && \
rm -rf /tk4-/hercules/external_packages_binaries && \
rm -rf /tk4-/hercules_pre_SDL && \
rm -rf /tk4-/hercules_SDL && \
rm -rf /tk4-/ctca_demo
RUN rm -f /tk4-/activate_SDL && \
rm -f /tk4-/activate_SDL.bat
RUN rm -f /tk4-/deactivate_SDL && \
rm -f /tk4-/deactivate_SDL.bat
RUN rm -f /tk4-/mvs && \
rm -f /tk4-/mvs.bat && \
rm -f /tk4-/mvs.bat_pre_SDL && \
rm -f /tk4-/mvs_ipl && \
rm -f /tk4-/mvs_osx && \
rm -f /tk4-/mvs_pre_SDL
RUN rm -rf /tk4-/start_herc_pre_SDL
RUN apt-get -y purge unzip && \
apt-get -y autoclean && apt-get -y autoremove && \
apt-get -y purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//g) && \
rm -rf /var/lib/apt/lists/*
FROM ubuntu:18.04
WORKDIR /tk4-/
COPY --from=builder /tk4-/ .
ENV PATH hercules/linux/64/bin:$PATH
ENV LD_LIBRARY_PATH hercules/linux/64/lib:hercules/linux/64/lib/hercules:$LD_LIBRARY_PATH
ENV HERCULES_RC scripts/ipl.rc
VOLUME [ "/tk4-/conf","/tk4-/local_conf","/tk4-/local_scripts","/tk4-/prt","/tk4-/dasd","/tk4-/pch","/tk4-/jcl","tk4-/log" ]
CMD ["hercules","-f","conf/tk4-.cnf"]
EXPOSE 3270 8038