pull images from mcr (#1347)
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
This commit is contained in:
Родитель
dd91f431f7
Коммит
7122dc246d
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/ubuntu:16.04
|
||||
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:18.04
|
||||
RUN apt-get update && apt-get install -y software-properties-common sudo wget apt-utils apt-transport-https curl lsb-release gnupg jq
|
||||
RUN wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||
RUN dpkg -i packages-microsoft-prod.deb
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
FROM docker.io/golang:1.18
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y zip \
|
||||
&& apt-get install -y sudo libltdl-dev
|
||||
|
||||
COPY . /go/src/github.com/Azure/azure-container-networking
|
||||
|
||||
WORKDIR /go/src/github.com/Azure/azure-container-networking
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/ubuntu:16.04
|
||||
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:18.04
|
||||
ARG CNM_BUILD_DIR
|
||||
|
||||
# Install dependencies.
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Use a minimal image as a parent image
|
||||
FROM docker.io/ubuntu:19.10
|
||||
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:20.04
|
||||
ARG TELEMETRY_BUILD_DIR
|
||||
ARG TELEMETRY_CONF_DIR
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM docker.io/alpine:latest as certs
|
||||
RUN apk --update add ca-certificates
|
||||
FROM mcr.microsoft.com/cbl-mariner/base/core:1.0 as certs
|
||||
RUN tdnf upgrade -y && tdnf install -y ca-certificates
|
||||
|
||||
FROM docker.io/golang:1.18 AS builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 AS builder
|
||||
ARG VERSION
|
||||
ARG CNS_AI_PATH
|
||||
ARG CNS_AI_ID
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build cns
|
||||
FROM docker.io/golang:1.18 AS builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 AS builder
|
||||
# Build args
|
||||
ARG VERSION
|
||||
ARG CNS_AI_PATH
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build cns
|
||||
FROM docker.io/golang:1.18 AS builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 AS builder
|
||||
# Build args
|
||||
ARG VERSION
|
||||
ARG CNS_AI_PATH
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/ubuntu:20.04
|
||||
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:20.04
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y \
|
||||
python3 \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/golang:alpine as build
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 as build
|
||||
ADD ./ /
|
||||
WORKDIR /
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o server .
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/golang as build
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 as build
|
||||
ADD ./server/server.go /
|
||||
WORKDIR /
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o server .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build npm
|
||||
FROM docker.io/golang:1.18 AS builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 AS builder
|
||||
# Build args
|
||||
ARG VERSION
|
||||
ARG NPM_AI_PATH
|
||||
|
@ -14,7 +14,7 @@ COPY . .
|
|||
RUN CGO_ENABLED=1 go build -v -o /usr/local/bin/azure-npm -ldflags "-X main.version="$VERSION" -X "$NPM_AI_PATH"="$NPM_AI_ID"" -gcflags="-dwarflocationlists=true" npm/cmd/*.go
|
||||
|
||||
# Use a minimal image as a final image base
|
||||
FROM docker.io/ubuntu:focal
|
||||
FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:20.04
|
||||
|
||||
# Copy into final image
|
||||
COPY --from=builder /usr/local/bin/azure-npm \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/golang:windowsservercore-ltsc2022 AS builder
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18-windowsservercore-ltsc2022 AS builder
|
||||
# Build args
|
||||
ARG VERSION
|
||||
ARG NPM_AI_PATH
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/golang:1.18 as build
|
||||
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 as build
|
||||
WORKDIR /go/src/github.com/Azure/azure-container-networking/
|
||||
ARG VERSION
|
||||
ARG PLATFORM
|
||||
|
|
Загрузка…
Ссылка в новой задаче