Skip to content

Commit

Permalink
fixed Dockerfile, README and ruby testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sirux88 committed Oct 21, 2023
1 parent d512cf8 commit 01cc0f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
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
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 01cc0f1

Please sign in to comment.