Skip to content

Commit

Permalink
Merge pull request #8719 from coolo/bundle_gems
Browse files Browse the repository at this point in the history
Fix package build updating sassc and rake
  • Loading branch information
David Kang committed Nov 15, 2019
2 parents 8a8ef05 + 4f25334 commit d903cc4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/obs-bundled-gems.spec
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
This package bundles all the gems required by the Open Build Service
to make it easier to deploy the obs-server package.

%define rake_version 13.0.0
%define rake_version 13.0.1
%define rack_version 2.0.7

%package -n obs-api-deps
Expand Down
2 changes: 0 additions & 2 deletions src/api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ group :assets do
gem 'cssmin', '>= 1.0.2'
# for minifying JavaScript
gem 'uglifier', '>= 1.2.2'
# sassc 2.2.0 is throwing exception
gem 'sassc', '~> 2.1.0'
# to use sass in the asset pipeline
gem 'sassc-rails'
# assets for jQuery DataTables
Expand Down
5 changes: 2 additions & 3 deletions src/api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ GEM
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (13.0.0)
rake (13.0.1)
rantly (2.0.0)
rbtree3 (0.5.0)
rdoc (6.2.0)
Expand Down Expand Up @@ -381,7 +381,7 @@ GEM
crass (~> 1.0.2)
nokogiri (>= 1.8.0)
nokogumbo (~> 2.0)
sassc (2.1.0)
sassc (2.2.1)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
Expand Down Expand Up @@ -540,7 +540,6 @@ DEPENDENCIES
rubocop-rspec
ruby-ldap
sanitize
sassc (~> 2.1.0)
sassc-rails
selenium-webdriver
shoulda-matchers (~> 4.0)
Expand Down
1 change: 1 addition & 0 deletions src/api/docker-files/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN chown -R frontend /obs/src/api
USER frontend
WORKDIR /obs/src/api

ENV BUNDLE_BUILD__SASSC=--disable-march-tune-native
# Refresh our bundle
RUN export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 || bundle install --jobs=3 --retry=3

Expand Down

0 comments on commit d903cc4

Please sign in to comment.