-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use debian base image for ruby 2 (#726)
* use debian base image for ruby 2 * remove ruby version from ruby 2 gemfile lock * lints and clippy * add comment
- Loading branch information
1 parent
cb9d095
commit 698230d
Showing
10 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 @@ | ||
2.6.6 |
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,2 @@ | ||
|
||
source 'https://rubygems.org' |
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,11 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
|
||
PLATFORMS | ||
arm64-darwin-21 | ||
|
||
DEPENDENCIES | ||
|
||
BUNDLED WITH | ||
2.3.7 |
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 @@ | ||
web: ruby app.rb |
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 @@ | ||
puts "Hello from Ruby 2" |
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,58 @@ | ||
--- | ||
source: tests/generate_plan_tests.rs | ||
expression: plan | ||
--- | ||
{ | ||
"providers": [], | ||
"buildImage": "[build_image]", | ||
"variables": { | ||
"BUNDLE_GEMFILE": "/app/Gemfile", | ||
"GEM_HOME": "/usr/local/rvm/gems/2.6.6", | ||
"GEM_PATH": "/usr/local/rvm/gems/2.6.6:/usr/local/rvm/gems/2.6.6@global", | ||
"MALLOC_ARENA_MAX": "2", | ||
"NIXPACKS_METADATA": "ruby" | ||
}, | ||
"phases": { | ||
"build": { | ||
"name": "build", | ||
"dependsOn": [ | ||
"install" | ||
] | ||
}, | ||
"install": { | ||
"name": "install", | ||
"dependsOn": [ | ||
"setup" | ||
], | ||
"cmds": [ | ||
"bundle install" | ||
], | ||
"onlyIncludeFiles": [ | ||
"Gemfile", | ||
"Gemfile.lock" | ||
], | ||
"cacheDirectories": [ | ||
"/root/.bundle/cache" | ||
], | ||
"paths": [ | ||
"/usr/local/rvm/rubies/2.6.6/bin", | ||
"/usr/local/rvm/gems/2.6.6/bin", | ||
"/usr/local/rvm/gems/2.6.6@global/bin" | ||
] | ||
}, | ||
"setup": { | ||
"name": "setup", | ||
"aptPkgs": [ | ||
"procps" | ||
], | ||
"cmds": [ | ||
"curl -sSL https://get.rvm.io | bash -s stable && . /etc/profile.d/rvm.sh && rvm install 2.6.6 && rvm --default use 2.6.6 && gem install bundler:2.3.7 && rm -rf /usr/local/rvm/src", | ||
"echo 'source /usr/local/rvm/scripts/rvm' >> /root/.profile" | ||
], | ||
"onlyIncludeFiles": [] | ||
} | ||
}, | ||
"start": { | ||
"cmd": "ruby app.rb" | ||
} | ||
} |