Skip to content

Commit

Permalink
changes required for new gems
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Simpson committed Dec 31, 2023
1 parent 370b011 commit 58044f0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
17 changes: 10 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ gemspec
# gem "debug", ">= 1.0.0"

# This is needed to use our local knapsack
gemfile_path = File.expand_path("hyrax-webapp/Gemfile", __dir__)
if File.exist?(gemfile_path)
gemfile = File.read(gemfile_path).split("\n").reject { |l| l.match('knapsack') }
# rubocop:disable Security/Eval
eval(gemfile.join("\n"), binding)
# rubocop:enable Security/Eval
end
#gemfile_path = File.expand_path("hyrax-webapp/Gemfile", __dir__)
#if File.exist?(gemfile_path)
# gemfile = File.read(gemfile_path).split("\n").reject { |l| l.match('knapsack') }
# # rubocop:disable Security/Eval
# eval(gemfile.join("\n"), binding)
# # rubocop:enable Security/Eval
#end

gem 'hyku-api', path: '/app/hyku-api'

2 changes: 0 additions & 2 deletions docker-compose.bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ version: '3.8'
services:
# Uncomment to allow for the use of a ruby debugger (byebug, pry, etc) in Docker.
# See http://playbook-staging.notch8.com/en/devops/docker_debugger for more info.
base:
command: sh -l -c "bundle && bundle exec puma -v -b tcp://0.0.0.0:3000"
web:
command: sh -l -c "bundle && bundle exec puma -v -b tcp://0.0.0.0:3000"
worker:
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
file: hyrax-webapp/docker-compose-ext-solr.yml
service: base
image: ghcr.io/samvera/hyku/base:${TAG:-latest}
command: bash -l -c "echo 'container not needed, exiting'"

web:
<<: *app
Expand Down Expand Up @@ -91,7 +92,7 @@ services:
service: initialize_app
command:
- >
db-migrate-seed.sh
bundle && db-migrate-seed.sh
redis:
extends:
Expand Down
8 changes: 5 additions & 3 deletions hyku_knapsack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ Gem::Specification.new do |spec|
end

spec.add_dependency "rails", ">= 5.2.0"
spec.add_dependency "hyku-api", github: "ubiquitypress/hyku-api", branch: "main"
spec.add_dependency "hyku_plugin_google_cloud_url_mask", github: "ubiquitypress/hyku_plugin_google_cloud_url_mask", branch: "main", require: false
spec.add_dependency "hyku-plugin-schema-yaml", github: "ubiquitypress/hyku-plugin-schema-yaml", branch: "develop"

spec.add_dependency "hyku-api"
spec.add_dependency "hyku_plugin_google_cloud_url_mask"
spec.add_dependency "hyku-plugin-schema-yaml"

spec.add_dependency "blacklight_advanced_search"
end

0 comments on commit 58044f0

Please sign in to comment.