From b2942e94436ac0bc6e227f7c211188d31c2e9258 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Sun, 10 Dec 2023 10:05:50 -0800 Subject: [PATCH] drop hardcoded naming globally --- Makefile | 92 ++++++++++++++++++++++++---------------- README.md | 7 +-- autoconf/Dockerfile | 15 ++++--- automake/Dockerfile | 17 ++++---- bash/Dockerfile | 5 ++- binutils/Dockerfile | 5 ++- busybox/Dockerfile | 3 +- cmake/Dockerfile | 19 +++++---- curl/Dockerfile | 15 ++++--- gcc/Dockerfile | 5 ++- go/Dockerfile | 13 +++--- libtool/Dockerfile | 17 ++++---- libunwind/Dockerfile | 17 ++++---- libxml2/Dockerfile | 23 +++++----- linux-headers/Dockerfile | 5 ++- llvm/Dockerfile | 19 +++++---- llvm13/Dockerfile | 19 +++++---- m4/Dockerfile | 11 ++--- make/Dockerfile | 5 ++- musl/Dockerfile | 3 +- ninja/Dockerfile | 15 ++++--- openssl/Dockerfile | 15 ++++--- perl/Dockerfile | 11 ++--- pkgconf/Dockerfile | 11 ++--- py-setuptools/Dockerfile | 5 ++- python/Dockerfile | 13 +++--- sed/Dockerfile | 13 +++--- zlib/Dockerfile | 11 ++--- 28 files changed, 227 insertions(+), 182 deletions(-) diff --git a/Makefile b/Makefile index 0983214..a6bb03f 100644 --- a/Makefile +++ b/Makefile @@ -1,40 +1,52 @@ export SOURCE_DATE_EPOCH = 0 +export REGISTRY := local +export BUILDER := $(shell which docker) + +define build + ${BUILDER} \ + build \ + -t $(REGISTRY)/$(1):$(2) \ + --build-arg REGISTRY=$(REGISTRY) \ + --target $(3) \ + --output type=oci,dest=$@ \ + $(1) +endef out/bootstrap.oci.tgz: - docker build -t imgrep/bootstrap --output type=oci,dest=$@ bootstrap + $(call build,bootstrap) out/musl.oci.tgz: \ out/bootstrap.oci.tgz - docker build -t imgrep/musl --output type=oci,dest=$@ musl + $(call build,musl) out/busybox.oci.tgz: \ out/bootstrap.oci.tgz - docker build -t imgrep/busybox --output type=oci,dest=$@ busybox + $(call build,busybox) out/binutils.oci.tgz: \ out/bootstrap.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/binutils --output type=oci,dest=$@ binutils + $(call build,binutils) out/linux-headers.oci.tgz: - docker build -t imgrep/linux-headers --output type=oci,dest=$@ linux-headers + $(call build,linux-headers) out/gcc.oci.tgz: \ out/bootstrap.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/gcc --output type=oci,dest=$@ gcc + $(call build,gcc) out/make.oci.tgz: \ out/bootstrap.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/make --output type=oci,dest=$@ make + $(call build,make) out/ca-certificates.oci.tgz: - docker build -t imgrep/ca-certificates --output type=oci,dest=$@ ca-certificates + $(call build,ca-certificates) out/bash.oci.tgz: \ out/gcc.oci.tgz - docker build -t imgrep/bash --output type=oci,dest=$@ bash + $(call build,bash) out/m4.oci.tgz: \ out/busybox.oci.tgz \ @@ -42,7 +54,7 @@ out/m4.oci.tgz: \ out/binutils.oci.tgz \ out/musl.oci.tgz \ out/make.oci.tgz - docker build -t imgrep/m4 --output type=oci,dest=$@ m4 + $(call build,m4) out/autoconf.oci.tgz: \ out/busybox.oci.tgz \ @@ -52,7 +64,7 @@ out/autoconf.oci.tgz: \ out/make.oci.tgz \ out/perl.oci.tgz \ out/m4.oci.tgz - docker build -t imgrep/autoconf --output type=oci,dest=$@ autoconf + $(call build,autoconf) out/automake.oci.tgz: \ out/busybox.oci.tgz \ @@ -63,7 +75,7 @@ out/automake.oci.tgz: \ out/perl.oci.tgz \ out/autoconf.oci.tgz \ out/m4.oci.tgz - docker build -t imgrep/automake --output type=oci,dest=$@ automake + $(call build,automake) out/sed.oci.tgz: \ out/busybox.oci.tgz \ @@ -71,7 +83,7 @@ out/sed.oci.tgz: \ out/binutils.oci.tgz \ out/musl.oci.tgz \ out/make.oci.tgz - docker build -t imgrep/sed --output type=oci,dest=$@ sed + $(call build,sed) out/libtool.oci.tgz: \ out/busybox.oci.tgz \ @@ -82,7 +94,7 @@ out/libtool.oci.tgz: \ out/bash.oci.tgz \ out/sed.oci.tgz \ out/m4.oci.tgz - docker build -t imgrep/libtool --output type=oci,dest=$@ libtool + $(call build,libtool) out/pkgconf.oci.tgz: \ out/busybox.oci.tgz \ @@ -91,7 +103,7 @@ out/pkgconf.oci.tgz: \ out/musl.oci.tgz \ out/make.oci.tgz \ out/libtool.oci.tgz - docker build -t imgrep/pkgconf --output type=oci,dest=$@ pkgconf + $(call build,pkgconf) out/libxml2.oci.tgz: \ out/busybox.oci.tgz \ @@ -107,7 +119,7 @@ out/libxml2.oci.tgz: \ out/automake.oci.tgz \ out/pkgconf.oci.tgz \ out/libtool.oci.tgz - docker build -t imgrep/libxml2 --output type=oci,dest=$@ libxml2 + $(call build,libxml2) out/libunwind.oci.tgz: \ out/busybox.oci.tgz \ @@ -119,7 +131,7 @@ out/libunwind.oci.tgz: \ out/autoconf.oci.tgz \ out/automake.oci.tgz \ out/libtool.oci.tgz - docker build -t imgrep/libunwind --output type=oci,dest=$@ libunwind + $(call build,libunwind) out/openssl.oci.tgz: \ out/gcc.oci.tgz \ @@ -127,7 +139,7 @@ out/openssl.oci.tgz: \ out/busybox.oci.tgz \ out/linux-headers.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/openssl --output type=oci,dest=$@ openssl + $(call build,openssl) out/go.oci.tgz: \ out/gcc.oci.tgz \ @@ -135,7 +147,7 @@ out/go.oci.tgz: \ out/busybox.oci.tgz \ out/bash.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/go --output type=oci,dest=$@ go + $(call build,go) out/perl.oci.tgz: \ out/gcc.oci.tgz \ @@ -143,7 +155,7 @@ out/perl.oci.tgz: \ out/busybox.oci.tgz \ out/make.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/perl --output type=oci,dest=$@ perl + $(call build,perl) out/curl.oci.tgz: \ out/gcc.oci.tgz \ @@ -153,7 +165,7 @@ out/curl.oci.tgz: \ out/binutils.oci.tgz \ out/openssl.oci.tgz \ out/ca-certificates.oci.tgz - docker build -t imgrep/curl --output type=oci,dest=$@ curl + $(call build,curl) out/python.oci.tgz: \ out/gcc.oci.tgz \ @@ -163,7 +175,7 @@ out/python.oci.tgz: \ out/openssl.oci.tgz \ out/make.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/python --output type=oci,dest=$@ python + $(call build,python) out/ninja.oci.tgz: \ out/busybox.oci.tgz \ @@ -173,7 +185,7 @@ out/ninja.oci.tgz: \ out/make.oci.tgz \ out/openssl.oci.tgz \ out/python.oci.tgz - docker build -t imgrep/ninja --output type=oci,dest=$@ ninja + $(call build,ninja) out/cmake.oci.tgz: \ out/busybox.oci.tgz \ @@ -183,12 +195,12 @@ out/cmake.oci.tgz: \ out/musl.oci.tgz \ out/make.oci.tgz \ out/linux-headers.oci.tgz - docker build -t imgrep/cmake --output type=oci,dest=$@ cmake + $(call build,cmake) out/py-setuptools.oci.tgz: \ out/busybox.oci.tgz \ out/python.oci.tgz - docker build -t imgrep/py-setuptools --output type=oci,dest=$@ py-setuptools + $(call build,py-setuptools) out/zlib.oci.tgz: \ out/busybox.oci.tgz \ @@ -196,7 +208,7 @@ out/zlib.oci.tgz: \ out/binutils.oci.tgz \ out/musl.oci.tgz \ out/make.oci.tgz - docker build -t imgrep/zlib --output type=oci,dest=$@ zlib + $(call build,zlib) out/llvm.oci.tgz: \ out/gcc.oci.tgz \ @@ -208,7 +220,7 @@ out/llvm.oci.tgz: \ out/ninja.oci.tgz \ out/busybox.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/llvm --output type=oci,dest=$@ llvm + $(call build,llvm) out/llvm13.oci.tgz: \ out/gcc.oci.tgz \ @@ -220,28 +232,36 @@ out/llvm13.oci.tgz: \ out/ninja.oci.tgz \ out/busybox.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/llvm13 --output type=oci,dest=$@ llvm13 + $(call build,llvm13) -out/rust.oci.tgz: \ +out/rust1.54.oci.tgz: \ out/gcc.oci.tgz \ out/bash.oci.tgz \ out/zlib.oci.tgz \ out/python.oci.tgz \ + out/py-setuptools.oci.tgz \ + out/curl.oci.tgz \ + out/perl.oci.tgz \ + out/libunwind.oci.tgz \ + out/llvm13.oci.tgz \ out/binutils.oci.tgz \ out/cmake.oci.tgz \ out/make.oci.tgz \ out/busybox.oci.tgz \ out/musl.oci.tgz - docker build -t imgrep/rust --output type=oci,dest=$@ rust + $(call build,rust,1.54.0,bootstrap) + +out/rust1.55.oci.tgz: out/rust1.54.oci.tgz + $(call build,rust,1.55.0) test: - docker build -t imgrep/test-c tests/c - docker build -t imgrep/test-go tests/go - docker build -t imgrep/test-perl tests/perl + docker build -t $(REGISTRY)/test-c tests/c + docker build -t $(REGISTRY)/test-go tests/go + docker build -t $(REGISTRY)/test-perl tests/perl @printf "\nOcirep Test Suite\n" @printf "go -> " - @docker run -i imgrep/test-go | grep Success + @docker run -i $(REGISTRY)/test-go | grep Success @printf "c -> " - @docker run -i imgrep/test-c | grep Success + @docker run -i $(REGISTRY)/test-c | grep Success @printf "perl -> " - @docker run -i imgrep/test-perl | grep Success + @docker run -i $(REGISTRY)/test-perl | grep Success diff --git a/README.md b/README.md index 0c5cc6c..6c26331 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ -# ImgRep +# Packages -Repository of reproducibly built images of common open source Linux toolchains -and software with reputation anchored signatures. +Repository of reproducibly built packages of common open source Linux +toolchains and software with reputation anchored signatures, built and +distributed as OCI images. ## About diff --git a/autoconf/Dockerfile b/autoconf/Dockerfile index 2ef2b78..1b78350 100644 --- a/autoconf/Dockerfile +++ b/autoconf/Dockerfile @@ -1,10 +1,11 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/m4:latest as m4 -FROM imgrep/perl:latest as perl +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/m4:latest as m4 +FROM ${REGISTRY}/perl:latest as perl FROM busybox as build ENV SRC_SITE=https://ftp.gnu.org/gnu/autoconf diff --git a/automake/Dockerfile b/automake/Dockerfile index 08e3589..ee98c12 100644 --- a/automake/Dockerfile +++ b/automake/Dockerfile @@ -1,11 +1,12 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/perl:latest as perl -FROM imgrep/autoconf:latest as autoconf -FROM imgrep/m4:latest as m4 +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/perl:latest as perl +FROM ${REGISTRY}/autoconf:latest as autoconf +FROM ${REGISTRY}/m4:latest as m4 FROM busybox as build ENV SRC_SITE=https://ftp.gnu.org/gnu/automake diff --git a/bash/Dockerfile b/bash/Dockerfile index 087e783..9141058 100644 --- a/bash/Dockerfile +++ b/bash/Dockerfile @@ -1,6 +1,7 @@ -ARG GCC_IMAGE=library/gcc@sha256:ca38f292fe1ad0933f0122a657f9c644ed1f0a9e1aa336abcc83d420ad487e28 +ARG REGISTRY=local +from ${REGISTRY}/bootstrap as bootstrap -FROM ${GCC_IMAGE} as build +FROM bootstrap as build ENV SOURCE_SITE=https://ftp.gnu.org/gnu/bash ENV SOURCE_VERSION=5.2.15 ENV SOURCE_HASH=13720965b5f4fc3a0d4b61dd37e7565c741da9a5be24edc2ae00182fc1b3588c diff --git a/binutils/Dockerfile b/binutils/Dockerfile index 5e3b635..14ccc21 100644 --- a/binutils/Dockerfile +++ b/binutils/Dockerfile @@ -1,5 +1,6 @@ -FROM imgrep/musl:latest as musl -FROM imgrep/bootstrap:latest as build +ARG REGISTRY=local +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/bootstrap:latest as build ENV SRC_SITE https://ftp.gnu.org/gnu/binutils ENV SRC_VERSION 2.41 diff --git a/busybox/Dockerfile b/busybox/Dockerfile index 88c0213..df8adc7 100644 --- a/busybox/Dockerfile +++ b/busybox/Dockerfile @@ -1,4 +1,5 @@ -FROM imgrep/bootstrap as bootstrap +ARG REGISTRY=local +FROM ${REGISTRY}/bootstrap as bootstrap FROM bootstrap as build ENV SOURCE_SITE=https://busybox.net/downloads diff --git a/cmake/Dockerfile b/cmake/Dockerfile index a92dbea..881c22e 100644 --- a/cmake/Dockerfile +++ b/cmake/Dockerfile @@ -1,12 +1,13 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/curl:latest as curl -FROM imgrep/ninja:latest as ninja -FROM imgrep/openssl:latest as openssl -FROM imgrep/linux-headers:latest as linux-headers -FROM imgrep/make:latest as make +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/curl:latest as curl +FROM ${REGISTRY}/ninja:latest as ninja +FROM ${REGISTRY}/openssl:latest as openssl +FROM ${REGISTRY}/linux-headers:latest as linux-headers +FROM ${REGISTRY}/make:latest as make FROM busybox as build ENV SRC_SITE=https://cmake.org/files diff --git a/curl/Dockerfile b/curl/Dockerfile index 9f304c8..aabb798 100644 --- a/curl/Dockerfile +++ b/curl/Dockerfile @@ -1,10 +1,11 @@ -FROM imgrep/gcc:latest as gcc -FROM imgrep/musl:latest as musl -FROM imgrep/busybox:latest as busybox -FROM imgrep/make:latest as make -FROM imgrep/binutils:latest as binutils -FROM imgrep/openssl:latest as openssl -FROM imgrep/ca-certificates:latest as ca-certificates +ARG REGISTRY=local +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/openssl:latest as openssl +FROM ${REGISTRY}/ca-certificates:latest as ca-certificates FROM busybox as build ENV SRC_SITE=https://curl.se/download diff --git a/gcc/Dockerfile b/gcc/Dockerfile index 7b49368..1ea888d 100644 --- a/gcc/Dockerfile +++ b/gcc/Dockerfile @@ -1,5 +1,6 @@ -FROM imgrep/musl:latest as musl -FROM imgrep/bootstrap:latest as build +ARG REGISTRY=local +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/bootstrap:latest as build ENV GCC_SITE https://mirrors.kernel.org/gnu/gcc ENV GCC_VERSION 12.2.0 diff --git a/go/Dockerfile b/go/Dockerfile index cf1dc6f..35061f0 100644 --- a/go/Dockerfile +++ b/go/Dockerfile @@ -1,11 +1,10 @@ -ARG REGISTRY = imgrep/ +ARG REGISTRY = local ARG BUSYBOX_VERSION = latest -FROM ${REGISTRY}busybox:${BUSYBOX_VERSION} as busybox - -FROM imgrep/bash:latest as bash -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl +FROM ${REGISTRY}/busybox:${BUSYBOX_VERSION} as busybox +FROM ${REGISTRY}/bash:latest as bash +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl FROM busybox as stage1 COPY --from=bash . /bin/ diff --git a/libtool/Dockerfile b/libtool/Dockerfile index 8aff189..92ed0ca 100644 --- a/libtool/Dockerfile +++ b/libtool/Dockerfile @@ -1,11 +1,12 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/m4:latest as m4 -FROM imgrep/bash:latest as bash -FROM imgrep/sed:latest as sed +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/m4:latest as m4 +FROM ${REGISTRY}/bash:latest as bash +FROM ${REGISTRY}/sed:latest as sed FROM busybox as build ENV SRC_SITE=https://ftp.gnu.org/gnu/libtool diff --git a/libunwind/Dockerfile b/libunwind/Dockerfile index 2fea8b0..f0faf65 100644 --- a/libunwind/Dockerfile +++ b/libunwind/Dockerfile @@ -1,11 +1,12 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/autoconf:latest as autoconf -FROM imgrep/automake:latest as automake -FROM imgrep/libtool:latest as libtool +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/autoconf:latest as autoconf +FROM ${REGISTRY}/automake:latest as automake +FROM ${REGISTRY}/libtool:latest as libtool FROM busybox as build ENV SRC_SITE=https://github.com/libunwind/libunwind/releases/download diff --git a/libxml2/Dockerfile b/libxml2/Dockerfile index 1bdbd57..5c96d36 100644 --- a/libxml2/Dockerfile +++ b/libxml2/Dockerfile @@ -1,14 +1,15 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/autoconf:latest as autoconf -FROM imgrep/automake:latest as automake -FROM imgrep/libtool:latest as libtool -FROM imgrep/pkgconf:latest as pkgconf -FROM imgrep/python:latest as python -FROM imgrep/m4:latest as m4 +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/autoconf:latest as autoconf +FROM ${REGISTRY}/automake:latest as automake +FROM ${REGISTRY}/libtool:latest as libtool +FROM ${REGISTRY}/pkgconf:latest as pkgconf +FROM ${REGISTRY}/python:latest as python +FROM ${REGISTRY}/m4:latest as m4 FROM busybox as build ENV SRC_SITE=https://gitlab.gnome.org/GNOME/libxml2/-/archive diff --git a/linux-headers/Dockerfile b/linux-headers/Dockerfile index 8017e39..56d9acd 100644 --- a/linux-headers/Dockerfile +++ b/linux-headers/Dockerfile @@ -1,5 +1,6 @@ -FROM imgrep/musl:latest as musl -FROM imgrep/bootstrap:latest as build +ARG REGISTRY=local +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/bootstrap:latest as build ENV SRC_SITE https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ ENV SRC_VERSION 6.6 diff --git a/llvm/Dockerfile b/llvm/Dockerfile index db2af50..24863f9 100644 --- a/llvm/Dockerfile +++ b/llvm/Dockerfile @@ -1,12 +1,13 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/openssl:latest as openssl -FROM imgrep/python:latest as python -FROM imgrep/py-setuptools:latest as py-setuptools -FROM imgrep/cmake:latest as cmake -FROM imgrep/ninja:latest as ninja +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/openssl:latest as openssl +FROM ${REGISTRY}/python:latest as python +FROM ${REGISTRY}/py-setuptools:latest as py-setuptools +FROM ${REGISTRY}/cmake:latest as cmake +FROM ${REGISTRY}/ninja:latest as ninja FROM busybox as build ENV SRC_SITE=https://github.com/llvm/llvm-project/releases/download diff --git a/llvm13/Dockerfile b/llvm13/Dockerfile index a959be0..a8e1c87 100644 --- a/llvm13/Dockerfile +++ b/llvm13/Dockerfile @@ -1,12 +1,13 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/openssl:latest as openssl -FROM imgrep/python:latest as python -FROM imgrep/py-setuptools:latest as py-setuptools -FROM imgrep/cmake:latest as cmake -FROM imgrep/ninja:latest as ninja +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/openssl:latest as openssl +FROM ${REGISTRY}/python:latest as python +FROM ${REGISTRY}/py-setuptools:latest as py-setuptools +FROM ${REGISTRY}/cmake:latest as cmake +FROM ${REGISTRY}/ninja:latest as ninja FROM busybox as build ENV SRC_SITE=https://github.com/llvm/llvm-project/releases/download diff --git a/m4/Dockerfile b/m4/Dockerfile index b844da9..74d4041 100644 --- a/m4/Dockerfile +++ b/m4/Dockerfile @@ -1,8 +1,9 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make FROM busybox as build COPY --from=gcc . / diff --git a/make/Dockerfile b/make/Dockerfile index 21ef702..4e581e4 100644 --- a/make/Dockerfile +++ b/make/Dockerfile @@ -1,5 +1,6 @@ -FROM imgrep/musl:latest as musl -FROM imgrep/bootstrap:latest as build +ARG REGISTRY=local +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/bootstrap:latest as build ENV SRC_SITE https://ftp.gnu.org/gnu/make ENV SRC_VERSION 4.4 diff --git a/musl/Dockerfile b/musl/Dockerfile index abe67c8..f101424 100644 --- a/musl/Dockerfile +++ b/musl/Dockerfile @@ -1,4 +1,5 @@ -FROM imgrep/bootstrap:latest as build +ARG REGISTRY=local +FROM ${REGISTRY}/bootstrap:latest as build ENV SRC_SITE http://musl.libc.org ENV SRC_VERSION 1.2.4 diff --git a/ninja/Dockerfile b/ninja/Dockerfile index c07270a..eee2ff0 100644 --- a/ninja/Dockerfile +++ b/ninja/Dockerfile @@ -1,10 +1,11 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/openssl:latest as openssl -FROM imgrep/python:latest as python +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/openssl:latest as openssl +FROM ${REGISTRY}/python:latest as python FROM busybox as build ENV SRC_SITE=https://github.com/martine/ninja/archive/ diff --git a/openssl/Dockerfile b/openssl/Dockerfile index bfbbb3a..fed828a 100644 --- a/openssl/Dockerfile +++ b/openssl/Dockerfile @@ -1,10 +1,11 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/perl:latest as perl -FROM imgrep/linux-headers:latest as linux-headers +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/perl:latest as perl +FROM ${REGISTRY}/linux-headers:latest as linux-headers FROM busybox as build COPY --from=gcc . / diff --git a/perl/Dockerfile b/perl/Dockerfile index ce1832e..88a193b 100644 --- a/perl/Dockerfile +++ b/perl/Dockerfile @@ -1,8 +1,9 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make FROM busybox as build ENV SRC_SITE=https://www.cpan.org/src/5.0 diff --git a/pkgconf/Dockerfile b/pkgconf/Dockerfile index 89b27d6..dc647af 100644 --- a/pkgconf/Dockerfile +++ b/pkgconf/Dockerfile @@ -1,8 +1,9 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make FROM busybox as build ENV SRC_SITE=https://distfiles.ariadne.space/pkgconf/ diff --git a/py-setuptools/Dockerfile b/py-setuptools/Dockerfile index a7d70f8..007f6eb 100644 --- a/py-setuptools/Dockerfile +++ b/py-setuptools/Dockerfile @@ -1,5 +1,6 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/python:latest as python +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/python:latest as python FROM busybox as build ENV SRC_SITE=https://pypi.io/packages/source/s/setuptools diff --git a/python/Dockerfile b/python/Dockerfile index 342746f..1b34548 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -1,9 +1,10 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/openssl:latest as openssl +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/openssl:latest as openssl FROM busybox as build ENV SRC_SITE=https://www.python.org/ftp/python diff --git a/sed/Dockerfile b/sed/Dockerfile index 614e3e0..5fcd938 100644 --- a/sed/Dockerfile +++ b/sed/Dockerfile @@ -1,9 +1,10 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make -FROM imgrep/bash:latest as bash +REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make +FROM ${REGISTRY}/bash:latest as bash FROM busybox as build ENV SRC_SITE=https://ftp.gnu.org/gnu/sed diff --git a/zlib/Dockerfile b/zlib/Dockerfile index 45d3562..87b0801 100644 --- a/zlib/Dockerfile +++ b/zlib/Dockerfile @@ -1,8 +1,9 @@ -FROM imgrep/busybox:latest as busybox -FROM imgrep/gcc:latest as gcc -FROM imgrep/binutils:latest as binutils -FROM imgrep/musl:latest as musl -FROM imgrep/make:latest as make +ARG REGISTRY=local +FROM ${REGISTRY}/busybox:latest as busybox +FROM ${REGISTRY}/gcc:latest as gcc +FROM ${REGISTRY}/binutils:latest as binutils +FROM ${REGISTRY}/musl:latest as musl +FROM ${REGISTRY}/make:latest as make FROM busybox as build COPY --from=gcc . /