Skip to content

Commit 01bcfe5

Browse files
authored
Install ORAS directly from Azure Linux package feed (#1967)
The version is still 1.3.0. @mthalman do we need to adjust anything about the renovate config since we removed the env var and renovate comment?
1 parent ac2bd0e commit 01bcfe5

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

src/Dockerfile.linux

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,9 @@
22
# docker build -t image-builder .
33
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v <local path to build>:/repo -w /repo image-builder <image-build args>
44

5-
# renovate: datasource=github-releases depName=oras-project/oras
6-
ARG ORAS_VERSION=1.3.0
7-
85
# build Microsoft.DotNet.ImageBuilder
96
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0-azurelinux3.0 AS build-env
107
ARG TARGETARCH
11-
ARG ORAS_VERSION
12-
13-
# download oras package tarball
14-
WORKDIR /
15-
RUN curl -fSL --output oras_linux.tar.gz https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_${TARGETARCH}.tar.gz \
16-
&& mkdir -p oras-install/ \
17-
&& tar -zxf oras_linux.tar.gz -C oras-install/ \
18-
&& rm -rf oras_linux.tar.gz
198

209
WORKDIR /image-builder
2110

@@ -35,15 +24,13 @@ FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-azurelinux3.0
3524

3625
# install tooling
3726
RUN tdnf install -y \
38-
moby-engine \
39-
docker-cli \
4027
docker-buildx \
28+
docker-cli \
4129
git \
30+
moby-engine \
31+
oras \
4232
&& tdnf clean all
4333

44-
# install oras tool
45-
COPY --from=build-env ["/oras-install/oras", "/usr/local/bin"]
46-
4734
# install image-builder
4835
WORKDIR /image-builder
4936
COPY --from=build-env /image-builder/out ./

0 commit comments

Comments
 (0)