Skip to content

Commit

Permalink
Update to distribution v3 rc.1 (#104)
Browse files Browse the repository at this point in the history
* Update to distribution v3 alpha

See https://github.com/distribution/distribution/releases/tag/v3.0.0-alpha.1

* Update runtime image to registry:3.0.0-alpha.1

* Update to distribution v3 rc.1

See https://github.com/distribution/distribution/releases/tag/v3.0.0-rc.1
  • Loading branch information
gesellix authored Nov 24, 2024
1 parent 7cdaa49 commit 69d2707
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public DockerRegistry() {
this.imageApi = new ImageApi(dockerClientConfig);

if (LocalDocker.isNativeWindows()) {
imageNameWithTag = "gesellix/registry:2.8.3-windows-ltsc2022";
imageNameWithTag = "gesellix/registry:3.0.0-rc.1-windows-ltsc2022";
} else {
imageNameWithTag = "registry:2.8.3";
imageNameWithTag = "registry:3.0.0-rc.1";
}
imageNameWithTag = System.getProperty("DOCKER_REGISTRY_IMAGE_OVERRIDE", imageNameWithTag);
}
Expand Down
13 changes: 7 additions & 6 deletions registry-windows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ ENV GO111MODULE=auto
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV DOCKER_BUILDTAGS include_oss include_gcs
ENV DISTRIBUTION_VERSION v2.8.3
ENV DISTRIBUTION_VERSION v3.0.0-rc.1

RUN mkdir src\github.com\docker ; \
cd src\github.com\docker ; \
git clone -q https://github.com/docker/distribution ; \
RUN mkdir src\github.com\distribution ; \
cd src\github.com\distribution ; \
git clone -q https://github.com/distribution/distribution ; \
cd distribution ; \
git checkout -q $env:DISTRIBUTION_VERSION ; \
cd cmd\registry ; \
go build -o registry.exe
go build -o registry.exe ; \
dir

FROM mcr.microsoft.com/windows/nanoserver:ltsc2022
EXPOSE 5000

ENTRYPOINT ["\\registry.exe"]
CMD ["serve", "/config/config.yml"]

COPY --from=build /go/src/github.com/docker/distribution/cmd/registry/registry.exe /registry.exe
COPY --from=build /go/src/github.com/distribution/distribution/cmd/registry/registry.exe /registry.exe
COPY config.yml /config/config.yml

0 comments on commit 69d2707

Please sign in to comment.