-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
11 changed files
with
194 additions
and
72 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
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 |
---|---|---|
|
@@ -16,8 +16,8 @@ Vagrant.configure("2") do |config| | |
config.ssh.shell = "sh" | ||
|
||
config.vm.provider "virtualbox" do |v| | ||
v.memory = 2048 | ||
v.cpus = 8 | ||
v.memory = 4096 | ||
v.cpus = 4 | ||
end | ||
|
||
# Disable automatic box update checking. If you disable this, then | ||
|
@@ -97,11 +97,9 @@ max-cache-ttl 34560000" > ~/.gnupg/gpg-agent.conf | |
git clone [email protected]:MisterTea/debian-et.git | ||
for distro in `distro-info --supported | grep -v experimental`; do | ||
pbuilder-dist ${distro} i386 create --debootstrapopts --variant=buildd | ||
pbuilder-dist ${distro} amd64 create --debootstrapopts --variant=buildd | ||
pbuilder-dist ${distro} armhf create --debootstrapopts --variant=buildd | ||
pbuilder-dist ${distro} armel create --debootstrapopts --variant=buildd | ||
pbuilder-dist ${distro} arm64 create --debootstrapopts --variant=buildd | ||
for ARCH in amd64 i386 armhf armel arm64; do | ||
pbuilder-dist ${distro} ${ARCH} create --debootstrapopts --variant=buildd | ||
done | ||
aptly repo create -distribution=${distro} -component=main et-${distro} | ||
done | ||
|
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
et (6.0.7-##DISTRO##1) ##DISTRO##; urgency=medium | ||
|
||
* https://github.com/MisterTea/EternalTerminal/releases/tag/et-v6.0.7 | ||
|
||
-- Jason Gauci <[email protected]> Mon, 3 Mar 2020 16:36:51 -0800 | ||
|
||
et (6.0.6-##DISTRO##1) ##DISTRO##; urgency=medium | ||
|
||
* https://github.com/MisterTea/EternalTerminal/releases/tag/et-v6.0.6 | ||
|
||
-- Jason Gauci <[email protected]> Sat, 25 Jan 2020 16:36:51 -0800 | ||
|
||
et (6.0.5-##DISTRO##2) ##DISTRO##; urgency=medium | ||
|
||
* Add arm64 build on Ubuntu | ||
|
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,27 @@ | ||
FROM centos:7 as base | ||
|
||
ENV BUILD_REPOS="epel-release centos-release-scl" \ | ||
BUILD_DEPS="cmake3 boost-devel libsodium-devel ncurses-devel protobuf-devel \ | ||
protobuf-compiler gflags-devel protobuf-lite-devel git devtoolset-8" | ||
|
||
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-8 'cmake3 ../'" && \ | ||
bash -c "scl enable devtoolset-8 'make -j $(grep ^processor /proc/cpuinfo |wc -l) && make install'" | ||
|
||
FROM centos:7 | ||
|
||
RUN yum install -y epel-release && \ | ||
yum install -y protobuf-lite libsodium | ||
|
||
COPY --from=base /usr/local/bin/etserver /usr/local/bin/etterminal /usr/local/bin/htm /usr/local/bin/htmd /usr/local/bin/ | ||
COPY --from=base /EternalTerminal/etc/et.cfg /etc/et.cfg | ||
COPY 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM centos:7 as base | ||
|
||
ENV BUILD_REPOS="epel-release centos-release-scl" \ | ||
BUILD_DEPS="cmake3 boost-devel libsodium-devel ncurses-devel protobuf-devel \ | ||
protobuf-compiler gflags-devel protobuf-lite-devel git devtoolset-8" | ||
|
||
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-8 'cmake3 ../'" && \ | ||
bash -c "scl enable devtoolset-8 'make -j $(grep ^processor /proc/cpuinfo |wc -l) && make install'" | ||
|
||
FROM centos:7 | ||
|
||
RUN yum install -y epel-release && \ | ||
yum install -y protobuf-lite libsodium openssh-server | ||
|
||
COPY --from=base /usr/local/bin/etserver /usr/local/bin/etterminal /usr/local/bin/htm /usr/local/bin/htmd /usr/local/bin/ | ||
COPY --from=base /EternalTerminal/etc/et.cfg /etc/et.cfg | ||
COPY 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Docker container for et-server | ||
|
||
## Build | ||
|
||
``` | ||
$ make | ||
$ docker images |grep et-.* | ||
et-client latest 54c495fe34dc 11 minutes ago 422MB | ||
et-server latest 1bf233faf414 11 minutes ago 425MB | ||
``` | ||
|
||
## Run | ||
|
||
|
||
``` | ||
$ docker run -it --rm -p 2022:2022 -p 2222:22 \ | ||
-v /etc/ssh:/etc/ssh \ | ||
-v /etc/passwd:/etc/passwd \ | ||
-v /etc/shadow:/etc/shadow \ | ||
-v /etc/group:/etc/group \ | ||
-v /home:/home \ | ||
et-server | ||
``` | ||
|
||
## Notice | ||
|
||
- Both ports 2022 and 2222 must be open at the server host (per example above); | ||
- The container starts an sshd server to initiate et-server's handshake. | ||
- You ssh client must be able to connect to container's sshd, not host's sshd; | ||
- Running `ssh -p 2222 user@host` must work out-of-the box; | ||
- Tip: add below to your client's `~/.ssh/config`: | ||
|
||
``` | ||
Host myhost | ||
Port 2222 | ||
``` |
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,12 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
if [ "$1" == server ]; then | ||
/usr/sbin/sshd | ||
shift | ||
exec etserver --logtostdout -v 1 "$@" | ||
else | ||
shift | ||
exec et "$@" | ||
fi |
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