Skip to content

Commit

Permalink
Added docker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Sep 17, 2015
1 parent 13a8772 commit 0fad1f0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ A web multiplayer Tron game like with curves
## Installation

* [Get your local Curvytron server in 1 minute!](doc/installation.md)
* [...or launch a Docker container with the game!](doc/docker.md)

---

Expand Down
23 changes: 23 additions & 0 deletions doc/docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Prerequisite

You need to install Docker.

## Building an Image

__Clone the repository__

git clone https://github.com/Elao/curvytron.git
cd curvytron

__Build the docker image__

docker build -t yourname/curvytron .

## Launch server

docker run -d --name curvytron -p 8080:8080 yourname/curvytron

## Play

Go to [http://localhost:8080](http://localhost:8080/)
Join a room, choose a player name and play!
2 changes: 2 additions & 0 deletions doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Curvytron runs on [node.js >= v0.10](https://nodejs.org/).
You need to install node on the machine that will run the Curvytron server.

Alternatively, you could also [run Curvytron on Docker](doc/docker.md).

## Installation

__Clone the repository__
Expand Down

0 comments on commit 0fad1f0

Please sign in to comment.