-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
Donapieppo edited this page Jul 21, 2016
·
7 revisions
There is a Dockerfile which loads ruby 2.3, installs databases, copy the got project etc etc.
You have to change the Dockerfile in order to set password and secret keys.
# git clone https://github.com/donapieppo/got.git
# cd got
# vi Dockerfile # in order to set secret keys
# docker build -t got .
# docker run -i -t got
Now verify that rails server -b 0.0.0.0
is running:
# docker ps
shoud return something like
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
# 3ee04824018e got "/bin/bash" 3 minutes ago Up 3 minutes 3000/tcp small_blackwell
and with the right container id you should be able to find the ip address
# docker inspect got | grep IPAddr
Now you can open your browser to http://ipaddress:3000