Skip to content

Commit

Permalink
feat: support linux aarch64 with ruby 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Apr 5, 2023
1 parent fc16fd5 commit ff9c059
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _Note:_ - This is a fork, which currently supports the following platforms and v
| OSX | 3.1.2 | x86_64 ||
| OSX | 3.1.2 | aarch64 (arm)||
| Linux | 3.1.2 | x86_64 ||
| Linux | 3.1.2 | aarch64 (arm)| |
| Linux | 3.1.2 | aarch64 (arm)| |
| Windows| 3.1.2 | x86_64 ||
| Windows| 3.1.2 | aarch64 (arm)||

Expand Down
4 changes: 2 additions & 2 deletions linux/Rakefile
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
Expand Down Expand Up @@ -41,7 +41,7 @@ ARCHITECTURES.each do |arch|

desc "Build the #{arch} Docker image"
task "image:#{arch}" do
sh "docker build --pull" \
sh "docker build" \
" -t phusion/traveling-ruby-builder-#{arch}:#{IMAGE_VERSION}" \
" -f image/Dockerfile-#{arch} image"
end
Expand Down
3 changes: 3 additions & 0 deletions linux/image/Dockerfile-arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM --platform=linux/arm64 phusion/holy-build-box:3.0
ADD . /tr_build
RUN env ARCHITECTURE=arm64 /tr_build/install.sh
2 changes: 1 addition & 1 deletion linux/image/Dockerfile-x86_64
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

0 comments on commit ff9c059

Please sign in to comment.