Dockerfile: remove APT_MIRROR build-arg
This option was originally added in 8ec8564691
,
at which time the upstream debian package repositories were not always
reliable, so using a mirror helped with CI stability and performance.
Debian's package repositories are a lot more reliable now, so there's no
longer a need to use a mirror.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
df59a357ec
commit
49f3e7d233
4 changed files with 0 additions and 11 deletions
|
@ -38,8 +38,6 @@ COPY --from=build-dummy /build /build
|
||||||
FROM --platform=$BUILDPLATFORM ${GOLANG_IMAGE} AS base
|
FROM --platform=$BUILDPLATFORM ${GOLANG_IMAGE} AS base
|
||||||
COPY --from=xx / /
|
COPY --from=xx / /
|
||||||
RUN echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
|
RUN echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
|
||||||
ARG APT_MIRROR
|
|
||||||
RUN test -n "$APT_MIRROR" && sed -ri "s#(httpredir|deb|security).debian.org#${APT_MIRROR}#g" /etc/apt/sources.list.d/debian.sources || true
|
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y file
|
RUN apt-get update && apt-get install --no-install-recommends -y file
|
||||||
ENV GO111MODULE=off
|
ENV GO111MODULE=off
|
||||||
ENV GOTOOLCHAIN=local
|
ENV GOTOOLCHAIN=local
|
||||||
|
|
|
@ -14,10 +14,6 @@ FROM ${GOLANG_IMAGE}
|
||||||
ENV GO111MODULE=off
|
ENV GO111MODULE=off
|
||||||
ENV GOTOOLCHAIN=local
|
ENV GOTOOLCHAIN=local
|
||||||
|
|
||||||
# allow replacing debian mirror
|
|
||||||
ARG APT_MIRROR
|
|
||||||
RUN test -n "$APT_MIRROR" && sed -ri "s#(httpredir|deb|security).debian.org#${APT_MIRROR}#g" /etc/apt/sources.list.d/debian.sources || true
|
|
||||||
|
|
||||||
# Compile and runtime deps
|
# Compile and runtime deps
|
||||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
|
||||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -138,7 +138,6 @@ endif
|
||||||
DOCKER_RUN_DOCKER := $(DOCKER_FLAGS) "$(DOCKER_IMAGE)"
|
DOCKER_RUN_DOCKER := $(DOCKER_FLAGS) "$(DOCKER_IMAGE)"
|
||||||
|
|
||||||
DOCKER_BUILD_ARGS += --build-arg=GO_VERSION
|
DOCKER_BUILD_ARGS += --build-arg=GO_VERSION
|
||||||
DOCKER_BUILD_ARGS += --build-arg=APT_MIRROR
|
|
||||||
DOCKER_BUILD_ARGS += --build-arg=DOCKERCLI_VERSION
|
DOCKER_BUILD_ARGS += --build-arg=DOCKERCLI_VERSION
|
||||||
DOCKER_BUILD_ARGS += --build-arg=DOCKERCLI_REPOSITORY
|
DOCKER_BUILD_ARGS += --build-arg=DOCKERCLI_REPOSITORY
|
||||||
DOCKER_BUILD_ARGS += --build-arg=DOCKERCLI_INTEGRATION_VERSION
|
DOCKER_BUILD_ARGS += --build-arg=DOCKERCLI_INTEGRATION_VERSION
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
variable "APT_MIRROR" {
|
|
||||||
default = ""
|
|
||||||
}
|
|
||||||
variable "DOCKER_DEBUG" {
|
variable "DOCKER_DEBUG" {
|
||||||
default = ""
|
default = ""
|
||||||
}
|
}
|
||||||
|
@ -64,7 +61,6 @@ function "bindir" {
|
||||||
target "_common" {
|
target "_common" {
|
||||||
args = {
|
args = {
|
||||||
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
|
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
|
||||||
APT_MIRROR = APT_MIRROR
|
|
||||||
DOCKER_DEBUG = DOCKER_DEBUG
|
DOCKER_DEBUG = DOCKER_DEBUG
|
||||||
DOCKER_STATIC = DOCKER_STATIC
|
DOCKER_STATIC = DOCKER_STATIC
|
||||||
DOCKER_LDFLAGS = DOCKER_LDFLAGS
|
DOCKER_LDFLAGS = DOCKER_LDFLAGS
|
||||||
|
|
Loading…
Reference in a new issue