BikeBike Docker Container Image for BikeBinder https://bikebinder.bikelover.org
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.
 
 

27 lines
1.2 KiB

##############
# BikeBinder #
##############
# Password is password for staff@freeridepgh.org & volunteer@freeridepgh.org
FROM bikebike/bikebike:16.04
MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
RUN git clone https://github.com/FreeRidePGH/BikeBinder.git
RUN gem install bundler
RUN apt-get update && apt-get -y install g++ libfcgi-dev libsqlite3-dev ruby-sqlite3
# TODO: ruby-sqlite3 is the sqlite3 gem, however, the paths must be wrong
RUN bundle install --gemfile=/BikeBinder/Gemfile
# TODO: bundle exec rake secret / there is config.secret_key = ENV["DEVISE_SECRET_KEY"] .. need to find a way to pass output to rake, rather than using a set secret
# However, this needs to be done during the docker run: export DEVISE_SECRET_KEY=`bundle exec rake secret`
COPY devise.rb /BikeBinder/config/initializers/
RUN cd /BikeBinder; bundle exec rake setup; bundle exec rake populate
# setup to use sqlite3
COPY bikebinder.conf /etc/supervisor/conf.d/
#COPY /BikeBinder/config/application/mailer_config.rb /BikeBinder/config/database.yml
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
# http://stackoverflow.com/questions/32799856/rails-webrick-server-default-ip-and-port
# docker run -d -p 3000:3000 --name="bikebinder" bikebike/bikebinder