-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dassie/koppie alignment and added bundle caching (#6325)
* dassie/koppie alignment and added bundle caching - Use the same images for dassie/koppie dependent services. - Don't build an image for db_migrate, reuse the app image. - Use `dev-entrypoint.sh` to copy gems from image build to `/app/bundle` volume to speed up runtime `bundle install`. Only set in compose to avoid affecting CircleCI build. - `/bin` is volume mounted to allow easier dev of entrypoints, etc. --------- Co-authored-by: Alisha Evans <[email protected]>
- Loading branch information
Showing
7 changed files
with
61 additions
and
26 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
mkdir -p /app/samvera/hyrax-webapp/tmp/pids | ||
rm -f /app/samvera/hyrax-webapp/tmp/pids/* | ||
|
||
# Copy gems installed in the image to the dev bundle | ||
mkdir -p /app/bundle/ruby/$RUBY_MAJOR.0 | ||
cp -Rn /usr/local/bundle/* /app/bundle/ruby/$RUBY_MAJOR.0 | ||
bundle install | ||
|
||
# Run the command | ||
exec "$@" |
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