Docker Image

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

mubashar
Posts: 14
Joined: 21 Dec 2019, 05:00

Docker Image

Postby mubashar » 26 Dec 2019, 22:48

I have created docker images of two reasons of smartfox. Both are working as admin page can be launched succesfully but i can not login to admin panel, i am using these credentials:
Host: 127.0.0.1
Port: 9933
Username: sfsadmin
Password: sfsadmin
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Docker Image

Postby Lapo » 27 Dec 2019, 07:54

Hi,
what error does the client get?
Are you sure port 9933 is reachable (e.g. Firewall rules are in place)

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
mubashar
Posts: 14
Joined: 21 Dec 2019, 05:00

Re: Docker Image

Postby mubashar » 27 Dec 2019, 08:14

It shows cant connect to 127.0.0.1
I tried docker on both local machine and jelastic and same problem occurs that i cant login to admin panel.
May be i m doing something wrong in dockerfile, here is the content of dockerfile:

FROM debian

ENV SMARTFOX_VERSION 2_14_0
RUN apt-get update && \
apt-get install -y wget unzip

RUN wget http://www.smartfoxserver.com/downloads ... S2X_unix_${SMARTFOX_VERSION}.tar.gz && \
tar xf SFS2X_unix_${SMARTFOX_VERSION}.tar.gz && \
rm SFS2X_unix_${SMARTFOX_VERSION}.tar.gz

WORKDIR /SmartFoxServer_2X/SFS2X

ENTRYPOINT ["sh", "sfs2x.sh"]

EXPOSE 8080 9933 9933/udp 9932/udp 8787 5000
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Docker Image

Postby Lapo » 28 Dec 2019, 07:59

Hi,
I have not used Docker before so I cannot help with the specifics however I'd recommend two things:

1) Double check the server is actually running (obvious, but still...)
2) Check the TCP port is bound. For example by telnetting such port (e.g. telnet <ip-addr> 9933)

Also a small warning about this:

Code: Select all

ENTRYPOINT ["sh", "sfs2x.sh"]

Typically you will need to use sfs2x-service start to launch the server in production.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 102 guests