-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
288 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,40 @@ | ||
# Generated from https://github.com/greboid/dockerfiles/blob/master/centauri/Containerfile.gotpl | ||
# BOM: {"apk:brotli-libs":"1.0.9-r14","apk:busybox":"1.36.1-r2","apk:busybox-binsh":"1.36.1-r2","apk:ca-certificates":"20230506-r0","apk:git":"2.40.1-r0","apk:libcrypto3":"3.1.2-r0","apk:libcurl":"8.2.1-r0","apk:libexpat":"2.5.0-r1","apk:libidn2":"2.3.4-r1","apk:libssl3":"3.1.2-r0","apk:libunistring":"1.1-r1","apk:musl":"1.2.4-r1","apk:nghttp2-libs":"1.55.1-r0","apk:pcre2":"10.42-r1","apk:zlib":"1.2.13-r1","github:csmith/centauri":"v0.3.0","image:base":"2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096","image:golang":"ada25feadcd2358de8ef4f8fba32c5cd074439dea37ec7b34495738bb9882640"} | ||
# BOM: {"apk:brotli-libs":"1.0.9-r14","apk:busybox":"1.36.1-r2","apk:busybox-binsh":"1.36.1-r2","apk:ca-certificates":"20230506-r0","apk:git":"2.40.1-r0","apk:libcrypto3":"3.1.2-r0","apk:libcurl":"8.2.1-r0","apk:libexpat":"2.5.0-r1","apk:libidn2":"2.3.4-r1","apk:libssl3":"3.1.2-r0","apk:libunistring":"1.1-r1","apk:musl":"1.2.4-r1","apk:nghttp2-libs":"1.55.1-r0","apk:pcre2":"10.42-r1","apk:zlib":"1.2.13-r1","github:csmith/centauri":"v0.4.1","image:base":"2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096","image:golang":"1e89b999fbe8fac8ddac0ca839f89778d6b72bebcc4f6f03676f445c65cccf7e"} | ||
|
||
FROM reg.g5d.dev/golang@sha256:ada25feadcd2358de8ef4f8fba32c5cd074439dea37ec7b34495738bb9882640 AS build | ||
FROM reg.g5d.dev/golang@sha256:1e89b999fbe8fac8ddac0ca839f89778d6b72bebcc4f6f03676f445c65cccf7e AS build | ||
#Create required volumes | ||
RUN mkdir -p \ | ||
/rootfs/home/nonroot/.config \ | ||
/rootfs/data | ||
|
||
#Ensure git is installed | ||
RUN set -eux; \ | ||
#Create required directories | ||
mkdir -p \ | ||
/rootfs/home/nonroot/.config\ | ||
/rootfs/data | ||
|
||
ARG TAGcentauri="v0.3.0" | ||
RUN set -eux; \ | ||
#Ensure git is in the build environment | ||
apk add --no-cache \ | ||
brotli-libs=1.0.9-r14 \ | ||
busybox=1.36.1-r2 \ | ||
busybox-binsh=1.36.1-r2 \ | ||
ca-certificates=20230506-r0 \ | ||
git=2.40.1-r0 \ | ||
libcrypto3=3.1.2-r0 \ | ||
libcurl=8.2.1-r0 \ | ||
libexpat=2.5.0-r1 \ | ||
libidn2=2.3.4-r1 \ | ||
libssl3=3.1.2-r0 \ | ||
libunistring=1.1-r1 \ | ||
musl=1.2.4-r1 \ | ||
nghttp2-libs=1.55.1-r0 \ | ||
pcre2=10.42-r1 \ | ||
zlib=1.2.13-r1 | ||
|
||
RUN git clone --depth=1 -b $TAGcentauri --single-branch https://github.com/csmith/centauri /src/csmith/centauri | ||
apk add --no-cache \ | ||
pcre2=10.42-r1 \ | ||
zlib=1.2.13-r1 \ | ||
libidn2=2.3.4-r1 \ | ||
busybox-binsh=1.36.1-r2 \ | ||
busybox=1.36.1-r2 \ | ||
git=2.40.1-r0 \ | ||
libcurl=8.2.1-r0 \ | ||
musl=1.2.4-r1 \ | ||
brotli-libs=1.0.9-r14 \ | ||
libcrypto3=3.1.2-r0 \ | ||
nghttp2-libs=1.55.1-r0 \ | ||
libssl3=3.1.2-r0 \ | ||
libexpat=2.5.0-r1 \ | ||
ca-certificates=20230506-r0 \ | ||
libunistring=1.1-r1 | ||
#Get latest tag and clone the repo | ||
ARG TAGcsmith_centauri=v0.4.1 | ||
RUN git clone --depth=1 -b $TAGcsmith_centauri --single-branch https://github.com/csmith/centauri /src/csmith/centauri | ||
|
||
WORKDIR /src/csmith/centauri | ||
RUN go build -tags netgo,osusergo -a -trimpath -ldflags='-w -extldflags "-static" -buildid= ' -tags lego_httpreq -o /rootfs/centauri ./cmd/centauri | ||
WORKDIR /src/TAGcsmith_centauri | ||
RUN go build -tags lego_httpreq,netgo,osusergo -a -trimpath -ldflags='-w -buildid=' -o /rootfs/centauri ./cmd/dex | ||
RUN go-licenses save ./... --save_path=/notices --force | ||
RUN cp -r /notices /rootfs/ | ||
|
||
FROM reg.g5d.dev/base@sha256:2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096 | ||
|
||
COPY --from=build --chown=65532:65532 /rootfs/ / | ||
ENTRYPOINT ["/centauri"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
{{ set "repo" "csmith/centauri" -}} | ||
{{- set "cmd" "cmd/centauri" -}} | ||
{{- set "tags" (list "lego_httpreq") -}} | ||
{{- set "binary" "centauri" -}} | ||
{{- set "volumes" (list "/home/nonroot/.config" "/data") -}} | ||
|
||
{{- $repo := "csmith/centauri" -}} | ||
{{- $binary := "centauri" -}} | ||
FROM {{image "golang"}} AS build | ||
{{ partial "create-directories.gotpl" }} | ||
{{ partial "checkout-tag.gotpl" }} | ||
{{ partial "static-go-build.gotpl" }} | ||
{{ partial "from-base-add-binary.gotpl" }} | ||
{{ create_volumes "/home/nonroot/.config" "/data" }} | ||
{{ checkout_tag $repo }} | ||
{{ go_build $repo $binary "cmd/dex" (list "lego_httpreq") (list) (list) }} | ||
{{ from_base_add_binary $binary (list) (list) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,74 @@ | ||
# Generated from https://github.com/greboid/dockerfiles/blob/master/dex/Containerfile.gotpl | ||
# BOM: {"apk:binutils":"2.40-r7","apk:brotli-libs":"1.0.9-r14","apk:busybox":"1.36.1-r2","apk:busybox-binsh":"1.36.1-r2","apk:ca-certificates":"20230506-r0","apk:gcc":"12.2.1_git20220924-r10","apk:git":"2.40.1-r0","apk:gmp":"6.2.1-r3","apk:isl25":"0.25-r2","apk:libacl":"2.3.1-r3","apk:libatomic":"12.2.1_git20220924-r10","apk:libcrypto3":"3.1.2-r0","apk:libcurl":"8.2.1-r0","apk:libexpat":"2.5.0-r1","apk:libgcc":"12.2.1_git20220924-r10","apk:libgomp":"12.2.1_git20220924-r10","apk:libidn2":"2.3.4-r1","apk:libncursesw":"6.4_p20230506-r0","apk:libssl3":"3.1.2-r0","apk:libstdc++":"12.2.1_git20220924-r10","apk:libunistring":"1.1-r1","apk:libxxhash":"0.8.2-r0","apk:lz4-libs":"1.9.4-r4","apk:mpc1":"1.3.1-r1","apk:mpfr4":"4.2.0_p12-r0","apk:musl":"1.2.4-r1","apk:ncurses-terminfo-base":"6.4_p20230506-r0","apk:nghttp2-libs":"1.55.1-r0","apk:pcre2":"10.42-r1","apk:popt":"1.19-r2","apk:readline":"8.2.1-r1","apk:rsync":"3.2.7-r4","apk:sqlite":"3.41.2-r2","apk:zlib":"1.2.13-r1","apk:zstd-libs":"1.5.5-r4","github:dexidp/dex":"v2.37.0","image:base":"2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096","image:golang":"ada25feadcd2358de8ef4f8fba32c5cd074439dea37ec7b34495738bb9882640"} | ||
# BOM: {"apk:binutils":"2.40-r7","apk:brotli-libs":"1.0.9-r14","apk:busybox":"1.36.1-r2","apk:busybox-binsh":"1.36.1-r2","apk:ca-certificates":"20230506-r0","apk:gcc":"12.2.1_git20220924-r10","apk:git":"2.40.1-r0","apk:gmp":"6.2.1-r3","apk:isl25":"0.25-r2","apk:libacl":"2.3.1-r3","apk:libatomic":"12.2.1_git20220924-r10","apk:libcrypto3":"3.1.2-r0","apk:libcurl":"8.2.1-r0","apk:libexpat":"2.5.0-r1","apk:libgcc":"12.2.1_git20220924-r10","apk:libgomp":"12.2.1_git20220924-r10","apk:libidn2":"2.3.4-r1","apk:libncursesw":"6.4_p20230506-r0","apk:libssl3":"3.1.2-r0","apk:libstdc++":"12.2.1_git20220924-r10","apk:libunistring":"1.1-r1","apk:libxxhash":"0.8.2-r0","apk:lz4-libs":"1.9.4-r4","apk:mpc1":"1.3.1-r1","apk:mpfr4":"4.2.0_p12-r0","apk:musl":"1.2.4-r1","apk:ncurses-terminfo-base":"6.4_p20230506-r0","apk:nghttp2-libs":"1.55.1-r0","apk:pcre2":"10.42-r1","apk:popt":"1.19-r2","apk:readline":"8.2.1-r1","apk:rsync":"3.2.7-r4","apk:sqlite":"3.41.2-r2","apk:zlib":"1.2.13-r1","apk:zstd-libs":"1.5.5-r4","github:dexidp/dex":"v2.37.0","image:base":"2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096","image:golang":"1e89b999fbe8fac8ddac0ca839f89778d6b72bebcc4f6f03676f445c65cccf7e"} | ||
|
||
FROM reg.g5d.dev/golang@sha256:ada25feadcd2358de8ef4f8fba32c5cd074439dea37ec7b34495738bb9882640 AS build | ||
FROM reg.g5d.dev/golang@sha256:1e89b999fbe8fac8ddac0ca839f89778d6b72bebcc4f6f03676f445c65cccf7e AS build | ||
#Install build dependencies | ||
RUN apk add --no-cache \ | ||
musl=1.2.4-r1 \ | ||
libgomp=12.2.1_git20220924-r10 \ | ||
isl25=0.25-r2 \ | ||
libncursesw=6.4_p20230506-r0 \ | ||
sqlite=3.41.2-r2 \ | ||
gcc=12.2.1_git20220924-r10 \ | ||
readline=8.2.1-r1 \ | ||
libgcc=12.2.1_git20220924-r10 \ | ||
zstd-libs=1.5.5-r4 \ | ||
libatomic=12.2.1_git20220924-r10 \ | ||
gmp=6.2.1-r3 \ | ||
mpc1=1.3.1-r1 \ | ||
zlib=1.2.13-r1 \ | ||
ncurses-terminfo-base=6.4_p20230506-r0 \ | ||
binutils=2.40-r7 \ | ||
mpfr4=4.2.0_p12-r0 \ | ||
libstdc++=12.2.1_git20220924-r10 | ||
|
||
#Create required volumes | ||
RUN mkdir -p \ | ||
/rootfs/db | ||
|
||
#Ensure git is installed | ||
RUN set -eux; \ | ||
#Install build dependencies | ||
apk add --no-cache \binutils=2.40-r7 \ | ||
gcc=12.2.1_git20220924-r10 \ | ||
gmp=6.2.1-r3 \ | ||
isl25=0.25-r2 \ | ||
libatomic=12.2.1_git20220924-r10 \ | ||
libgcc=12.2.1_git20220924-r10 \ | ||
libgomp=12.2.1_git20220924-r10 \ | ||
libncursesw=6.4_p20230506-r0 \ | ||
libstdc++=12.2.1_git20220924-r10 \ | ||
mpc1=1.3.1-r1 \ | ||
mpfr4=4.2.0_p12-r0 \ | ||
musl=1.2.4-r1 \ | ||
ncurses-terminfo-base=6.4_p20230506-r0 \ | ||
readline=8.2.1-r1 \ | ||
sqlite=3.41.2-r2 \ | ||
zlib=1.2.13-r1 \ | ||
zstd-libs=1.5.5-r4 | ||
apk add --no-cache \ | ||
ca-certificates=20230506-r0 \ | ||
libunistring=1.1-r1 \ | ||
musl=1.2.4-r1 \ | ||
libexpat=2.5.0-r1 \ | ||
busybox-binsh=1.36.1-r2 \ | ||
libcurl=8.2.1-r0 \ | ||
pcre2=10.42-r1 \ | ||
brotli-libs=1.0.9-r14 \ | ||
libssl3=3.1.2-r0 \ | ||
nghttp2-libs=1.55.1-r0 \ | ||
busybox=1.36.1-r2 \ | ||
git=2.40.1-r0 \ | ||
zlib=1.2.13-r1 \ | ||
libcrypto3=3.1.2-r0 \ | ||
libidn2=2.3.4-r1 | ||
#Get latest tag and clone the repo | ||
ARG TAGdexidp_dex=v2.37.0 | ||
RUN git clone --depth=1 -b $TAGdexidp_dex --single-branch https://github.com/dexidp/dex /src/dexidp/dex | ||
|
||
|
||
|
||
|
||
RUN set -eux; \ | ||
#Create required directories | ||
mkdir -p \ | ||
/rootfs/db | ||
|
||
ARG TAGdex="v2.37.0" | ||
RUN set -eux; \ | ||
#Ensure git is in the build environment | ||
apk add --no-cache \ | ||
brotli-libs=1.0.9-r14 \ | ||
busybox=1.36.1-r2 \ | ||
busybox-binsh=1.36.1-r2 \ | ||
ca-certificates=20230506-r0 \ | ||
git=2.40.1-r0 \ | ||
libcrypto3=3.1.2-r0 \ | ||
libcurl=8.2.1-r0 \ | ||
libexpat=2.5.0-r1 \ | ||
libidn2=2.3.4-r1 \ | ||
libssl3=3.1.2-r0 \ | ||
libunistring=1.1-r1 \ | ||
musl=1.2.4-r1 \ | ||
nghttp2-libs=1.55.1-r0 \ | ||
pcre2=10.42-r1 \ | ||
zlib=1.2.13-r1 | ||
|
||
RUN git clone --depth=1 -b $TAGdex --single-branch https://github.com/dexidp/dex /src/dexidp/dex | ||
|
||
WORKDIR /src/dexidp/dex | ||
RUN go build -tags netgo,osusergo -a -trimpath -ldflags='-w -extldflags "-static" -buildid= ' -o /rootfs/dex ./cmd/dex | ||
RUN go-licenses save ./... --save_path=/notices --force --ignore github.com/dexidp/dex/api/v2; | ||
WORKDIR /src/TAGdexidp_dex | ||
RUN go build -tags netgo,osusergo -a -trimpath -ldflags='-w -buildid=' -o /rootfs/dockercleanup ./cmd/dex | ||
RUN go-licenses save ./... --save_path=/notices --force --ignore github.com/dexidp/dex/api/v2 | ||
RUN cp -r /notices /rootfs/ | ||
|
||
#Ensure rsync is installed | ||
RUN apk add --no-cache \ | ||
lz4-libs=1.9.4-r4 \ | ||
popt=1.19-r2 \ | ||
libxxhash=0.8.2-r0 \ | ||
zlib=1.2.13-r1 \ | ||
zstd-libs=1.5.5-r4 \ | ||
rsync=3.2.7-r4 \ | ||
libacl=2.3.1-r3 \ | ||
musl=1.2.4-r1 | ||
#Copy directories into rootfs | ||
RUN rsync -ap /src/TAGdexidp_dex/web/ /rootfs/ | ||
|
||
|
||
#Ensure rsync is available | ||
RUN set -eux; \ | ||
apk add --no-cache \ | ||
libacl=2.3.1-r3 \ | ||
libxxhash=0.8.2-r0 \ | ||
lz4-libs=1.9.4-r4 \ | ||
musl=1.2.4-r1 \ | ||
popt=1.19-r2 \ | ||
rsync=3.2.7-r4 \ | ||
zlib=1.2.13-r1 \ | ||
zstd-libs=1.5.5-r4; | ||
|
||
WORKDIR /src/dexidp/dex | ||
RUN set -eux; \ | ||
#Copy required directories | ||
rsync -ap /src/dexidp/dex/web/ /rootfs/web | ||
|
||
FROM reg.g5d.dev/base@sha256:2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096 | ||
|
||
COPY --from=build --chown=65532:65532 /rootfs/ / | ||
ENTRYPOINT ["/dex"] | ||
ENTRYPOINT ["/dockercleanup"] | ||
CMD ["serve", "/config.yml"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
{{ set "repo" "dexidp/dex" -}} | ||
{{- set "cmd" "cmd/dex" -}} | ||
{{- set "binary" "dex" -}} | ||
{{- set "runargs" (list "serve" "/config.yml") -}} | ||
{{- set "buildDeps" (alpine_packages "sqlite" "gcc") -}} | ||
{{- set "volumes" (list "/db") -}} | ||
{{- set "directories" (list "/web") -}} | ||
{{- set "skipnotices" (list "github.com/dexidp/dex/api/v2") -}} | ||
|
||
{{- $repo := "dexidp/dex" -}} | ||
{{- $binary := "dockercleanup" -}} | ||
FROM {{image "golang"}} AS build | ||
{{ partial "install-build-deps.gotpl" }} | ||
{{ partial "install-run-deps.gotpl" }} | ||
{{ partial "create-directories.gotpl" }} | ||
{{ partial "checkout-tag.gotpl" }} | ||
{{ partial "static-go-build.gotpl" }} | ||
{{ partial "copy-directories.gotpl" }} | ||
{{ partial "from-base-add-binary.gotpl" }} | ||
{{ install_build_deps "sqlite" "gcc" }} | ||
{{ create_volumes "/db" }} | ||
{{ checkout_tag $repo }} | ||
{{ go_build $repo $binary "cmd/dex" (list) (list) (list "github.com/dexidp/dex/api/v2") }} | ||
{{ copy_directories $repo "/web" }} | ||
{{ from_base_add_binary $binary (list) (list "serve" "/config.yml") }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
# Generated from https://github.com/greboid/dockerfiles/blob/master/dockercleanup/Containerfile.gotpl | ||
# BOM: {"apk:brotli-libs":"1.0.9-r14","apk:busybox":"1.36.1-r2","apk:busybox-binsh":"1.36.1-r2","apk:ca-certificates":"20230506-r0","apk:git":"2.40.1-r0","apk:libcrypto3":"3.1.2-r0","apk:libcurl":"8.2.1-r0","apk:libexpat":"2.5.0-r1","apk:libidn2":"2.3.4-r1","apk:libssl3":"3.1.2-r0","apk:libunistring":"1.1-r1","apk:musl":"1.2.4-r1","apk:nghttp2-libs":"1.55.1-r0","apk:pcre2":"10.42-r1","apk:zlib":"1.2.13-r1","github:greboid/dockercleanup":"v1.0.1","image:base":"2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096","image:golang":"ada25feadcd2358de8ef4f8fba32c5cd074439dea37ec7b34495738bb9882640"} | ||
# BOM: {"apk:brotli-libs":"1.0.9-r14","apk:busybox":"1.36.1-r2","apk:busybox-binsh":"1.36.1-r2","apk:ca-certificates":"20230506-r0","apk:git":"2.40.1-r0","apk:libcrypto3":"3.1.2-r0","apk:libcurl":"8.2.1-r0","apk:libexpat":"2.5.0-r1","apk:libidn2":"2.3.4-r1","apk:libssl3":"3.1.2-r0","apk:libunistring":"1.1-r1","apk:musl":"1.2.4-r1","apk:nghttp2-libs":"1.55.1-r0","apk:pcre2":"10.42-r1","apk:zlib":"1.2.13-r1","github:greboid/dockercleanup":"v1.0.1","image:base":"2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096","image:golang":"1e89b999fbe8fac8ddac0ca839f89778d6b72bebcc4f6f03676f445c65cccf7e"} | ||
|
||
FROM reg.g5d.dev/golang@sha256:ada25feadcd2358de8ef4f8fba32c5cd074439dea37ec7b34495738bb9882640 AS build | ||
ARG TAGdockercleanup="v1.0.1" | ||
FROM reg.g5d.dev/golang@sha256:1e89b999fbe8fac8ddac0ca839f89778d6b72bebcc4f6f03676f445c65cccf7e AS build | ||
#Ensure git is installed | ||
RUN set -eux; \ | ||
#Ensure git is in the build environment | ||
apk add --no-cache \ | ||
brotli-libs=1.0.9-r14 \ | ||
busybox=1.36.1-r2 \ | ||
busybox-binsh=1.36.1-r2 \ | ||
ca-certificates=20230506-r0 \ | ||
git=2.40.1-r0 \ | ||
libcrypto3=3.1.2-r0 \ | ||
libcurl=8.2.1-r0 \ | ||
libexpat=2.5.0-r1 \ | ||
libidn2=2.3.4-r1 \ | ||
libssl3=3.1.2-r0 \ | ||
libunistring=1.1-r1 \ | ||
musl=1.2.4-r1 \ | ||
nghttp2-libs=1.55.1-r0 \ | ||
pcre2=10.42-r1 \ | ||
zlib=1.2.13-r1 | ||
RUN git clone --depth=1 -b $TAGdockercleanup --single-branch https://github.com/greboid/dockercleanup /src/greboid/dockercleanup | ||
apk add --no-cache \ | ||
libexpat=2.5.0-r1 \ | ||
busybox=1.36.1-r2 \ | ||
git=2.40.1-r0 \ | ||
pcre2=10.42-r1 \ | ||
zlib=1.2.13-r1 \ | ||
ca-certificates=20230506-r0 \ | ||
brotli-libs=1.0.9-r14 \ | ||
libidn2=2.3.4-r1 \ | ||
libssl3=3.1.2-r0 \ | ||
musl=1.2.4-r1 \ | ||
libcurl=8.2.1-r0 \ | ||
libcrypto3=3.1.2-r0 \ | ||
nghttp2-libs=1.55.1-r0 \ | ||
busybox-binsh=1.36.1-r2 \ | ||
libunistring=1.1-r1 | ||
#Get latest tag and clone the repo | ||
ARG TAGgreboid_dockercleanup=v1.0.1 | ||
RUN git clone --depth=1 -b $TAGgreboid_dockercleanup --single-branch https://github.com/greboid/dockercleanup /src/greboid/dockercleanup | ||
|
||
WORKDIR /src/greboid/dockercleanup | ||
RUN go build -tags netgo,osusergo -a -trimpath -ldflags='-w -extldflags "-static" -buildid= ' -o /rootfs/dockercleanup ./ | ||
WORKDIR /src/TAGgreboid_dockercleanup | ||
RUN go build -tags netgo,osusergo -a -trimpath -ldflags='-w -buildid=' -o /rootfs/dockercleanup ./ | ||
RUN go-licenses save ./... --save_path=/notices --force | ||
RUN cp -r /notices /rootfs/ | ||
|
||
FROM reg.g5d.dev/base@sha256:2efe0a4732e281176d0871d4e9db4d143156289192887a056d3eddd91d02d096 | ||
|
||
COPY --from=build --chown=65532:65532 /rootfs/ / | ||
ENTRYPOINT ["/dockercleanup"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{{ set "repo" "greboid/dockercleanup" -}} | ||
{{- set "cmd" "" -}} | ||
{{- set "binary" "dockercleanup" -}} | ||
|
||
{{- $repo := "greboid/dockercleanup" -}} | ||
{{- $binary := "dockercleanup" -}} | ||
FROM {{image "golang"}} AS build | ||
{{ partial "checkout-tag.gotpl" }} | ||
{{ partial "static-go-build.gotpl" }} | ||
{{ partial "from-base-add-binary.gotpl" }} | ||
{{ checkout_tag $repo }} | ||
{{ go_build $repo $binary "" (list) (list) (list) }} | ||
{{ from_base_add_binary $binary (list) (list) }} |
Oops, something went wrong.