Skip to content

Commit

Permalink
Merge commit '01cc0f1b0a5988a27b9dc153d577101b2aafa7f3'
Browse files Browse the repository at this point in the history
  • Loading branch information
sirux88 committed Oct 21, 2023
2 parents 6201621 + 01cc0f1 commit a0bdabf
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 44 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
**/Dockerfile
.git
.github
tmp/
1 change: 0 additions & 1 deletion .github/workflows/ruby-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
run: |
gem install bundler
bundle config path vendor/bundle
bundle config set with 'sqlite'
bundle install --jobs 4 --retry 3
yarn install --frozen-lockfile
- name: Run tests
Expand Down
18 changes: 5 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ gem 'mail_form', '>= 1.9.0'
gem 'oj'
gem 'puma'
gem 'rollbar'
gem 'simple_token_authentication', '~> 1.18', '>= 1.18.0',
git: 'https://github.com/pglombardo/simple_token_authentication.git', branch: 'rails7-support'
gem 'simple_token_authentication'

gem 'devise-i18n'
gem 'i18n-tasks', '~> 1.0.13'
Expand All @@ -105,17 +104,10 @@ gem 'google-cloud-storage', '~> 1.11', require: false
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

group :postgres, optional: true do
gem 'pg'
end

group :mysql, optional: true do
gem 'mysql2'
end

group :sqlite, optional: true do
gem 'sqlite3', force_ruby_platform: true
end
# Database backends
gem 'mysql2'
gem 'pg'
gem 'sqlite3', force_ruby_platform: true

group :production, :private do
gem 'rack-throttle', '0.7.0'
Expand Down
30 changes: 5 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
GIT
remote: https://github.com/pglombardo/simple_token_authentication.git
revision: 47db3936689c5d93b4226f85c3ca71c182ec0580
branch: rails7-support
specs:
simple_token_authentication (1.18.0)
actionmailer (>= 3.2.6, < 8)
actionpack (>= 3.2.6, < 8)
active_model_serializers
activemodel-serializers-xml
devise (>= 3.2, < 6)

GIT
remote: https://github.com/pglombardo/version.git
revision: 97678e0068542fb919f909b0d3a9e853ec7a24c2
Expand Down Expand Up @@ -65,20 +53,11 @@ GEM
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
active_model_serializers (0.10.14)
actionpack (>= 4.1)
activemodel (>= 4.1)
case_transform (>= 0.2)
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
activejob (7.0.8)
activesupport (= 7.0.8)
globalid (>= 0.3.6)
activemodel (7.0.8)
activesupport (= 7.0.8)
activemodel-serializers-xml (1.0.2)
activemodel (> 5.x)
activesupport (> 5.x)
builder (~> 3.1)
activerecord (7.0.8)
activemodel (= 7.0.8)
activesupport (= 7.0.8)
Expand Down Expand Up @@ -153,8 +132,6 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
case_transform (0.2)
activesupport
coderay (1.1.3)
concurrent-ruby (1.2.2)
config (4.2.1)
Expand Down Expand Up @@ -309,7 +286,6 @@ GEM
activesupport (>= 5.0.0)
jmespath (1.6.2)
json (2.6.3)
jsonapi-renderer (0.2.2)
jwt (2.7.1)
kramdown (2.4.0)
rexml
Expand Down Expand Up @@ -504,6 +480,10 @@ GEM
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simple_token_authentication (1.18.1)
actionmailer (>= 3.2.6, < 8)
actionpack (>= 3.2.6, < 8)
devise (>= 3.2, < 6)
singleton (0.1.1)
smart_properties (1.17.0)
sprockets (4.2.1)
Expand Down Expand Up @@ -607,7 +587,7 @@ DEPENDENCIES
ruby-debug-ide
sass-rails (~> 6.0, >= 6.0.0)
selenium-webdriver
simple_token_authentication (~> 1.18, >= 1.18.0)!
simple_token_authentication
sqlite3
stimulus-rails
terser (~> 1.1)
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ gem install bundler

export RAILS_ENV=private

bundle config set with 'sqlite'
bundle config set --local deployment 'true'
bundle install --without development production test
./bin/rails assets:precompile
Expand All @@ -200,7 +199,6 @@ export RAILS_ENV=production
# Update the following line to point to your Postgres (or MySQL/Mariadb) instance
DATABASE_URL=postgresql://passwordpusher_user:passwordpusher_passwd@postgres:5432/passwordpusher_db

bundle config set with 'postgres' # or 'mysql'
bundle install --without development private test
./bin/rails assets:precompile
./bin/rails db:setup
Expand Down
3 changes: 0 additions & 3 deletions containers/docker/pwpush/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setting global arguments
ARG BUNDLE_WITH=sqlite:mysql:postgres
ARG BUNDLE_WITHOUT=development:test:private
ARG BUNDLE_DEPLOYMENT=true

Expand Down Expand Up @@ -34,7 +33,6 @@ ENV RACK_ENV=production RAILS_ENV=production

RUN bundle config set without "${BUNDLE_WITHOUT}" \
&& bundle config set deployment "${BUNDLE_DEPLOYMENT}" \
&& bundle config set with "${BUNDLE_WITH}" \
&& bundle install

RUN yarn install
Expand Down Expand Up @@ -88,7 +86,6 @@ ENV RACK_ENV=production RAILS_ENV=production
COPY --from=build-env --chown=pwpusher:pwpusher ${APP_ROOT} ${APP_ROOT}

RUN bundle config set without "${BUNDLE_WITHOUT}" \
&& bundle config set with "${BUNDLE_WITH}" \
&& bundle config set deployment "${BUNDLE_DEPLOYMENT}"

USER pwpusher
Expand Down

0 comments on commit a0bdabf

Please sign in to comment.