Skip to content

Commit 903f643

Browse files
authored
Merge pull request #359 from notch8/chunk-upload-fix
Pin Hyrax version for chunk upload fix
2 parents 419a96d + e689b57 commit 903f643

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ FROM ghcr.io/samvera/hyku/base:latest AS hyku-knap-base
22

33
# This is specifically NOT $APP_PATH but the parent directory
44
COPY --chown=1001:101 . /app/samvera
5-
COPY --chown=1001:101 bundler.d/ /app/.bundler.d/
5+
RUN ln -s /app/samvera/bundler.d /app/.bundler.d
66
ENV BUNDLE_LOCAL__HYKU_KNAPSACK=/app/samvera
77
ENV BUNDLE_DISABLE_LOCAL_BRANCH_CHECK=true
8-
ENV BUNDLE_BUNDLER_INJECT__GEM_PATH=/app/samvera/bundler.d
98

109
RUN bundle install --jobs "$(nproc)"
1110

bundler.d/example.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
ensure_gem "sentry-ruby"
1010
ensure_gem "sentry-rails"
1111
ensure_gem "cancancan", "~> 3.0" # cancancan is bundling to v1.17.0 but we need at least 3.0
12+
13+
override_gem "hyrax",
14+
github: "samvera/hyrax",
15+
ref: "ab4d108114289822b186579cd73a53d68c145a73"

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ x-app: &app
1414
# This line is what makes the knapsack include use the local code instead of the remote gem
1515
- BUNDLE_LOCAL__HYKU_KNAPSACK=/app/samvera
1616
- BUNDLE_DISABLE_LOCAL_BRANCH_CHECK=true
17-
- BUNDLE_BUNDLER_INJECT__GEM_PATH=/app/samvera/bundler.d
1817
volumes:
1918
- node_modules:/app/samvera/hyrax-webapp/node_modules:cached
2019
- uploads:/app/samvera/hyrax-webapp/public/uploads:cached

0 commit comments

Comments
 (0)