Last active
October 26, 2021 11:24
-
-
Save Couto/1fbc9a743afc735dd21edb3ae6aa710d to your computer and use it in GitHub Desktop.
Install SphereServer X using docker
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-slim | |
WORKDIR /sphere | |
RUN apt-get update --fix-missing \ | |
&& apt-get install -y \ | |
curl \ | |
mysql-common \ | |
&& apt-get clean; | |
# libmysql Dependency | |
RUN curl -L -o libmysqlclient.deb http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/libmysqlclient20_5.7.31-0ubuntu0.18.04.1_amd64.deb | |
RUN echo 'a457f514e80ab609b3aee4dc7c6e7a0e59f29d9d4282f2d6f5ce47c49c2895fb libmysqlclient.deb' | sha256sum --check --status \ | |
&& dpkg -i libmysqlclient.deb \ | |
&& rm -rf libmysqlclient.deb \ | |
&& rm -rf libmysqlclient.deb.sha256 | |
# Install Sphere | |
RUN curl -L -o SphereSvrX-linux64-nightly.tar.gz https://forum.spherecommunity.net/sshare.php?downproj=64 \ | |
&& tar -xzf SphereSvrX-linux64-nightly.tar.gz \ | |
&& rm -rf SphereSvrX-linux64-nightly.tar.gz | |
RUN mv /sphere/build-64/bin64/* /sphere \ | |
&& rm -rf /sphere/build-64 | |
# Agree with nightly build | |
RUN sed -i 's/\[SPHERE\]/[SPHERE]\nAGREE=1/' sphere.ini | |
# Clean up | |
RUN apt-get remove --purge -y curl; | |
RUN apt-get autoremove -y |
Ohh... That makes perfect sense! Totally forgot that spheresrv expects user inputs after boot. Which made take a look at the Helm chart I was using at the time and the tty
flag is indeed enabled for that container!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just solved it by adding "tty: true" and "stdin_open: true" to my docker-compose.yml. "spheresvr" seems to need a tty, so that's the solution. In the end I came up with this working version:
https://github.com/gideonstar-git/docker-sphere-server-x