From 022b8ba9b693c006f0d58028b6261d89f3c739d5 Mon Sep 17 00:00:00 2001 From: Renato Alves Felix Date: Thu, 13 Apr 2023 11:25:33 -0300 Subject: [PATCH 1/8] wip --- Dockerfile | 89 +++++++++++++----- Gemfile.lock | 249 --------------------------------------------------- 2 files changed, 65 insertions(+), 273 deletions(-) delete mode 100644 Gemfile.lock diff --git a/Dockerfile b/Dockerfile index 5afb026..a0c36d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,39 +1,80 @@ -FROM centos +FROM registry.redhat.io/ubi8/ruby-27:1-95 +#FROM registry.redhat.io/ubi8/ruby-25:1-220 -LABEL io.openshift.s2i.scripts-url="image:///usr/libexec/s2i" \ - io.s2i.scripts-url="image:///usr/libexec/s2i" +# LABEL io.openshift.s2i.scripts-url="image:///usr/libexec/s2i" \ +# io.s2i.scripts-url="image:///usr/libexec/s2i" -RUN curl -sL -o /etc/yum.repos.d/centos-essentials.repo https://gist.githubusercontent.com/marekjelen/c08a3c3a548820144f2da01d2bad6279/raw/centos-essentials.repo -ENV PATH=/opt/essentials/bin:$PATH +# RUN curl -sL -o /etc/yum.repos.d/centos-essentials.repo https://gist.githubusercontent.com/marekjelen/c08a3c3a548820144f2da01d2bad6279/raw/centos-essentials.repo +# ENV PATH=/opt/essentials/bin:$PATH -RUN yum update -y && \ - yum install --setopt=tsflags=nodocs -y essentials-ruby bundler \ - gcc gcc-c++ libxml2-devel sqlite-devel git && \ - yum clean all && \ - rm -rf /var/cache/yum - -RUN gem update --system --no-document && \ - gem update bundler --no-document +# RUN yum update -y && \ +# yum install --setopt=tsflags=nodocs -y essentials-ruby bundler \ +# gcc gcc-c++ libxml2-devel sqlite-devel git && \ +# yum clean all && \ +# rm -rf /var/cache/yum -RUN mkdir -p /usr/libexec/s2i +USER root +# RUN gem update --system --no-document && \ +# gem update bundler --no-document -COPY s2i/assemble s2i/run /usr/libexec/s2i/ +# RUN mkdir -p /usr/libexec/s2i -RUN chmod 777 /usr/libexec/s2i/{assemble,run} +# COPY s2i/assemble s2i/run /usr/libexec/s2i/ + +# RUN chmod 777 /usr/libexec/s2i/{assemble,run} ENV RAILS_ENV=production -RUN useradd -u 1001 -g 0 -M -d /workshopper workshopper +# RUN useradd -u 1001 -g 0 -M -d /workshopper workshopper -RUN mkdir -p /workshopper && chown workshopper:root /workshopper && chmod 777 /workshopper +RUN mkdir -p /workshopper && chown default:root /workshopper && chmod 777 /workshopper -USER workshopper +USER default WORKDIR /workshopper -ADD --chown=workshopper:root Gemfile Gemfile.lock ./ - - -RUN bundle install --deployment +#ADD --chown=default:root Gemfile Gemfile.lock ./ +ADD --chown=default:root Gemfile ./ + + +RUN bundle lock +RUN bundle lock --add-platform x86_64-linux +RUN bundle config set --local deployment 'true' +RUN bundle install +#RUN bundle install --deployment +#RUN +#RUN gem install liquid -v '5.4.0' --source 'https://rubygems.org/' +#RUN gem install rexml -v '3.2.5' --source 'https://rubygems.org/' +#RUN gem install ruby2_keywords -v '0.0.5' --source 'https://rubygems.org/' +#RUN gem install faraday-net_http -v '3.0.2' --source 'https://rubygems.org/' +#RUN gem install excon -v '0.99.0' --source 'https://rubygems.org/' +#RUN gem install connection_pool -v '2.4.0' --source 'https://rubygems.org/' +#RUN gem install coffee-script-source -v '1.12.2' --source 'https://rubygems.org/' +#RUN gem install coderay -v '1.1.3' --source 'https://rubygems.org/' +#RUN gem install byebug -v '11.1.3' --source 'https://rubygems.org/' +#RUN gem install tilt -v '2.1.0' --source 'https://rubygems.org/' +#RUN gem install ffi -v '1.15.5' --source 'https://rubygems.org/' +#RUN gem install zeitwerk -v '2.6.7' --source 'https://rubygems.org/' +#RUN gem install thor -v '1.2.1' --source 'https://rubygems.org/' +#RUN gem install method_source -v '1.0.0' --source 'https://rubygems.org/' +#RUN gem install popper_js -v '1.16.1' --source 'https://rubygems.org/' +#RUN gem install bindex -v '0.8.1' --source 'https://rubygems.org/' +#RUN gem install execjs -v '2.8.1' --source 'https://rubygems.org/' +#RUN gem install asciidoctor -v '2.0.18' --source 'https://rubygems.org/' +#RUN gem install timeout -v '0.3.2' --source 'https://rubygems.org/' +#RUN gem install date -v '3.3.3' --source 'https://rubygems.org/' +#RUN gem install mini_mime -v '1.1.2' --source 'https://rubygems.org/' +#RUN gem install marcel -v '1.0.2' --source 'https://rubygems.org/' +#RUN gem install websocket-extensions -v '0.1.5' --source 'https://rubygems.org/' +#RUN gem install nio4r -v '2.5.9' --source 'https://rubygems.org/' +#RUN gem install rack -v '2.2.6.4' --source 'https://rubygems.org/' +#RUN gem install i18n -v '1.12.0' --source 'https://rubygems.org/' +#RUN gem install crass -v '1.0.6' --source 'https://rubygems.org/' +#RUN gem install racc -v '1.6.2' --source 'https://rubygems.org/' +#RUN gem install erubi -v '1.12.0' --source 'https://rubygems.org/' +#RUN gem install builder -v '3.2.4' --source 'https://rubygems.org/' +#RUN gem install minitest -v '5.18.0' --source 'https://rubygems.org/' +#RUN gem install concurrent-ruby -v '1.2.2' --source 'https://rubygems.org/' +#RUN gem install rake -v '13.0.6' --source 'https://rubygems.org/' ADD --chown=workshopper:root . . @@ -44,4 +85,4 @@ ENV HOME=/workshopper EXPOSE 8080 -CMD ./boot.sh \ No newline at end of file +CMD ./boot.sh diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index f7d2d92..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,249 +0,0 @@ -GEM - remote: https://rubygems.org/ - remote: https://rails-assets.org/ - specs: - actioncable (5.2.2) - actionpack (= 5.2.2) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailer (5.2.2) - actionpack (= 5.2.2) - actionview (= 5.2.2) - activejob (= 5.2.2) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.2.2) - actionview (= 5.2.2) - activesupport (= 5.2.2) - rack (~> 2.0) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.2.2) - activesupport (= 5.2.2) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.2.2) - activesupport (= 5.2.2) - globalid (>= 0.3.6) - activemodel (5.2.2) - activesupport (= 5.2.2) - activerecord (5.2.2) - activemodel (= 5.2.2) - activesupport (= 5.2.2) - arel (>= 9.0) - activerecord-jdbc-adapter (52.1-java) - activerecord (~> 5.2.0) - activerecord-jdbcsqlite3-adapter (52.1-java) - activerecord-jdbc-adapter (= 52.1) - jdbc-sqlite3 (~> 3.8, < 3.30) - activestorage (5.2.2) - actionpack (= 5.2.2) - activerecord (= 5.2.2) - marcel (~> 0.3.1) - activesupport (5.2.2) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - arel (9.0.0) - asciidoctor (1.5.8) - autoprefixer-rails (9.4.7) - execjs - bcrypt (3.1.12) - bcrypt (3.1.12-java) - bindex (0.5.0) - bootstrap (4.2.1) - autoprefixer-rails (>= 9.1.0) - popper_js (>= 1.14.3, < 2) - sassc-rails (>= 2.0.0) - builder (3.2.3) - byebug (10.0.2) - coderay (1.1.2) - coffee-rails (4.2.2) - coffee-script (>= 2.2.0) - railties (>= 4.0.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.1.4) - crass (1.0.4) - erubi (1.8.0) - excon (0.62.0) - execjs (2.7.0) - faraday (0.15.4) - multipart-post (>= 1.2, < 3) - ffi (1.9.25) - ffi (1.9.25-java) - font-awesome-rails (4.7.0.4) - railties (>= 3.2, < 6.0) - globalid (0.4.2) - activesupport (>= 4.2.0) - i18n (1.5.3) - concurrent-ruby (~> 1.0) - jbuilder (2.8.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jdbc-sqlite3 (3.20.1) - jquery-rails (4.3.3) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - kramdown (2.0.0) - libv8 (6.7.288.46.1) - liquid (4.0.1) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - loofah (2.2.3) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (0.3.3) - mimemagic (~> 0.3.2) - method_source (0.9.2) - mimemagic (0.3.3) - mini_mime (1.0.1) - mini_portile2 (2.4.0) - mini_racer (0.2.4) - libv8 (>= 6.3) - minitest (5.11.3) - multi_json (1.13.1) - multipart-post (2.0.0) - nio4r (2.3.1) - nio4r (2.3.1-java) - nokogiri (1.10.1) - mini_portile2 (~> 2.4.0) - nokogiri (1.10.1-java) - popper_js (1.14.5) - puma (3.12.0) - puma (3.12.0-java) - rack (2.0.6) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.2.2) - actioncable (= 5.2.2) - actionmailer (= 5.2.2) - actionpack (= 5.2.2) - actionview (= 5.2.2) - activejob (= 5.2.2) - activemodel (= 5.2.2) - activerecord (= 5.2.2) - activestorage (= 5.2.2) - activesupport (= 5.2.2) - bundler (>= 1.3.0) - railties (= 5.2.2) - sprockets-rails (>= 2.0.0) - rails-assets-chartjs (2.7.3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.0.4) - loofah (~> 2.2, >= 2.2.2) - railties (5.2.2) - actionpack (= 5.2.2) - activesupport (= 5.2.2) - method_source - rake (>= 0.8.7) - thor (>= 0.19.0, < 2.0) - rake (12.3.2) - rb-fsevent (0.10.3) - rb-inotify (0.10.0) - ffi (~> 1.0) - redis (4.1.0) - ruby_dep (1.5.0) - sass (3.7.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sassc (2.0.0) - ffi (~> 1.9.6) - rake - sassc-rails (2.1.0) - railties (>= 4.0.0) - sassc (>= 2.0) - sprockets (> 3.0) - sprockets-rails - tilt - spring (2.0.2) - activesupport (>= 4.2) - spring-watcher-listen (2.0.1) - listen (>= 2.7, < 4.0) - spring (>= 1.2, < 3.0) - sprockets (3.7.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.3) - thread_safe (0.3.6) - thread_safe (0.3.6-java) - tilt (2.0.9) - turbolinks (5.2.0) - turbolinks-source (~> 5.2) - turbolinks-source (5.2.0) - tzinfo (1.2.5) - thread_safe (~> 0.1) - tzinfo-data (1.2018.9) - tzinfo (>= 1.0.0) - uglifier (4.1.20) - execjs (>= 0.3.0, < 3) - web-console (3.7.0) - actionview (>= 5.0) - activemodel (>= 5.0) - bindex (>= 0.4.0) - railties (>= 5.0) - websocket-driver (0.7.0) - websocket-extensions (>= 0.1.0) - websocket-driver (0.7.0-java) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.3) - -PLATFORMS - java - ruby - -DEPENDENCIES - activerecord-jdbcsqlite3-adapter - asciidoctor - bcrypt (~> 3.1.7) - bootstrap (~> 4.0) - byebug - coderay - coffee-rails (~> 4.2) - excon - faraday - font-awesome-rails - jbuilder (~> 2.5) - jquery-rails - kramdown - liquid - listen (>= 3.0.5, < 3.2) - mini_racer - puma (~> 3.7) - rails (~> 5.2) - rails-assets-chartjs! - redis (~> 4.0) - sass-rails (~> 5.0) - spring - spring-watcher-listen (~> 2.0.0) - sqlite3 - turbolinks (~> 5) - tzinfo-data - uglifier (>= 1.3.0) - web-console (>= 3.3.0) From bceb7b24f2daf7bf3847aabc0398ca86b00b6516 Mon Sep 17 00:00:00 2001 From: Renato Alves Felix Date: Thu, 13 Apr 2023 11:47:38 -0300 Subject: [PATCH 2/8] adding Gemfile.lock --- Dockerfile | 45 ++++----------------------------------------- 1 file changed, 4 insertions(+), 41 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0c36d2..efd862c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,50 +32,13 @@ RUN mkdir -p /workshopper && chown default:root /workshopper && chmod 777 /works USER default WORKDIR /workshopper -#ADD --chown=default:root Gemfile Gemfile.lock ./ -ADD --chown=default:root Gemfile ./ +ADD --chown=default:root Gemfile Gemfile.lock ./ +# ADD --chown=default:root Gemfile ./ +# RUN bundle lock +# RUN bundle lock --add-platform x86_64-linux - -RUN bundle lock -RUN bundle lock --add-platform x86_64-linux RUN bundle config set --local deployment 'true' RUN bundle install -#RUN bundle install --deployment -#RUN -#RUN gem install liquid -v '5.4.0' --source 'https://rubygems.org/' -#RUN gem install rexml -v '3.2.5' --source 'https://rubygems.org/' -#RUN gem install ruby2_keywords -v '0.0.5' --source 'https://rubygems.org/' -#RUN gem install faraday-net_http -v '3.0.2' --source 'https://rubygems.org/' -#RUN gem install excon -v '0.99.0' --source 'https://rubygems.org/' -#RUN gem install connection_pool -v '2.4.0' --source 'https://rubygems.org/' -#RUN gem install coffee-script-source -v '1.12.2' --source 'https://rubygems.org/' -#RUN gem install coderay -v '1.1.3' --source 'https://rubygems.org/' -#RUN gem install byebug -v '11.1.3' --source 'https://rubygems.org/' -#RUN gem install tilt -v '2.1.0' --source 'https://rubygems.org/' -#RUN gem install ffi -v '1.15.5' --source 'https://rubygems.org/' -#RUN gem install zeitwerk -v '2.6.7' --source 'https://rubygems.org/' -#RUN gem install thor -v '1.2.1' --source 'https://rubygems.org/' -#RUN gem install method_source -v '1.0.0' --source 'https://rubygems.org/' -#RUN gem install popper_js -v '1.16.1' --source 'https://rubygems.org/' -#RUN gem install bindex -v '0.8.1' --source 'https://rubygems.org/' -#RUN gem install execjs -v '2.8.1' --source 'https://rubygems.org/' -#RUN gem install asciidoctor -v '2.0.18' --source 'https://rubygems.org/' -#RUN gem install timeout -v '0.3.2' --source 'https://rubygems.org/' -#RUN gem install date -v '3.3.3' --source 'https://rubygems.org/' -#RUN gem install mini_mime -v '1.1.2' --source 'https://rubygems.org/' -#RUN gem install marcel -v '1.0.2' --source 'https://rubygems.org/' -#RUN gem install websocket-extensions -v '0.1.5' --source 'https://rubygems.org/' -#RUN gem install nio4r -v '2.5.9' --source 'https://rubygems.org/' -#RUN gem install rack -v '2.2.6.4' --source 'https://rubygems.org/' -#RUN gem install i18n -v '1.12.0' --source 'https://rubygems.org/' -#RUN gem install crass -v '1.0.6' --source 'https://rubygems.org/' -#RUN gem install racc -v '1.6.2' --source 'https://rubygems.org/' -#RUN gem install erubi -v '1.12.0' --source 'https://rubygems.org/' -#RUN gem install builder -v '3.2.4' --source 'https://rubygems.org/' -#RUN gem install minitest -v '5.18.0' --source 'https://rubygems.org/' -#RUN gem install concurrent-ruby -v '1.2.2' --source 'https://rubygems.org/' -#RUN gem install rake -v '13.0.6' --source 'https://rubygems.org/' - ADD --chown=workshopper:root . . RUN bundle exec rake assets:precompile From 580df8b04613ff4788fb09e356da18ba99dc99ae Mon Sep 17 00:00:00 2001 From: Renato Alves Felix Date: Sat, 15 Apr 2023 19:27:40 -0300 Subject: [PATCH 3/8] v1 --- Dockerfile | 16 ++-- Gemfile | 7 +- Gemfile.lock | 251 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 265 insertions(+), 9 deletions(-) create mode 100644 Gemfile.lock diff --git a/Dockerfile b/Dockerfile index efd862c..51093e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,27 +24,31 @@ USER root # RUN chmod 777 /usr/libexec/s2i/{assemble,run} ENV RAILS_ENV=production +ENV HOME=/workshopper # RUN useradd -u 1001 -g 0 -M -d /workshopper workshopper -RUN mkdir -p /workshopper && chown default:root /workshopper && chmod 777 /workshopper +RUN mkdir -p /workshopper \ + && chown default:root /workshopper \ + && chmod 777 /workshopper USER default WORKDIR /workshopper ADD --chown=default:root Gemfile Gemfile.lock ./ -# ADD --chown=default:root Gemfile ./ -# RUN bundle lock -# RUN bundle lock --add-platform x86_64-linux +#ADD --chown=default:root Gemfile ./ +#RUN bundle lock --add-platform x86_64-linux + +ADD --chown=default:root Gemfile ./ +RUN bundle lock --add-platform x86_64-linux RUN bundle config set --local deployment 'true' RUN bundle install -ADD --chown=workshopper:root . . +ADD --chown=default:root . . RUN bundle exec rake assets:precompile RUN rm -rf tmp log && mkdir -p tmp log && chmod -R 0777 tmp log -ENV HOME=/workshopper EXPOSE 8080 diff --git a/Gemfile b/Gemfile index 32c9ed0..80adaca 100644 --- a/Gemfile +++ b/Gemfile @@ -31,9 +31,10 @@ platforms :jruby do gem 'activerecord-jdbcsqlite3-adapter' end -source 'https://rails-assets.org' do - gem 'rails-assets-chartjs' -end +gem 'rails-assets-chartjs', '2.1.1', source: 'https://rails-assets.org' +# source 'https://rails-assets.org' do +# gem 'rails-assets-chartjs' +# end group :development, :test do gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..9cd108d --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,251 @@ +GEM + remote: https://rails-assets.org/ + specs: + rails-assets-chartjs (2.1.1) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.8.1) + actionpack (= 5.2.8.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.8.1) + actionpack (= 5.2.8.1) + actionview (= 5.2.8.1) + activejob (= 5.2.8.1) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.8.1) + actionview (= 5.2.8.1) + activesupport (= 5.2.8.1) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.8.1) + activesupport (= 5.2.8.1) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.8.1) + activesupport (= 5.2.8.1) + globalid (>= 0.3.6) + activemodel (5.2.8.1) + activesupport (= 5.2.8.1) + activerecord (5.2.8.1) + activemodel (= 5.2.8.1) + activesupport (= 5.2.8.1) + arel (>= 9.0) + activestorage (5.2.8.1) + actionpack (= 5.2.8.1) + activerecord (= 5.2.8.1) + marcel (~> 1.0.0) + activesupport (5.2.8.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (9.0.0) + asciidoctor (2.0.18) + autoprefixer-rails (10.4.13.0) + execjs (~> 2) + bcrypt (3.1.18) + bindex (0.8.1) + bootstrap (4.6.2) + autoprefixer-rails (>= 9.1.0) + popper_js (>= 1.16.1, < 2) + sassc-rails (>= 2.0.0) + builder (3.2.4) + byebug (11.1.3) + coderay (1.1.3) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.2.2) + crass (1.0.6) + date (3.3.3) + erubi (1.12.0) + excon (0.99.0) + execjs (2.8.1) + faraday (2.7.4) + faraday-net_http (>= 2.0, < 3.1) + ruby2_keywords (>= 0.0.4) + faraday-net_http (3.0.2) + ffi (1.15.5) + font-awesome-rails (4.7.0.8) + railties (>= 3.2, < 8.0) + globalid (1.1.0) + activesupport (>= 5.0) + i18n (1.12.0) + concurrent-ruby (~> 1.0) + jbuilder (2.11.5) + actionview (>= 5.0.0) + activesupport (>= 5.0.0) + jquery-rails (4.5.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kramdown (2.4.0) + rexml + libv8-node (16.10.0.0-x86_64-linux) + liquid (5.4.0) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.20.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.2) + method_source (1.0.0) + mini_mime (1.1.2) + mini_racer (0.6.3) + libv8-node (~> 16.10.0.0) + minitest (5.18.0) + net-imap (0.3.4) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.1) + timeout + net-smtp (0.3.3) + net-protocol + nio4r (2.5.9) + nokogiri (1.14.3-x86_64-linux) + racc (~> 1.4) + popper_js (1.16.1) + puma (3.12.6) + racc (1.6.2) + rack (2.2.6.4) + rack-test (2.1.0) + rack (>= 1.3) + rails (5.2.8.1) + actioncable (= 5.2.8.1) + actionmailer (= 5.2.8.1) + actionpack (= 5.2.8.1) + actionview (= 5.2.8.1) + activejob (= 5.2.8.1) + activemodel (= 5.2.8.1) + activerecord (= 5.2.8.1) + activestorage (= 5.2.8.1) + activesupport (= 5.2.8.1) + bundler (>= 1.3.0) + railties (= 5.2.8.1) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.5.0) + loofah (~> 2.19, >= 2.19.1) + railties (5.2.8.1) + actionpack (= 5.2.8.1) + activesupport (= 5.2.8.1) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (13.0.6) + rb-fsevent (0.11.2) + rb-inotify (0.10.1) + ffi (~> 1.0) + redis (4.8.1) + rexml (3.2.5) + ruby2_keywords (0.0.5) + ruby_dep (1.5.0) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.1.0) + railties (>= 5.2.0) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + sassc (2.4.0) + ffi (~> 1.9) + sassc-rails (2.1.2) + railties (>= 4.0.0) + sassc (>= 2.0) + sprockets (> 3.0) + sprockets-rails + tilt + spring (2.1.1) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.6.2-x86_64-linux) + thor (1.2.1) + thread_safe (0.3.6) + tilt (2.1.0) + timeout (0.3.2) + turbolinks (5.2.1) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.11) + thread_safe (~> 0.1) + uglifier (4.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.7.0) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + +PLATFORMS + x86_64-linux + +DEPENDENCIES + activerecord-jdbcsqlite3-adapter + asciidoctor + bcrypt (~> 3.1.7) + bootstrap (~> 4.0) + byebug + coderay + coffee-rails (~> 4.2) + excon + faraday + font-awesome-rails + jbuilder (~> 2.5) + jquery-rails + kramdown + liquid + listen (>= 3.0.5, < 3.2) + mini_racer + puma (~> 3.7) + rails (~> 5.2) + rails-assets-chartjs (= 2.1.1)! + redis (~> 4.0) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 2.2.24 From 2e6a48813c0b40b01e4c3b8fe743cee7db54f9ff Mon Sep 17 00:00:00 2001 From: Renato Alves Felix Date: Sat, 15 Apr 2023 20:14:44 -0300 Subject: [PATCH 4/8] merge with source from jamesfalkner --- app/views/layouts/application.html.erb | 23 +++++++++++++++++++++++ app/views/welcome/complete.html.erb | 2 +- app/views/welcome/lab.html.erb | 2 +- config/routes.rb | 5 +++-- lib/workshopper/lab.rb | 21 ++++++++++++++++++--- 5 files changed, 46 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 096d8a2..ea9b06f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -13,6 +13,15 @@ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + +