From 659b7712b5854893bd461f68c988c34e51e4f448 Mon Sep 17 00:00:00 2001 From: staannoe Date: Fri, 29 Nov 2013 03:28:19 -0800 Subject: [PATCH] Simple instruction on how to run Tracks using docker and an available image on the Docker Index --- Installing-tracks-2.2-from-Docker-Index.md | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Installing-tracks-2.2-from-Docker-Index.md diff --git a/Installing-tracks-2.2-from-Docker-Index.md b/Installing-tracks-2.2-from-Docker-Index.md new file mode 100644 index 0000000..8228ae6 --- /dev/null +++ b/Installing-tracks-2.2-from-Docker-Index.md @@ -0,0 +1,29 @@ +# Getting Tracks 2.2.2 running using docker + +## Introduction +Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. This enables you to get. Docker can be installed easily on any major Linux flavor and run in a virtual machine on other OS. + +## Prerequisites +You will need a host with a running docker installation. This guide will not cover installation of docker since that i well documented other places: http://www.docker.io/gettingstarted/#h_installation + +## Installation +Log on to your host with a running Docker installation and pull the Tracks image for the Docker Index by running the following command: +`root@dockerhost# docker pull staannoe/getontracks` + +Observe that docker starts to download the Docker tracks image. The might take some time depending on your Internet bandwidth. + +When the image has finished downloading, you can verify that it is available by issuing the command: + +`root@docker# docker images` + +Now you can start Tracks on port 8080 on your host simply by issuing the following command: + +`docker run -d -p 8080:3000 ` + +or a more extensive version: + +`root@docker# docker run -d -p 8080:3000 -w /var/tracks bundle exec rails server -e production` + +## Other useful info +You can learn more about the image on the Docker Index: +http://index.docker.io/u/staannoe/getontracks/ \ No newline at end of file