BikeBike Docker Container Image for freehub
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
###########
|
|
|
|
# FreeHub #
|
|
|
|
###########
|
|
|
|
# Password is test for greeter, sfbk, mechanic, scbc, cbi, admin
|
|
|
|
|
|
|
|
FROM bikebike/bikebike
|
|
|
|
LABEL Jonathan Rosenbaum <gnuser@gmail.com>
|
|
|
|
|
|
|
|
RUN git clone https://github.com/asalant/freehub.git
|
|
|
|
|
|
|
|
# requires >= ruby-2.3 so will need to update the BikeBike image
|
|
|
|
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
|