Skip to content

Commit 998b23b

Browse files
committed
change location of docker images to ghcr.io
1 parent ce619f2 commit 998b23b

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
run: |
6060
docker buildx create --driver docker-container --use
6161
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,src=tmp/build-cache --cache-to=type=local,dest=tmp/build-cache-new --load"
62+
docker images
6263
6364
- name: Move build cache and remove outdated layers
6465
run: |

History.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99
* Ensure autoconf is installed in the base iamges.
1010
* Start publishing snapshots to ghcr.io
1111
* Bump JRuby to 9.4.0.0
12-
12+
* Move docker images to ghcr.io/rake-compiler:
13+
* `ghcr.io/rake-compiler/rake-compiler-dock-jruby`
14+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-aarch64-linux`
15+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-arm-linux`
16+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-x64-mingw-ucrt`
17+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-x64-mingw32`
18+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-x86-linux`
19+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-x86-mingw32`
20+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-x86_64-darwin`
21+
* `ghcr.io/rake-compiler/rake-compiler-dock-mri-x86_64-linux`
1322

1423
1.2.2 / 2022-06-27
1524
------------------

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
name: "native-gem"
188188
runs-on: ubuntu-latest
189189
container:
190-
image: "larskanis/rake-compiler-dock-mri-x86_64-linux:1.2.1"
190+
image: "ghcr.io/rake-compiler/rake-compiler-dock-mri-x86_64-linux:1.2.1"
191191
steps:
192192
- uses: actions/checkout@v2
193193
- run: bundle install && bundle exec rake gem:x86_64-linux:rcd
@@ -242,7 +242,7 @@ The following variables are recognized by rake-compiler-dock:
242242
Must be a space separated list out of `x86-mingw32`, `x64-mingw-ucrt`, `x64-mingw32`, `x86-linux`, `x86_64-linux`, `arm-linux`, `aarch64-linux`, `x86_64-darwin` and `arm64-darwin`.
243243
It is ignored when `rubyvm` is set to `:jruby`.
244244
* `RCD_IMAGE` - The docker image that is downloaded and started.
245-
Defaults to "larskanis/rake-compiler-dock:IMAGE_VERSION" with an image version that is determined by the gem version.
245+
Defaults to "ghcr.io/rake-compiler/rake-compiler-dock-PLATFORM:IMAGE_VERSION" with an image version that is determined by the gem version.
246246

247247
The following variables are passed through to the docker container without modification:
248248

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require_relative "build/parallel_docker_build"
66

77
RakeCompilerDock::GemHelper.install_tasks
88

9-
DOCKERHUB_USER = ENV['DOCKERHUB_USER'] || "larskanis"
9+
DOCKER_REGISTRY = ENV['DOCKERHUB_USER'] || ENV['DOCKER_REGISTRY'] || "ghcr.io/rake-compiler"
1010
docker_build_cmd = Shellwords.split(ENV['RCD_DOCKER_BUILD'] || "docker build")
1111

1212
platforms = [
@@ -29,7 +29,7 @@ namespace :build do
2929
desc "Build image for platform #{platform}"
3030
task platform => sdf
3131
task sdf do
32-
sh(*docker_build_cmd, "-t", "#{DOCKERHUB_USER}/rake-compiler-dock-mri-#{platform}:#{RakeCompilerDock::IMAGE_VERSION}", "-f", "Dockerfile.mri.#{platform}", ".")
32+
sh(*docker_build_cmd, "-t", "#{DOCKER_REGISTRY}/rake-compiler-dock-mri-#{platform}:#{RakeCompilerDock::IMAGE_VERSION}", "-f", "Dockerfile.mri.#{platform}", ".")
3333
end
3434

3535
df = ERB.new(File.read("Dockerfile.mri.erb"), trim_mode: ">").result(binding)
@@ -40,7 +40,7 @@ namespace :build do
4040
desc "Build image for JRuby"
4141
task :jruby => "Dockerfile.jruby"
4242
task "Dockerfile.jruby" do
43-
sh(*docker_build_cmd, "-t", "#{DOCKERHUB_USER}/rake-compiler-dock-jruby:#{RakeCompilerDock::IMAGE_VERSION}", "-f", "Dockerfile.jruby", ".")
43+
sh(*docker_build_cmd, "-t", "#{DOCKER_REGISTRY}/rake-compiler-dock-jruby:#{RakeCompilerDock::IMAGE_VERSION}", "-f", "Dockerfile.jruby", ".")
4444
end
4545

4646
RakeCompilerDock::ParallelDockerBuild.new(platforms.map{|pl, _| "Dockerfile.mri.#{pl}" } + ["Dockerfile.jruby"], workdir: "tmp/docker", docker_build_cmd: docker_build_cmd)
@@ -57,7 +57,7 @@ task :build => "build:all"
5757
namespace :prepare do
5858
desc "Build cross compiler for x64-mingw-ucrt aka RubyInstaller-3.1+"
5959
task "mingw64-ucrt" do
60-
sh(*docker_build_cmd, "-t", "#{DOCKERHUB_USER}/mingw64-ucrt:20.04", ".",
60+
sh(*docker_build_cmd, "-t", "#{DOCKER_REGISTRY}/mingw64-ucrt:20.04", ".",
6161
chdir: "mingw64-ucrt")
6262
end
6363
end
@@ -92,11 +92,11 @@ end
9292
namespace :release do
9393
desc "push all docker images"
9494
task :images do
95-
jimg = "#{DOCKERHUB_USER}/rake-compiler-dock-jruby:#{RakeCompilerDock::IMAGE_VERSION}"
95+
jimg = "#{DOCKER_REGISTRY}/rake-compiler-dock-jruby:#{RakeCompilerDock::IMAGE_VERSION}"
9696
sh "docker", "push", jimg
9797

9898
platforms.each do |platform, _|
99-
img = "#{DOCKERHUB_USER}/rake-compiler-dock-mri-#{platform}:#{RakeCompilerDock::IMAGE_VERSION}"
99+
img = "#{DOCKER_REGISTRY}/rake-compiler-dock-mri-#{platform}:#{RakeCompilerDock::IMAGE_VERSION}"
100100
sh "docker", "push", img
101101
end
102102
end

lib/rake_compiler_dock/starter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def exec(*args)
4949
platform_postfix = jrubyvm ? "" : "-#{platform}"
5050
ENV['RCD_IMAGE'] ||
5151
ENV['RAKE_COMPILER_DOCK_IMAGE'] ||
52-
"larskanis/rake-compiler-dock-#{rubyvm}#{platform_postfix}:#{IMAGE_VERSION}"
52+
"ghcr.io/rake-compiler/rake-compiler-dock-#{rubyvm}#{platform_postfix}:#{IMAGE_VERSION}"
5353
end
5454

5555
check = check_docker(mountdir) if options.fetch(:check_docker){ true }

test/test_environment_variables.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
class TestEnvironmentVariables
1010
module Common
1111
TEST_PLATFORM = ENV["TEST_PLATFORM"] || "x64-mingw-ucrt"
12-
DOCKERHUB_USER = ENV['DOCKERHUB_USER'] || "larskanis"
12+
DOCKER_REGISTRY = ENV['DOCKERHUB_USER'] || ENV['DOCKER_REGISTRY'] || "ghcr.io/rake-compiler"
1313

1414
IS_JRUBY = TEST_PLATFORM.to_s == "jruby"
1515
platform = IS_JRUBY ? "jruby" : "mri-#{TEST_PLATFORM}"
16-
TEST_IMAGE_NAME = "#{DOCKERHUB_USER}/rake-compiler-dock-#{platform}:#{RakeCompilerDock::IMAGE_VERSION}"
16+
TEST_IMAGE_NAME = "#{DOCKER_REGISTRY}/rake-compiler-dock-#{platform}:#{RakeCompilerDock::IMAGE_VERSION}"
1717

1818
def rcd_env
1919
self.class.instance_variable_get("@rcd_env") || begin

0 commit comments

Comments
 (0)