Skip to content

Darkeden with docker. Set up your server using a current technology (vm is pretty dead boysssss) with a few steps.

Notifications You must be signed in to change notification settings

TroniPM/DarkEden-With-Docker

Repository files navigation

DarkEden Docker

Set up your very own server using a current technology (vm is pretty dead boysssss) with a few steps. Everyone wants to make your own server, by gets stuck on VPS princing. Why is that? Too expansive. But Why Docker? Well, docker works like a VM, but without a Operating System behind. But why this matter? Well... You can execute a 'vm like' with less resources of memory, cpu, etc.

About Docker and our Project:

Read our wiki.

Build

Dependencies

$ sudo apt install docker.io

Runinng

Easy peasy lemon squeezy steps. Just run these commands below ( You can learn more about docker arguments here.):

cd DarkEden-Docker/

#THIS WILL BUILD THE IMAGE LABELED AS 'dk'.
sudo docker build -t dk .

#THIS WILL RUN THE IMAGE CALLED 'dk' wih random ports on hoster. FOR TEST ONLY
CONTAINER=`sudo docker run -d -P -e "MYSQL_ROOT_PASSWORD=123" dk`

#THIS WILL RUN THE CONTAINER CALLED 'dk' AND OPEN PORTS SAME WAY OF GUEST
DK_MYSQL_PATH=`pwd`'/datamysql' && CONTAINER=`sudo docker run -d -p 9999:9999/tcp -p 9999:9999/udp -p 9998:9998/tcp -p 9998:9998/udp -p 9997:9997/tcp -p 9997:9997/udp -p 9996:9996/tcp -p 9996:9996/udp -p 9977:9977/tcp -p 9977:9977/udp -p 9900:9900/tcp -p 9900:9900/udp -p 9876:9876/tcp -p 9876:9876/udp -p 9800:9800/tcp -p 9800:9800/udp -p 5001:5001/tcp -p 5001:5001/udp -p 5000:5000/tcp -p 5000:5000/udp -p 3306:3306/tcp -p 3306:3306/udp -p 3001:3001/tcp -p 3001:3001/udp -p 2999:2999/tcp -p 2999:2999/udp -p 1111:1111/tcp -p 1111:1111/udp -e "MYSQL_ROOT_PASSWORD=123" -v "${DK_MYSQL_PATH}:/usr/local/mysql/var" dk`

#THIS WILL OPEN DE CONTAINER
sudo docker exec -it ${CONTAINER} /bin/bash

Now what? Inside the docker image (REALLY lightwave), just setup and start your server ;]

#This is for sql scripts. Just run this ONCE or run again to reset server data.
#YOUR_PUBLIC_IP is optional: this will publish the server to others players could enter
#(your vps public ip, or your machine lan ip, or your hamachi ip, etc...). 
#Leave it blank to only your machine enter de server. After set this, host ip cannot enter the server.
cd / && ./setup.sh YOUR_PUBLIC_HOST_IP_HERE

#You know what this does, right? :)
cd / && ./start

Customizable

Open file Dockerfile and change these variables as you wish. Importante 1: The local server's ip will be set automatically and printed on terminal after build is complete. Important 2: DO NOT remove \ from variables end line:

...
DB_USERNAME=dk \                 #database username (maybe elcastle? hehehe)
DB_PASSWORD=dk123 \              #database password (what about 'elca110'? recommended change!)

ADMIN_USERNAME=admin \           #username default account (admin privileges) on dk server
ADMIN_PASSWORD=123456 \          #password default account (admin privileges) on dk server

DK_SERVER_NAME=DKDocker \        #dk server name showing on client (World and Subworld)
...

Done so far on server

  • Tables translated to english: AttrInfo.sql and GSStringPool.sql
  • Asy free
  • 3opt itens enabled

TO-DO on server

  • One world only
  • Change bibles names to latin.
  • Change NPCs names to latin.
  • Balancing between races.
  • Ability to disabled a race (one or two)

Contributing

Bro, just open an issue explaining what you thinking, then we discuss about it, then you may send a pull request. For bugs, suggestions, requests and enhancements, create an issue. =]

Thanks to:

  • Softon
  • Marcos Daniel
  • Lucas Lemos

About

Darkeden with docker. Set up your server using a current technology (vm is pretty dead boysssss) with a few steps.

Resources

Stars

Watchers

Forks

Packages

No packages published