Use Azure Linux 3.0 images from MAR (#5779)
This commit is contained in:
Родитель
6ba9405574
Коммит
0806c687cb
|
@ -6,8 +6,8 @@
|
|||
cat("$REPO:", VARIABLES[cat("dotnet|", dotnetMajorMinor, "|product-version")], "-", OS_VERSION, "-extra", ARCH_TAG_SUFFIX) ^
|
||||
set osVersionBase to match(OS_VERSION, ".+(?=.*-)")[0] ^
|
||||
set installerImageTag to when(isAzureLinux,
|
||||
cat(
|
||||
when(find(OS_VERSION, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/",
|
||||
when(find(OS_VERSION, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
cat(ARCH_VERSIONED, "/buildpack-deps:", osVersionBase, "-curl"))
|
||||
|
|
|
@ -25,7 +25,8 @@
|
|||
set osVersionBase to when(osVersionBase = "noble" && ARCH_VERSIONED = "arm32v7", "jammy", osVersionBase) ^
|
||||
|
||||
set installerImageTag to when(isDistrolessAzureLinux,
|
||||
cat(when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/"
|
||||
when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
when(isAlpine || isFullAzureLinux,
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
set osVersionBase to when(osVersionBase = "noble" && ARCH_VERSIONED = "arm32v7", "jammy", osVersionBase) ^
|
||||
|
||||
set installerImageTag to when(isDistrolessAzureLinux,
|
||||
cat(when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/",
|
||||
when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
when(isAlpine || isFullAzureLinux,
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
cat("$REPO:", VARIABLES[cat("dotnet|", dotnetMajorMinor, "|product-version")], "-", OS_VERSION, ARCH_TAG_SUFFIX) ^
|
||||
set osVersionBase to match(OS_VERSION, ".+(?=.*-)")[0] ^
|
||||
set installerImageTag to when(isAzureLinux,
|
||||
cat(when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/"
|
||||
when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
cat(ARCH_VERSIONED, "/buildpack-deps:", osVersionBase, "-curl"))
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
cat("$REPO:", VARIABLES[cat("dotnet|", dotnetMajorMinor, "|product-version")], "-", OS_VERSION, ARCH_TAG_SUFFIX) ^
|
||||
set osVersionBase to when(isDistroless, match(OS_VERSION, ".+(?=.*-)")[0], OS_VERSION_BASE) ^
|
||||
set installerImageTag to when(isAzureLinux,
|
||||
cat(when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/",
|
||||
when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
when(isAlpine,
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
cat("$REPO:", VARIABLES[cat("monitor|", monitorMajorMinor, "|product-version")], monitorBaseTagOsSuffix, ARCH_TAG_SUFFIX) ^
|
||||
set osVersionBase to match(OS_VERSION, ".+(?=.*-)")[0] ^
|
||||
set installerImageTag to when(isAzureLinux,
|
||||
cat(when(find(OS_VERSION, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/"
|
||||
when(find(OS_VERSION, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
cat(ARCH_VERSIONED, "/buildpack-deps:", osVersionBase, "-curl"))
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"ubuntu.azurecr.io/ubuntu",
|
||||
when(isAzureLinux,
|
||||
when(find(OS_VERSION_NUMBER, "3.0") >= 0,
|
||||
"azurelinuxpreview.azurecr.io/public/azurelinux/base/core",
|
||||
"mcr.microsoft.com/azurelinux/base/core",
|
||||
"mcr.microsoft.com/cbl-mariner/base/core"),
|
||||
"<NOT-IMPLEMENTED>")))) ^
|
||||
set baseImageTag to when(isAlpine || isAzureLinux, OS_VERSION_NUMBER, OS_VERSION) ^
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
set isAzureLinux3 to find(OS_VERSION_NUMBER, "3.0") >= 0 ^
|
||||
set distrolessStagingDir to "/staging" ^
|
||||
set marinerRepo to when(isAzureLinux3, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner") ^
|
||||
set marinerRepo to when(isAzureLinux3, "mcr.microsoft.com/azurelinux", "mcr.microsoft.com/cbl-mariner") ^
|
||||
set dotnetVersion to join(slice(split(PRODUCT_VERSION, "."), 0, 2), ".") ^
|
||||
set baseImage to cat(marinerRepo, "/distroless/minimal:", OS_VERSION_NUMBER) ^
|
||||
set username to "app" ^
|
||||
|
|
|
@ -25,7 +25,8 @@
|
|||
set osVersionBase to when(osVersionBase = "noble" && ARCH_VERSIONED = "arm32v7", "jammy", osVersionBase) ^
|
||||
|
||||
set installerImageTag to when(isDistrolessAzureLinux,
|
||||
cat(when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinuxpreview.azurecr.io/public/azurelinux", "mcr.microsoft.com/cbl-mariner"),
|
||||
cat("mcr.microsoft.com/"
|
||||
when(find(OS_VERSION_NUMBER, "3.0") >= 0, "azurelinux", "cbl-mariner"),
|
||||
"/base/core:",
|
||||
OS_VERSION_NUMBER),
|
||||
when(isAlpine || isFullAzureLinux,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/aspnet
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/aspnet
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/monitor/base
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/monitor/base
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -22,7 +22,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -55,7 +55,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -22,7 +22,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -55,7 +55,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -20,7 +20,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -53,7 +53,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -20,7 +20,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -53,7 +53,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -21,7 +21,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -54,7 +54,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -21,7 +21,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -54,7 +54,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -19,7 +19,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -52,7 +52,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
gawk \
|
||||
|
@ -19,7 +19,7 @@ RUN mkdir /staging \
|
|||
&& tdnf clean all --releasever=3.0 --installroot /staging
|
||||
|
||||
# Generate RPM manifest file by appending to the original manifest file from base distroless image
|
||||
COPY --from=azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
COPY --from=mcr.microsoft.com/azurelinux/distroless/minimal:3.0 /var/lib/rpmmanifest/container-manifest-2 /tmp/rpmmanifest
|
||||
RUN tmpManifestPath="/tmp/rpmmanifest" \
|
||||
&& rpm --query --all --queryformat "%{NAME}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\t%{BUILDTIME}\t%{VENDOR}\t%{EPOCH}\t%{SIZE}\t%{ARCH}\t%{EPOCHNUM}\t%{SOURCERPM}\n" --root /staging | grep -v gpg-pubkey >> $tmpManifestPath \
|
||||
&& mkdir -p /staging/var/lib/rpmmanifest \
|
||||
|
@ -52,7 +52,7 @@ RUN rm -rf /staging/etc/tdnf \
|
|||
|
||||
|
||||
# .NET runtime-deps image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/distroless/minimal:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/distroless/minimal:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
|
||||
|
||||
# Installer image
|
||||
FROM azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 AS installer
|
||||
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
|
||||
|
||||
RUN tdnf install -y \
|
||||
ca-certificates \
|
||||
|
|
Загрузка…
Ссылка в новой задаче