-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
143 additions
and
90 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 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,32 @@ | ||
#!/bin/sh | ||
set -e | ||
# Automatically added by dh_installsystemd/13.6ubuntu1 | ||
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then | ||
# This will only remove masks created by d-s-h on package removal. | ||
deb-systemd-helper unmask 'et.service' >/dev/null || true | ||
|
||
# was-enabled defaults to true, so new installations run enable. | ||
if deb-systemd-helper --quiet was-enabled 'et.service'; then | ||
# Enables the unit on first installation, creates new | ||
# symlinks on upgrades if the unit file has changed. | ||
deb-systemd-helper enable 'et.service' >/dev/null || true | ||
else | ||
# Update the statefile to add new symlinks (if any), which need to be | ||
# cleaned up on purge. Also remove old symlinks. | ||
deb-systemd-helper update-state 'et.service' >/dev/null || true | ||
fi | ||
fi | ||
# End automatically added section | ||
# Automatically added by dh_installsystemd/13.6ubuntu1 | ||
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then | ||
if [ -d /run/systemd/system ]; then | ||
systemctl --system daemon-reload >/dev/null || true | ||
if [ -n "$2" ]; then | ||
_dh_action=restart | ||
else | ||
_dh_action=start | ||
fi | ||
deb-systemd-invoke $_dh_action 'et.service' >/dev/null || true | ||
fi | ||
fi | ||
# End automatically added section |
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,21 @@ | ||
#!/bin/sh | ||
set -e | ||
# Automatically added by dh_installsystemd/13.6ubuntu1 | ||
if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then | ||
systemctl --system daemon-reload >/dev/null || true | ||
fi | ||
# End automatically added section | ||
# Automatically added by dh_installsystemd/13.6ubuntu1 | ||
if [ "$1" = "remove" ]; then | ||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||
deb-systemd-helper mask 'et.service' >/dev/null || true | ||
fi | ||
fi | ||
|
||
if [ "$1" = "purge" ]; then | ||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||
deb-systemd-helper purge 'et.service' >/dev/null || true | ||
deb-systemd-helper unmask 'et.service' >/dev/null || true | ||
fi | ||
fi | ||
# End automatically added section |
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,7 @@ | ||
#!/bin/sh | ||
set -e | ||
# Automatically added by dh_installsystemd/13.6ubuntu1 | ||
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then | ||
deb-systemd-invoke stop 'et.service' >/dev/null || true | ||
fi | ||
# End automatically added section |
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 |
---|---|---|
@@ -1,30 +1,19 @@ | ||
FROM centos:8 as base | ||
FROM debian:bookworm-slim | ||
|
||
# Use ADD to avoid having to install curl | ||
ADD --chmod=644 https://github.com/MisterTea/debian-et/raw/master/et.gpg /etc/apt/trusted.gpg.d/et.gpg | ||
|
||
# Use a run cache to speed up rebuilding and avoid having to remove the cache when we're done | ||
RUN --mount=type=cache,mode=0755,target=/var/lib/apt/lists,sharing=locked \ | ||
--mount=type=cache,mode=0755,target=/var/cache/apt,sharing=locked \ | ||
rm -f /etc/apt/apt.conf.d/docker-clean && \ | ||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && \ | ||
apt-get update -qq && \ | ||
apt-get install -y ca-certificates && \ | ||
echo "deb https://github.com/MisterTea/debian-et/raw/master/debian-source/ bookworm main" > /etc/apt/sources.list.d/et.list && \ | ||
apt-get update -qq && \ | ||
apt-get install -y et openssh-server | ||
|
||
ENV BUILD_REPOS="epel-release centos-release-scl" \ | ||
BUILD_DEPS="cmake3 boost-devel libsodium-devel protobuf-devel \ | ||
protobuf-compiler gflags-devel protobuf-lite-devel git \ | ||
perl-IPC-Cmd perl-Data-Dumper libunwind-devel libutempter-devel \ | ||
devtoolset-11 devtoolset-11-libatomic-devel rh-git227" | ||
|
||
|
||
WORKDIR / | ||
|
||
RUN yum install -y $BUILD_REPOS && \ | ||
yum install -y $BUILD_DEPS && \ | ||
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git && \ | ||
cd EternalTerminal && \ | ||
mkdir build && \ | ||
cd build && \ | ||
bash -c "scl enable devtoolset-11 rh-git227 'cmake3 ../'" && \ | ||
bash -c "scl enable devtoolset-11 'make -j $(grep ^processor /proc/cpuinfo |wc -l) && make install'" | ||
|
||
FROM centos:8 | ||
|
||
RUN yum install -y epel-release && \ | ||
yum install -y protobuf-lite libsodium libatomic libunwind | ||
|
||
COPY --from=base /usr/bin/etserver /usr/bin/etterminal /usr/bin/htm /usr/bin/htmd /usr/bin/ | ||
COPY --from=base /EternalTerminal/etc/et.cfg /etc/et.cfg | ||
COPY --chmod=755 container-entrypoint /bin/container-entrypoint | ||
|
||
ENTRYPOINT ["/bin/container-entrypoint", "client"] |
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 |
---|---|---|
@@ -1,34 +1,19 @@ | ||
FROM centos:8 as base | ||
FROM debian:bookworm-slim | ||
|
||
# Use ADD to avoid having to install curl | ||
ADD --chmod=644 https://github.com/MisterTea/debian-et/raw/master/et.gpg /etc/apt/trusted.gpg.d/et.gpg | ||
|
||
# Use a run cache to speed up rebuilding and avoid having to remove the cache when we're done | ||
RUN --mount=type=cache,mode=0755,target=/var/lib/apt/lists,sharing=locked \ | ||
--mount=type=cache,mode=0755,target=/var/cache/apt,sharing=locked \ | ||
rm -f /etc/apt/apt.conf.d/docker-clean && \ | ||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && \ | ||
apt-get update -qq && \ | ||
apt-get install -y ca-certificates && \ | ||
echo "deb https://github.com/MisterTea/debian-et/raw/master/debian-source/ bookworm main" > /etc/apt/sources.list.d/et.list && \ | ||
apt-get update -qq && \ | ||
apt-get install -y et openssh-server | ||
|
||
ENV BUILD_REPOS="epel-release centos-release-scl" \ | ||
BUILD_DEPS="cmake3 boost-devel libsodium-devel protobuf-devel \ | ||
protobuf-compiler gflags-devel protobuf-lite-devel git \ | ||
perl-IPC-Cmd perl-Data-Dumper libunwind-devel libutempter-devel \ | ||
devtoolset-11 devtoolset-11-libatomic-devel rh-git227" | ||
|
||
|
||
WORKDIR / | ||
|
||
RUN yum install -y $BUILD_REPOS && \ | ||
yum install -y $BUILD_DEPS && \ | ||
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git && \ | ||
cd EternalTerminal && \ | ||
mkdir build && \ | ||
cd build && \ | ||
bash -c "scl enable devtoolset-11 rh-git227 'cmake3 ../'" && \ | ||
bash -c "scl enable devtoolset-11 'make -j $(grep ^processor /proc/cpuinfo |wc -l) && make install'" | ||
|
||
FROM centos:8 | ||
|
||
RUN yum install -y epel-release && \ | ||
yum install -y protobuf-lite libsodium openssh-server libatomic libunwind | ||
|
||
COPY --from=base /usr/bin/etserver /usr/bin/etterminal /usr/bin/htm /usr/bin/htmd /usr/bin/ | ||
COPY --from=base /EternalTerminal/etc/et.cfg /etc/et.cfg | ||
COPY --chmod=755 container-entrypoint /bin/container-entrypoint | ||
|
||
EXPOSE 2022 2222 | ||
|
||
ENTRYPOINT ["/bin/container-entrypoint", "server"] | ||
|
||
CMD ["--cfgfile=/etc/et.cfg"] |
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
Oops, something went wrong.