-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from rbanffy/develop
Merge develop into master for version 1.4
- Loading branch information
Showing
8 changed files
with
205 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
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 && \ | ||
wget --no-check-certificate https://wotho.ethz.ch/tk4-/tk4-_v1.00_current.zip && \ | ||
wget --no-check-certificate https://wotho.ethz.ch/tk4-/tk4-cbt.zip && \ | ||
wget --no-check-certificate https://wotho.ethz.ch/tk4-/tk4-source.zip && \ | ||
unzip tk4-_v1.00_current.zip && \ | ||
unzip -o tk4-cbt.zip && \ | ||
unzip -o tk4-source.zip && \ | ||
# 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 | ||
|
||
EXPOSE 3270/TCP | ||
EXPOSE 8038/TCP | ||
|
||
CMD ["./mvs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM debian:testing-slim | ||
|
||
LABEL maintainer="Ricardo Bánffy <[email protected]>" | ||
|
||
ARG USERNAME=hercules | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
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 && \ | ||
wget http://www.smrcc.org.uk/members/g4ugm/vm-370/vm370sixpack-1_3.zip && \ | ||
unzip vm370sixpack-1_3.zip && \ | ||
# Remove unwanted files. | ||
apt purge -y wget unzip && \ | ||
rm -rf /var/lib/apt/lists/* vm370sixpack-1_3.zip WC3270 && \ | ||
# Enable CMS/DOS disks. | ||
sed -i 's/#06a0/06a0/' sixpack.conf && \ | ||
sed -i 's/#07a0/07a0/' sixpack.conf && \ | ||
# Enable web UI with the MAINT credentials | ||
sed -i 's/#HTTPPORT 8081/HTTPPORT 8081 AUTH MAINT CPCMS/' sixpack.conf && \ | ||
# Log off the OPERATOR user from the Hercules console | ||
echo '/LOGOFF' >> hercules.rc && \ | ||
chown -R $USERNAME:$USERNAME /home/$USERNAME | ||
|
||
USER $USERNAME | ||
WORKDIR /home/$USERNAME | ||
|
||
EXPOSE 3270/TCP | ||
EXPOSE 8081/TCP | ||
|
||
CMD ["hercules", "-f", "sixpack.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM debian:testing-slim | ||
|
||
LABEL maintainer="Ricardo Bánffy <[email protected]>" | ||
|
||
ARG USERNAME=hercules | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
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 && \ | ||
wget http://www.vm370.org/sites/default/files/2022-07/VM370CE.V1.R1.2.zip && \ | ||
wget http://dosvs.31bits.net/DOSVS_5Pack_V1.0-full.zip && \ | ||
unzip VM370CE.V1.R1.2.zip && \ | ||
mv VM370CE.V1.R1.2/* . && \ | ||
unzip DOSVS_5Pack_V1.0-full.zip -d disks && \ | ||
# Enable DOS/VS devices. | ||
sed -i 's/#0361/0361/' vm370ce.conf && \ | ||
sed -i 's/#0362/0362/' vm370ce.conf && \ | ||
sed -i 's/#0363/0363/' vm370ce.conf && \ | ||
sed -i 's/#0364/0364/' vm370ce.conf && \ | ||
# Remove unwanted files. | ||
apt purge -y wget unzip && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf VM370CE.V1.R1.2.zip WC3270 VM370CE.V1.R1.2 DOSVS_5Pack_V1.0-full.zip && \ | ||
# Enable web UI with the MAINT credentials | ||
sed -i 's/#HTTPPORT 8081/HTTPPORT 8081 AUTH MAINT CPCMS/' vm370ce.conf && \ | ||
# Log off the OPERATOR user from the Hercules console | ||
echo '/LOGOFF' >> hercules.rc && \ | ||
chown -R $USERNAME:$USERNAME /home/$USERNAME | ||
|
||
USER $USERNAME | ||
WORKDIR /home/$USERNAME | ||
|
||
EXPOSE 3270/TCP | ||
EXPOSE 8081/TCP | ||
|
||
CMD ["hercules", "-f", "vm370ce.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters