Simple instruction on how to run Tracks using docker and an available image on the Docker Index

staannoe 2013-11-29 03:28:19 -08:00
parent aa2bb2926e
commit 659b7712b5

@ -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 <IMAGE ID>`
or a more extensive version:
`root@docker# docker run -d -p 8080:3000 -w /var/tracks <IMAGE ID> 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/