GithubHelp home page GithubHelp logo

darkmattercoder / spn-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bytewerk/spn-docker

0.0 2.0 0.0 11 KB

Schlangenprogrammiernacht - Ein Programmierspiel für die GPN - Docker-Wrapper

Shell 100.00%

spn-docker's Introduction

SPN Docker Environment

This repository contains DockerFiles and scripts used to set up a SPN server for quick testing.

The Docker environment should currently not be used to set up a “production” server as database migrations do not work properly.

Preparing the repository

This repository contains the other SPN repositories (gameserver, relayserver and website) as git submodules. These have to be initialized:

git submodule update --init --recursive

Afterwards you can go to each <program>/code directory and check out the revision you’d like to test.

Preparing Docker images

Some program share a common, static base layer, which must be built first:

./0_build_baselayer.sh

Afterwards, images for the different programs can be built:

./1_build_images.sh

Running the programs

A wrapper script exists for convenience:

./2_run.sh

This script starts the database container in the background, waits 5 seconds and then starts the other containers in the foreground.

If you are starting the containers from a clean state, 5 seconds may not be enough to get the database up before the other containers. It is recommended to run the containers individually like this:

docker-compose up -d database
sleep 10
docker-compose up -d website    # this initializes the database
sleep 10
docker-compose up               # runs the rest and shows log messages

spn-docker's People

Contributors

cfr34k avatar nachtgold avatar

Watchers

 avatar  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.