-
Notifications
You must be signed in to change notification settings - Fork 114
Feat: Upgrade to Ruby 3.1.2 / Support ARM64 OSX/Linux #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
75afdff
03c08c3
b5fb0ad
4fd8c3a
240c3fe
fc16fd5
ff9c059
70f7153
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| /linux/runtime | ||
| /linux/output | ||
| /linux/traveling-ruby-gems* | ||
| /osx/runtime | ||
| /osx/output | ||
| /osx/work | ||
| /windows/cache | ||
| /windows/output | ||
| *.sublime-workspace | ||
| *.tar.gz | ||
| .DS_Store |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| IMAGE_VERSION = "1.0" | ||
| VERSION = File.read("../VERSION.txt").strip | ||
| RUBY_VERSIONS = File.read("../RUBY_VERSIONS.txt").strip.split(/\s+/) | ||
| ARCHITECTURES = ["x86_64"] | ||
| ARCHITECTURES = ["x86_64",'arm64'] | ||
| CONCURRENCY = `./internal/cpucount`.to_i + 1 | ||
|
|
||
| task :default => :package | ||
|
|
@@ -41,7 +41,7 @@ ARCHITECTURES.each do |arch| | |
|
|
||
| desc "Build the #{arch} Docker image" | ||
| task "image:#{arch}" do | ||
| sh "docker build --pull" \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why no --pull?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh I think that was from testing, I wasn't certain it was using the built image and not pulling the published versioned I had created with the same tag, I added that back in, in the I'll add it back in |
||
| sh "docker build" \ | ||
| " -t phusion/traveling-ruby-builder-#{arch}:#{IMAGE_VERSION}" \ | ||
| " -f image/Dockerfile-#{arch} image" | ||
| end | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| FROM --platform=linux/arm64 phusion/holy-build-box:3.0 | ||
FooBarWidget marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ADD . /tr_build | ||
| RUN env ARCHITECTURE=arm64 /tr_build/install.sh | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| FROM phusion/holy-build-box-64:3.0 | ||
| FROM --platform=linux/amd64 phusion/holy-build-box:3.0 | ||
| ADD . /tr_build | ||
| RUN env ARCHITECTURE=x86_64 /tr_build/install.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why +1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure! I pulled that change in from this fork
75afdff#diff-fe8ec1b2975d083dd6bc6eaf2fca4dba61a6466d1991a1cbaf3c9dd27b841941L5
I imagine the internal cpu count, is going to be the max, so adding one doesn't make sense, will remove and retest