Created
December 1, 2021 16:50
-
-
Save sebastianconcept/626ff9eaf9945dff5aef4ac2491d0450 to your computer and use it in GitHub Desktop.
THC Dockerfile
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
FROM debian:buster | |
EXPOSE 1700/tcp | |
# Base support | |
RUN id && ls -la /var/cache/apt/ | |
RUN \ | |
apt-get update && \ | |
apt-get -y install procps libssl1.1 bzip2 python3 python3-requests wget make zip unzip libx11-6 libgl1-mesa-glx libfontconfig1 libssl1.1 python3-pip libcurl3-gnutls strace | |
# install image-launch | |
RUN \ | |
wget -O - \ | |
http://download.opensuse.org/repositories/devel:/languages:/pharo:/stable/Debian_10/Release.key | apt-key add - && \ | |
echo "deb [trusted=yes] http://download.opensuse.org/repositories/devel:/languages:/pharo:/stable/Debian_8.0/ ./" > /etc/apt/sources.list.d/pharo.list && \ | |
apt-get update && \ | |
apt-get install image-launch | |
# install pharo VM | |
RUN \ | |
wget --quiet http://files.pharo.org/get-files/70/pharo64-linux-stable.zip && \ | |
wget --quiet http://files.pharo.org/image/70/stable-64.zip && \ | |
mkdir -p /opt/pharo/ && \ | |
mkdir -p /var/lib/pharo-images && \ | |
unzip -d /opt/pharo/ pharo64-linux-stable.zip && \ | |
unzip -d /var/lib/pharo-images/ stable-64.zip && \ | |
rm pharo64-linux-stable.zip && \ | |
rm stable-64.zip | |
RUN \ | |
mkdir -p /usr/share/de-roaminghub6/links && \ | |
mkdir -p /usr/share/de-roaminghub6/scripts && \ | |
mkdir -p /usr/share/de-roaminghub6/template && \ | |
mkdir -p /usr/share/de-roaminghub6/template/om/launch.d && \ | |
mkdir -p /usr/share/de-roaminghub6/template/node/launch.d && \ | |
mkdir -p /var/lib/pharo-images | |
RUN \ | |
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/share/de-roaminghub6/links/libcrypto.so | |
COPY build/RoamingHub.image /var/lib/pharo-images | |
COPY build/RoamingHub.changes /var/lib/pharo-images | |
COPY packaging/de-roaminghub6/function.node /usr/share/de-roaminghub6/scripts/rh-node | |
COPY packaging/de-roaminghub6/function.om /usr/share/de-roaminghub6/scripts/rh-om | |
COPY packaging/de-roaminghub6/function.syslog /usr/share/de-roaminghub6/scripts/rh-syslog | |
COPY packaging/run.sh / | |
CMD /bin/bash /run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment