Sha256: bf6b33a312e8a2a35dcf06d790a2210916c0b3533ac0fa30a18fe09507573960
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
FROM opensuse/leap:15.1 ENV NOKOGIRI_USE_SYSTEM_LIBRARIES 1 RUN useradd -g users -p rails -d /home/rails -m rails RUN echo 'rails ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers RUN zypper -n addrepo -f https://dl.yarnpkg.com/rpm/yarn.repo; zypper --gpg-auto-import-keys refresh RUN zypper -n install --no-recommends ruby2.5-devel nodejs10 make gcc timezone sudo pkg-config sqlite3-devel libxml2-devel libxslt-devel yarn git-core curl RUN zypper -n clean -a RUN gem install --no-format-executable --no-document rails -v '~> 6' USER rails WORKDIR /home/rails RUN rails new thingiverse; WORKDIR /home/rails/thingiverse RUN rails g scaffold thing name:string amount:integer RUN echo 'gem "influxdb-rails", :git => "https://github.com/influxdata/influxdb-rails/", :branch => "master"' >> Gemfile RUN bundle install; rails webpacker:install; rake db:migrate RUN sed -i '2i \ root to: "things#index"' config/routes.rb RUN bundle exec rails generate influxdb RUN sed -i '2i \ config.client.hosts = "influx"' config/initializers/influxdb_rails.rb CMD bundle exec rails server -b 0.0.0.0 -p 4000
Version data entries
4 entries across 4 versions & 1 rubygems