-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation instructions for Alpine Linux #188
Comments
It looks like crash logs are not supported on Alpine. You can turn off the
easy logging crash log compiler definition in CMakelists.txt
…On Wed, May 15, 2019, 2:31 AM Cim ***@***.***> wrote:
Hello I've read #180
<#180> and tried to
use the same libs in a Docker build but it just fails at 64%.
[ 58%] Building CXX object CMakeFiles/HtmCommon.dir/src/htm/HtmServer.cpp.o
[ 60%] Linking CXX static library libHtmCommon.a
[ 60%] Built target HtmCommon
Scanning dependencies of target htmd
[ 62%] Building CXX object CMakeFiles/htmd.dir/src/htm/HtmServerMain.cpp.o
[ 64%] Linking CXX executable htmd
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: libet-lib.a(easylogging++.cc.o): in function `el::base::debug::StackTrace::generateNew()':
/EternalTerminal-master/external/easylogging++.cc:2795: undefined reference to `backtrace'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: /EternalTerminal-master/external/easylogging++.cc:2796: undefined reference to `backtrace_symbols'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/htmd.dir/build.make:90: htmd] Error 1
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/htmd.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
DOCKER RUN
RUN set -ex; \
echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing/' >> /etc/apk/repositories; \
apk --update --no-cache add --virtual .build-deps \
\
gcc g++ libc-dev make zip unzip libutempter-dev \
cmake protobuf-dev libsodium-dev gflags-dev \
libexecinfo-dev ncurses-dev boost-dev; \
\
wget https://github.com/MisterTea/EternalTerminal/archive/master.zip; \
unzip master.zip; \
cd EternalTerminal-master; \
mkdir build; \
cd build; \
cmake ../; \
make && make install; \
apk del .build-deps
Can't seem to figure out what the error means, any help is appreciated!
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#188?email_source=notifications&email_token=AACK5P6BPPYCHDKNSU3DHVTPVPKA5A5CNFSM4HNBMYLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GT37MMA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACK5P7T7M6UW4UFF57IAV3PVPKA5ANCNFSM4HNBMYLA>
.
|
Remove line 114?
|
No, remove this "-DELPP_FEATURE_CRASH_LOG" |
Thanks that did it. Seems like it fails to run when the build dependencies are deleted. |
Is there a way to detect alpine linux in cmake? If so, we could make that
fix permanent.
…On Wed, May 15, 2019 at 4:09 PM Cim ***@***.***> wrote:
Thanks that did it. Seems like it fails to run when the build dependencies
are deleted.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#188?email_source=notifications&email_token=AACK5P6Z55GBQ4MZHY3PYHTPVSJYXA5CNFSM4HNBMYLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVQGLQQ#issuecomment-492856770>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACK5P42N2OXCPU2O6GDWZLPVSJYXANCNFSM4HNBMYLA>
.
|
This seems to work for me, others can chime in and do some testing.
|
Is there anything else I'm missing? Et just won't connect via Docker container. I can ssh just fine into it but not et. I've started the etserver in the container using --daemon flag. Is there something else I'm missing to start up? Executed script on container up
Docker command
This is a fresh install of Alpine Linux as the host OS so there's no firewalls. I've tried even using the Ubuntu image to see if it was an Alpine thing but same results. Nada. |
What do the et logs in /tmp say? You may need to run in verbose mode. |
Keeps saying the same thing:
Log from macOS
|
can you telnet to that machine on port 2022? |
Yes, it shows connected. |
Hmm, can you try running latest master on client? brew install --HEAD et |
Also turn on verbose logging on the server in /etc/et.cfg This will generate many files in /tmp/et* Please look at all of them to find a meaningful error that we can work with. |
Note that you will need to restart the et service after changing et.cfg |
Server starts fine, just won't connect. I could use et client from container to connect to a different (Ubuntu) machine but not from my MacBook to container. I also tried connecting from my Manjaro box to the container, no luck. htopet.cfg
Log
ls -al /tmp
ls -al /usr/local/bin
Not much logs are generated.
This is a minimal alpine image so there is no systemd or systemctl for me to use. |
I'm getting close, et is trying to connect to the host OS instead of the container.
|
et [email protected] -logtostdout true -jumphost domain.tld
|
I finally got it! The key was to create an ssh alias Docker Hub: https://hub.docker.com/r/demyx/eternal-terminal
|
Hi, I'm having compiling issues again. Not sure what you changed but a file is missing:
I am compiling this for Docker so nothing has changed in my Dockerfile, except version changes for Alpine Linux. Every time I build this image, it would git clone a fresh copy of your repo. |
Successfully compiled by adding this flag to git clone:
I had a custom CMakeLists.txt for a while but decided to do a sed replace on it to make it compile for Alpine:
|
Hello I've read #180 and tried to use the same libs in a Docker build but it just fails at 64%.
DOCKER RUN
Can't seem to figure out what the error means, any help is appreciated! Thanks!
The text was updated successfully, but these errors were encountered: