-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mlibrary/faraday-and-solrcloud
Faraday and solrcloud
- Loading branch information
Showing
19 changed files
with
220 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.gems | ||
sftp/ | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
ARG RUBY_VERSION=3.1 | ||
FROM ruby:${RUBY_VERSION} | ||
FROM ruby:3.2 AS development | ||
|
||
ARG BUNDLER_VERSION=2.3 | ||
ARG UNAME=app | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
LABEL maintainer="[email protected]" | ||
#RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \ | ||
#vim-tiny | ||
|
||
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \ | ||
apt-transport-https \ | ||
vim-tiny \ | ||
ssh | ||
|
||
RUN gem install bundler:${BUNDLER_VERSION} | ||
RUN gem install bundler | ||
|
||
RUN groupadd -g ${GID} -o ${UNAME} | ||
RUN useradd -m -d /app -u ${UID} -g ${GID} -o -s /bin/bash ${UNAME} | ||
|
@@ -27,3 +21,13 @@ ENV BUNDLE_PATH /gems | |
WORKDIR /app | ||
|
||
CMD ["bundle", "exec", "ruby", "alma_webhook.rb", "-o", "0.0.0.0"] | ||
|
||
FROM development AS production | ||
|
||
ENV BUNDLE_WITHOUT development:test | ||
|
||
COPY --chown=${UID}:${GID} . /app | ||
|
||
RUN --mount=type=secret,id=gh_package_read_token,uid=1000 \ | ||
read_token="$(cat /run/secrets/gh_package_read_token)" \ | ||
&& BUNDLE_RUBYGEMS__PKG__GITHUB__COM=${read_token} bundle install |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.