-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into schema-3-dep
- Loading branch information
Showing
10 changed files
with
275 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.2.0 |
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,4 +1,4 @@ | ||
FROM phusion/passenger-full:2.1.0 | ||
FROM phusion/passenger-full:3.0.7 | ||
LABEL maintainer="[email protected]" | ||
|
||
# Set correct environment variables. | ||
|
@@ -11,8 +11,9 @@ RUN usermod -a -G docker_env app | |
# Use baseimage-docker's init process. | ||
CMD ["/sbin/my_init"] | ||
|
||
# Use Ruby 2.6.9 | ||
RUN bash -lc 'rvm --default use ruby-2.6.9' | ||
# Use Ruby 3.1.4 | ||
RUN bash -lc 'rvm install ruby-3.2.0' && \ | ||
bash -lc 'rvm --default use ruby-3.2.0' | ||
|
||
# Update installed APT packages | ||
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \ | ||
|
@@ -44,8 +45,10 @@ RUN mkdir -p /home/app/webapp/vendor/bundle && \ | |
|
||
# Install Ruby gems | ||
WORKDIR /home/app/webapp | ||
RUN gem install bundler && \ | ||
/sbin/setuser app bundle install --path vendor/bundle | ||
RUN gem install rubygems-update -v 3.5.6 && \ | ||
gem install bundler:2.5.6 && \ | ||
su - app -c "bundle config set path 'vendor/bundle'" && \ | ||
su - app -c 'cd /home/app/webapp && bundle install' | ||
|
||
# Run additional scripts during container startup (i.e. not at build time) | ||
WORKDIR /home/app/webapp | ||
|
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.