Git Product home page Git Product logo

pvpgn-server-docker's Introduction

PvPGN-PRO Docker

PvPGN Server Docker

Status GitHub Issues GitHub Pull Requests License


A simple docker and docker-compose for running a PvPGN-PRO server in no time

๐Ÿ“ Table of Contents

๐Ÿง About

Yet another pvpgn-docker project. Aims to be:

  • โŒ› time-proof, by pulling the latest code from PvPGN-PRO repo
  • ๐Ÿ” secure, by using non-privileged user and group to run the server
  • ๐Ÿ—œ small, by using alpine linux instead of ubuntu
  • โš– lightweight, by using multi-target building to keep only the needed content on the final image

๐Ÿ Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

๐Ÿš€ Deployment

First you need to copy over the configuration files and state structure. To do so on a bind volume (i.e. host directory) do:

mkdir {var,etc}
docker run --rm -v $PWD/var:/mnt/var wwmoraes/pvpgn-server cp -r /usr/local/pvpgn/var/pvpgn /mnt/var
docker run --rm -v $PWD/etc:/mnt/etc wwmoraes/pvpgn-server cp -r /usr/local/pvpgn/etc/pvpgn /mnt/etc

configure as needed by changing the files on $PWD/etc/pvpgn and then run with

docker run -it -v $PWD/etc:/usr/local/pvpgn/etc -v $PWD/var:/usr/local/pvpgn/var -p 4000:4000 -p 6112:6112 wwmoraes/pvpgn-server

If you want to use a docker volume then use the create-var-volume.sh and create-etc-volume.sh scripts:

./scripts/create-var-volume.sh pvpgn-etc pvpgn-var

then run with

docker run -it -v pvpgn-etc:/usr/local/pvpgn/etc -v pvpgn-var:/usr/local/pvpgn/var -p 4000:4000 -p 6112:6112 wwmoraes/pvpgn-server

Prerequisites

You'll need docker at least docker to run the base image, and docker-compose to run the full-blown server.

Installing

Pull the image from Docker Hub:

docker pull wwmoraes/pvpgn-server

Then/or just run:

docker run --rm -it wwmoraes/pvpgn-server:latest # or make run

๐ŸŽˆ Usage

The image exposes the ports 6112 (Battle.net server) and 4000 (game server). You should be able to connect your game through the host IP.

For detailed info about it read through the PvPGN-PRO docs:

๐ŸŽ‰ Acknowledgements

  • PvPGN-PRO and its maintainers, which are keeping alive the legacy of PvPGN
  • @ibepeer for feedback on #3, which ended on a BRANCH build arg (to clone from develop, for instance)

pvpgn-server-docker's People

Contributors

wwmoraes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.