forked from nasa/cmr-opensearch
-
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 nasa#111 from nasa/CMR-9056
CMR-9056: Upgrade to Ruby 3+ and gemfile updates
- Loading branch information
Showing
5 changed files
with
14 additions
and
19 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 @@ | ||
2.7.4 | ||
3.1.4 |
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,5 +1,5 @@ | ||
# Ruby image | ||
FROM ruby:2.7.4 | ||
FROM ruby:3.1.4 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
|
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 |
---|---|---|
|
@@ -32,11 +32,11 @@ See public/licenses.txt | |
|
||
## Installation | ||
|
||
* Ruby 2.7.4 | ||
* Ruby 3.1.4 | ||
* A Ruby version manager such as [RVM](https://rvm.io/) or [rbenv](https://github.com/rbenv/rbenv) is strongly recommended. | ||
|
||
### Initial setup | ||
Once the repository is cloned locally and Ruby 2.5.3 is installed, you must install the dependencies. | ||
Once the repository is cloned locally and Ruby 3.1.4 is installed, you must install the dependencies. | ||
If you don't have the [bundler](https://bundler.io/) gem already installed, execute the command below in the project root directory: | ||
|
||
gem install bundler | ||
|
@@ -50,14 +50,13 @@ Install all the gem dependencies: | |
bundle install | ||
|
||
In some cases, depending on your operating system type and/or version, the above command will fail while trying to install | ||
the libv8 and therubyracer gems. While there might be lots of causes for the errors and lots of | ||
the libv8 gem. While there might be lots of causes for the errors and lots of | ||
solutions to fix the errors, we found that on some versions of OS X, you can overcome the problem by trying to use the existing | ||
operating system version of the libv8 library, rather than trying to build a new one during the normal gem install. | ||
We found the following workarounds to the _**bundle install**_ failures due to libv8: | ||
|
||
$ brew install [email protected] | ||
$ bundle config build.libv8 --with-system-v8 | ||
$ bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected]) | ||
$ bundle install | ||
|
||
Local problems with mimemagic on MACOSX? | ||
|
@@ -147,11 +146,9 @@ that the application needs in order to run. A sample _config/application.yml_ f | |
|
||
development: | ||
<<: *current | ||
CMR_ECHO_SYSTEM_TOKEN: "CMR system token with tagging permissions in the CMR environment that development uses" | ||
|
||
production: | ||
<<: *current | ||
CMR_ECHO_SYSTEM_TOKEN: "CMR system token with tagging permissions in the CMR PROD environment" | ||
|
||
test: &test | ||
# test values are already defaulted to enable CI automated Rspec and cucumber tests | ||
|