Dockerfile.orig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. FROM ruby:2.3
  2. # Nodejs is needed
  3. RUN apt-get update -y && apt-get dist-upgrade -y && apt-get install nodejs -y
  4. # Download GenieACS GUI
  5. RUN cd /opt && git clone https://github.com/zaidka/genieacs-gui.git
  6. # Work on the GUI
  7. WORKDIR /opt/genieacs-gui
  8. RUN git checkout 1cb80951e9842dd1f0cbd66779f798329771aa27
  9. # Setup GenieACS GUI
  10. <<<<<<< Updated upstream
  11. #RUN rm -f Gemfile.lock
  12. =======
  13. #RUN apt-get install libsqlite3-dev
  14. #RUN rm -f Gemfile.lock
  15. #RUN gem install sqlite3 -v '~> 1.3.13'
  16. #RUN gem install sqlite3-ruby
  17. #RUN gem install sqlite3
  18. >>>>>>> Stashed changes
  19. RUN cp config/graphs-sample.json.erb config/graphs.json.erb
  20. RUN cp config/index_parameters-sample.yml config/index_parameters.yml
  21. RUN cp config/summary_parameters-sample.yml config/summary_parameters.yml
  22. RUN cp config/parameters_edit-sample.yml config/parameters_edit.yml
  23. RUN cp config/parameter_renderers-sample.yml config/parameter_renderers.yml
  24. RUN cp config/roles-sample.yml config/roles.yml
  25. COPY users.yml config/users.yml
  26. COPY development.rb config/environments/development.rb
  27. COPY production.rb config/environments/production.rb
  28. COPY test.rb config/environments/test.rb
  29. RUN bundle
  30. RUN bin/rake db:migrate RAILS_ENV=development
  31. # Expose GenieACS GUI port
  32. EXPOSE 3000
  33. CMD ["rails", "server", "-b", "0.0.0.0"]