Skip to content

Commit

Permalink
Add Dockerfile for MVS 3.8j Turnkey 5
Browse files Browse the repository at this point in the history
  • Loading branch information
rbanffy committed Nov 2, 2023
1 parent 2fe8a39 commit dee5824
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Dockerfile-mvstk5
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM debian:testing-slim

LABEL maintainer="Ricardo Bánffy <[email protected]>"

ARG USERNAME=hercules
ARG USER_UID=1000
ARG USER_GID=$USER_UID

COPY build/mvs-tk5 /tmp/mvs-tk5

RUN DEBIAN_FRONTEND=noninteractive \
groupadd --gid $USER_GID $USERNAME && \
useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && \
apt update && \
apt upgrade -y && \
apt install -y --no-install-recommends hercules wget unzip && \
cd /home/$USERNAME && \
# Copy the emultor configuration and disk/tape images.
mv /tmp/mvs-tk5 . && \
cd mvs-tk5 && \
chmod +x mvs mvs_ipl mvs_osx start_herc && \
# Remove unwanted files.
apt purge -y wget unzip && \
rm -rf /var/lib/apt/lists/* /*.zip && \
chown -R $USERNAME:$USERNAME /home/$USERNAME

USER $USERNAME
WORKDIR /home/$USERNAME/mvs-tk5

EXPOSE 3270/TCP
EXPOSE 8038/TCP

CMD ["./mvs"]

0 comments on commit dee5824

Please sign in to comment.