1
0
mirror of https://github.com/fspc/freehub.git synced 2025-02-28 11:33:25 -05:00

Freehub Docker Image initial commit.

This commit is contained in:
Jonathan Rosenbaum 2014-12-10 16:49:46 +00:00
commit da97c3b05c
3 changed files with 26 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
###########
# FreeHub #
###########
# Password is test for greeter, sfbk, mechanic, scbc, cbi, admin
FROM bikebike/bikebike
MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
RUN git clone git://github.com/asalant/freehub.git
RUN gem install bundler
#RUN apt-get -y install ruby-dev
RUN bundle install --gemfile=/freehub/Gemfile
RUN service mysql start; cd /freehub; rake db:create:all; rake db:migrate; rake db:fixtures:load
COPY mysql.conf /etc/supervisor/conf.d/
COPY freehub.conf /etc/supervisor/conf.d/
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
# docker run -d -p 3000:3000 --name="freehub" bikebike/freehub

3
freehub.conf Normal file
View File

@ -0,0 +1,3 @@
[program:freehub]
command=/freehub/script/server
autorestart=false

3
mysql.conf Normal file
View File

@ -0,0 +1,3 @@
[program:mysql]
command=/usr/bin/mysqld_safe
autorestart=true