Sign inSign up

muratartim/eclipsetactics_web_server

By muratartim

•Updated almost 6 years ago

Web server for the online strategy game 'Eclipse Tactics'.

Image
0

331

muratartim/eclipsetactics_web_server repository overview

⁠EclipseTacticsWeb

EULA License HitCount DockerHub

Dynamic web project for the web content of the online strategy game 'Eclipse Tactics'. Eclipse Tactics is a multiplayer, turn-based, online strategy game in a sci-fi theme. Create your own special teams from a large number of fully customizable units. Deploy your base and units, and destroy your opponent! Check out the game at http://www.eclipsetactics.com⁠

⁠Web server

Eclipse Tactics web server is a standard Apache Tomcat web server. The web project is deployed to the web server as a single WAR archive. It contains web page implementation. The web pages are implemented using HTML, javascript and css.

⁠Screenshots

Here is a screenshot from the web page.

screenshot

⁠How to build & run the project in a Docker container

EclipseTacticsWeb project is also available as a container image in Docker Hub⁠. The container can be run as follows:

  1. Pull the container image from Docker Hub:
docker pull muratartim/eclipsetactics_web_server
  1. Create & run the container:
docker container run -p 8080:8080 -d --name eclipsetactics_web_server --network eclipsetactics_network muratartim/eclipsetactics_web_server
  1. In the address area of your browser, type and submit http://localhost:8080/EquinoxWeb/index.html⁠.

⁠How to run the platform using Docker Compose

  1. Download sample data for SQL server: sample data⁠
  2. Create directory 'backups' and copy the downloaded 'sql_data.tar' file into the directory.
  3. Create a named volume by executing the following command outside of 'backups' directory:
docker container run --rm -v eclipsetactics_sql_data:/dbdata -v $(pwd)/backups:/backup ubuntu bash -c "cd /dbdata && tar xvf /backup/sql_data.tar --strip 1"
  1. Create & start the whole platform from where the docker-compose.yml file is located⁠:
docker-compose up
  1. Stop & remove the platform from where the docker-compose.yml file is located:
docker-compose down

⁠How to deploy the platform on AWS with single EC2 instance

  1. Download the Deployment Template File One-Instance-Arch-CloudFormation.yml⁠.
  2. Validate the template by running the following command (from where the Deployment Template File is located):
aws cloudformation validate-template --template-body file://./One-Instance-Arch-CloudFormation.yml
  1. Create an AWS CloudFormation Stack using the following command (from where the Deployment Template File is located). Note that, this command will deploy the platform using the default parameters (which are valid for the 'eu-central-1' AWS Region).
aws cloudformation create-stack --stack-name eclipsetactics --template-body file://./One-Instance-Arch-CloudFormation.yml
  1. Delete & rollback the stack as follows:
aws cloudformation delete-stack --stack-name eclipsetactics

This will deploy the platform on AWS utilizing the following architecture:

EclipseTactics_One_Instance_AWS_Architecture

⁠Full stack deployment on AWS

  1. Download the Deployment Template File Full-Stack-High-Availability-Arch-CloudFormation.yml⁠.
  2. Validate the template by running the following command (from where the Deployment Template File is located):
aws cloudformation validate-template --template-body file://./Full-Stack-High-Availability-Arch-CloudFormation.yml
  1. Create an AWS CloudFormation Stack using the following command (from where the Deployment Template File is located). Note that, this command will deploy the platform using the default parameters (which are valid for the 'eu-central-1' AWS Region).
aws cloudformation create-stack --stack-name eclipsetactics --template-body file://./Full-Stack-High-Availability-Arch-CloudFormation.yml
  1. Delete & rollback the stack as follows:
aws cloudformation delete-stack --stack-name eclipsetactics

This will deploy the platform on AWS utilizing the following architecture:

EclipseTactics_Full_Stack_AWS_Architecture

Tag summary

Content type

Image

Digest

Size

226.8 MB

Last updated

almost 6 years ago

docker pull muratartim/eclipsetactics_web_server