From f02c5960480374357f7bb0dfa824a6f471e82820 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 29 Aug 2024 13:03:23 +0200 Subject: [PATCH 1/5] patch: upgrade to 1.19.13 --- v1.19/Dockerfile.amd64 | 2 +- v1.19/Dockerfile.arm | 2 +- v1.19/Dockerfile.arm64 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v1.19/Dockerfile.amd64 b/v1.19/Dockerfile.amd64 index c620161..40b5a1e 100644 --- a/v1.19/Dockerfile.amd64 +++ b/v1.19/Dockerfile.amd64 @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.19.12 +ENV GOLANG_VERSION=1.19.13 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 diff --git a/v1.19/Dockerfile.arm b/v1.19/Dockerfile.arm index e344b57..77c0104 100644 --- a/v1.19/Dockerfile.arm +++ b/v1.19/Dockerfile.arm @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.19.12 +ENV GOLANG_VERSION=1.19.13 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 diff --git a/v1.19/Dockerfile.arm64 b/v1.19/Dockerfile.arm64 index 6fb8601..4a2cef7 100644 --- a/v1.19/Dockerfile.arm64 +++ b/v1.19/Dockerfile.arm64 @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.19.12 +ENV GOLANG_VERSION=1.19.13 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 From 51a58420765696a2de8614a7150c67e9f037ff48 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 29 Aug 2024 13:03:50 +0200 Subject: [PATCH 2/5] patch: upgrade to 1.20.14 --- v1.20/Dockerfile.amd64 | 2 +- v1.20/Dockerfile.arm | 2 +- v1.20/Dockerfile.arm64 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v1.20/Dockerfile.amd64 b/v1.20/Dockerfile.amd64 index f6c2a24..be99e90 100644 --- a/v1.20/Dockerfile.amd64 +++ b/v1.20/Dockerfile.amd64 @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.20.7 +ENV GOLANG_VERSION=1.20.14 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 diff --git a/v1.20/Dockerfile.arm b/v1.20/Dockerfile.arm index f8d3de4..19061c7 100644 --- a/v1.20/Dockerfile.arm +++ b/v1.20/Dockerfile.arm @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.20.7 +ENV GOLANG_VERSION=1.20.14 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 diff --git a/v1.20/Dockerfile.arm64 b/v1.20/Dockerfile.arm64 index acd992d..63ef029 100644 --- a/v1.20/Dockerfile.arm64 +++ b/v1.20/Dockerfile.arm64 @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.20.7 +ENV GOLANG_VERSION=1.20.14 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 From 65d77d05055d1c8b19be943310a19eb8fe21a1d7 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 29 Aug 2024 13:04:08 +0200 Subject: [PATCH 3/5] patch: upgrade to 1.21.13 --- v1.21/Dockerfile.amd64 | 2 +- v1.21/Dockerfile.arm | 2 +- v1.21/Dockerfile.arm64 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v1.21/Dockerfile.amd64 b/v1.21/Dockerfile.amd64 index 2452c88..43669b6 100644 --- a/v1.21/Dockerfile.amd64 +++ b/v1.21/Dockerfile.amd64 @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.21.6 +ENV GOLANG_VERSION=1.21.13 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 diff --git a/v1.21/Dockerfile.arm b/v1.21/Dockerfile.arm index 88c956d..a79dbbc 100644 --- a/v1.21/Dockerfile.arm +++ b/v1.21/Dockerfile.arm @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.21.6 +ENV GOLANG_VERSION=1.21.13 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 diff --git a/v1.21/Dockerfile.arm64 b/v1.21/Dockerfile.arm64 index f18179d..295f696 100644 --- a/v1.21/Dockerfile.arm64 +++ b/v1.21/Dockerfile.arm64 @@ -9,7 +9,7 @@ ENV GO111MODULE auto COPY ./overlay / # renovate: datasource=github-tags depName=golang/go -ENV GOLANG_VERSION=1.21.6 +ENV GOLANG_VERSION=1.21.13 # renovate: datasource=github-releases depName=upx/upx ENV UPX_VERSION=4.2.4 From 6a131cbcc00588074d0be78563b3aa41ee96a14b Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 29 Aug 2024 13:04:43 +0200 Subject: [PATCH 4/5] minor: add v1.22 with 1.22.6 --- .github/workflows/v1.22.yml | 159 ++++++++++++++++++++++++++++++++++++ v1.22/Dockerfile.amd64 | 33 ++++++++ v1.22/Dockerfile.arm | 34 ++++++++ v1.22/Dockerfile.arm64 | 33 ++++++++ v1.22/overlay/srv/app/.keep | 0 5 files changed, 259 insertions(+) create mode 100644 .github/workflows/v1.22.yml create mode 100644 v1.22/Dockerfile.amd64 create mode 100644 v1.22/Dockerfile.arm create mode 100644 v1.22/Dockerfile.arm64 create mode 100644 v1.22/overlay/srv/app/.keep diff --git a/.github/workflows/v1.22.yml b/.github/workflows/v1.22.yml new file mode 100644 index 0000000..7e3f5bc --- /dev/null +++ b/.github/workflows/v1.22.yml @@ -0,0 +1,159 @@ +--- +name: v1.22 + +"on": + push: + branches: + - master + paths: + - v1.22/* + - .github/workflows/v1.22.yml + pull_request: + branches: + - master + paths: + - v1.22/* + - .github/workflows/v1.22.yml + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + id: source + uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + images: | + webhippie/golang + quay.io/webhippie/golang + ghcr.io/dockhippie/golang + labels: | + org.opencontainers.image.vendor=Webhippie + maintainer=Thomas Boerger + + - name: Setup QEMU + id: qemu + uses: docker/setup-qemu-action@v3 + + - name: Setup Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + + - name: Hub login + id: login1 + uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Quay login + id: login2 + uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + + - name: Ghcr login + id: login3 + uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build amd64 + id: amd64 + uses: docker/build-push-action@v6 + with: + builder: ${{ steps.buildx.outputs.name }} + context: v1.22/ + provenance: false + file: v1.22/Dockerfile.amd64 + platforms: linux/amd64 + push: ${{ github.event_name != 'pull_request' }} + labels: ${{ steps.meta.outputs.labels }} + tags: | + webhippie/golang:1.22-amd64 + quay.io/webhippie/golang:1.22-amd64 + ghcr.io/dockhippie/golang:1.22-amd64 + + - name: Build arm64 + id: arm64 + uses: docker/build-push-action@v6 + with: + builder: ${{ steps.buildx.outputs.name }} + context: v1.22/ + provenance: false + file: v1.22/Dockerfile.arm64 + platforms: linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + labels: ${{ steps.meta.outputs.labels }} + tags: | + webhippie/golang:1.22-arm64 + quay.io/webhippie/golang:1.22-arm64 + ghcr.io/dockhippie/golang:1.22-arm64 + + - name: Build arm + id: arm + uses: docker/build-push-action@v6 + with: + builder: ${{ steps.buildx.outputs.name }} + context: v1.22/ + provenance: false + file: v1.22/Dockerfile.arm + platforms: linux/arm/v6 + push: ${{ github.event_name != 'pull_request' }} + labels: ${{ steps.meta.outputs.labels }} + tags: | + webhippie/golang:1.22-arm + quay.io/webhippie/golang:1.22-arm + ghcr.io/dockhippie/golang:1.22-arm + + - name: Hub manifest + id: manifest1 + uses: actionhippie/manifest@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + platforms: linux/amd64,linux/arm64,linux/arm/v6 + template: webhippie/golang:1.22-ARCH + target: webhippie/golang:1.22 + ignore_missing: true + + - name: Quay manifest + id: manifest2 + uses: actionhippie/manifest@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + platforms: linux/amd64,linux/arm64,linux/arm/v6 + template: quay.io/webhippie/golang:1.22-ARCH + target: quay.io/webhippie/golang:1.22 + ignore_missing: true + + - name: Ghcr manifest + id: manifest3 + uses: actionhippie/manifest@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + platforms: linux/amd64,linux/arm64,linux/arm/v6 + template: ghcr.io/dockhippie/golang:1.22-ARCH + target: ghcr.io/dockhippie/golang:1.22 + ignore_missing: true + +... diff --git a/v1.22/Dockerfile.amd64 b/v1.22/Dockerfile.amd64 new file mode 100644 index 0000000..93236df --- /dev/null +++ b/v1.22/Dockerfile.amd64 @@ -0,0 +1,33 @@ +FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:65c782c5fa3f916affd9c3e638c6fdc6c184d0e33e774f12cf4f50c1950762be + +WORKDIR /srv/app + +ENV GOPATH /srv/app +ENV PATH /srv/app/bin:/usr/local/go/bin:${PATH} +ENV GO111MODULE auto + +COPY ./overlay / + +# renovate: datasource=github-tags depName=golang/go +ENV GOLANG_VERSION=1.22.6 + +# renovate: datasource=github-releases depName=upx/upx +ENV UPX_VERSION=4.2.4 + +RUN apk update && \ + apk upgrade && \ + apk add gcc musl-dev openssl openssh-client make git git-lfs mercurial go protoc protobuf-dev binutils-gold && \ + export GOROOT_BOOTSTRAP="$(go env GOROOT)" && \ + export GOOS="$(go env GOOS)" && \ + export GOARCH="$(go env GOARCH)" && \ + export GOHOSTOS="$(go env GOHOSTOS)" && \ + export GOHOSTARCH="$(go env GOHOSTARCH)" && \ + go env -w GO111MODULE=auto && \ + curl -sLo - https://golang.org/dl/go${GOLANG_VERSION}.src.tar.gz | tar -xzf - -C /usr/local && \ + cd /usr/local/go/src && \ + bash make.bash && \ + rm -rf /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj && \ + apk del go && \ + curl -sSLo- https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz | tar -xJv --strip 1 -C /tmp && \ + mv /tmp/upx /usr/bin/upx && \ + rm -rf /var/cache/apk/* /tmp/* diff --git a/v1.22/Dockerfile.arm b/v1.22/Dockerfile.arm new file mode 100644 index 0000000..62e9144 --- /dev/null +++ b/v1.22/Dockerfile.arm @@ -0,0 +1,34 @@ +FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:433dca05e4c3e7f9a753bd3641351a9c47040d1c0c604ea885c4056f3e8ae597 + +WORKDIR /srv/app + +ENV GOPATH /srv/app +ENV PATH /srv/app/bin:/usr/local/go/bin:${PATH} +ENV GO111MODULE auto + +COPY ./overlay / + +# renovate: datasource=github-tags depName=golang/go +ENV GOLANG_VERSION=1.22.6 + +# renovate: datasource=github-releases depName=upx/upx +ENV UPX_VERSION=4.2.4 + +RUN apk update && \ + apk upgrade && \ + apk add gcc musl-dev openssl openssh-client make git git-lfs mercurial go protoc protobuf-dev binutils-gold && \ + export GOROOT_BOOTSTRAP="$(go env GOROOT)" && \ + export GOOS="$(go env GOOS)" && \ + export GOARCH="$(go env GOARCH)" && \ + export GOHOSTOS="$(go env GOHOSTOS)" && \ + export GOHOSTARCH="$(go env GOHOSTARCH)" && \ + export GOARM="6" && \ + go env -w GO111MODULE=auto && \ + curl -sLo - https://golang.org/dl/go${GOLANG_VERSION}.src.tar.gz | tar -xzf - -C /usr/local && \ + cd /usr/local/go/src && \ + bash make.bash && \ + rm -rf /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj && \ + apk del go && \ + curl -sSLo- https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-arm_linux.tar.xz | tar -xJv --strip 1 -C /tmp && \ + mv /tmp/upx /usr/bin/upx && \ + rm -rf /var/cache/apk/* /tmp/* diff --git a/v1.22/Dockerfile.arm64 b/v1.22/Dockerfile.arm64 new file mode 100644 index 0000000..7fbf0b3 --- /dev/null +++ b/v1.22/Dockerfile.arm64 @@ -0,0 +1,33 @@ +FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:a08ec5f5aaf68c73e1ae4d1cfe9949dccf9e3f0c49d8088a0f0c42491ef77cd3 + +WORKDIR /srv/app + +ENV GOPATH /srv/app +ENV PATH /srv/app/bin:/usr/local/go/bin:${PATH} +ENV GO111MODULE auto + +COPY ./overlay / + +# renovate: datasource=github-tags depName=golang/go +ENV GOLANG_VERSION=1.22.6 + +# renovate: datasource=github-releases depName=upx/upx +ENV UPX_VERSION=4.2.4 + +RUN apk update && \ + apk upgrade && \ + apk add gcc musl-dev openssl openssh-client make git git-lfs mercurial go protoc protobuf-dev binutils-gold && \ + export GOROOT_BOOTSTRAP="$(go env GOROOT)" && \ + export GOOS="$(go env GOOS)" && \ + export GOARCH="$(go env GOARCH)" && \ + export GOHOSTOS="$(go env GOHOSTOS)" && \ + export GOHOSTARCH="$(go env GOHOSTARCH)" && \ + go env -w GO111MODULE=auto && \ + curl -sLo - https://golang.org/dl/go${GOLANG_VERSION}.src.tar.gz | tar -xzf - -C /usr/local && \ + cd /usr/local/go/src && \ + bash make.bash && \ + rm -rf /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj && \ + apk del go && \ + curl -sSLo- https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-arm64_linux.tar.xz | tar -xJv --strip 1 -C /tmp && \ + mv /tmp/upx /usr/bin/upx && \ + rm -rf /var/cache/apk/* /tmp/* diff --git a/v1.22/overlay/srv/app/.keep b/v1.22/overlay/srv/app/.keep new file mode 100644 index 0000000..e69de29 From 30fd1cf6674f398f0d140f9c4f941c47c4835a6c Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 29 Aug 2024 13:05:06 +0200 Subject: [PATCH 5/5] minor: add v1.23 with 1.23.0 --- .github/workflows/v1.23.yml | 159 ++++++++++++++++++++++++++++++++++++ v1.23/Dockerfile.amd64 | 33 ++++++++ v1.23/Dockerfile.arm | 34 ++++++++ v1.23/Dockerfile.arm64 | 33 ++++++++ v1.23/overlay/srv/app/.keep | 0 5 files changed, 259 insertions(+) create mode 100644 .github/workflows/v1.23.yml create mode 100644 v1.23/Dockerfile.amd64 create mode 100644 v1.23/Dockerfile.arm create mode 100644 v1.23/Dockerfile.arm64 create mode 100644 v1.23/overlay/srv/app/.keep diff --git a/.github/workflows/v1.23.yml b/.github/workflows/v1.23.yml new file mode 100644 index 0000000..4ef0c35 --- /dev/null +++ b/.github/workflows/v1.23.yml @@ -0,0 +1,159 @@ +--- +name: v1.23 + +"on": + push: + branches: + - master + paths: + - v1.23/* + - .github/workflows/v1.23.yml + pull_request: + branches: + - master + paths: + - v1.23/* + - .github/workflows/v1.23.yml + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + id: source + uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + images: | + webhippie/golang + quay.io/webhippie/golang + ghcr.io/dockhippie/golang + labels: | + org.opencontainers.image.vendor=Webhippie + maintainer=Thomas Boerger + + - name: Setup QEMU + id: qemu + uses: docker/setup-qemu-action@v3 + + - name: Setup Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + + - name: Hub login + id: login1 + uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Quay login + id: login2 + uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + + - name: Ghcr login + id: login3 + uses: docker/login-action@v3 + if: github.event_name != 'pull_request' + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build amd64 + id: amd64 + uses: docker/build-push-action@v6 + with: + builder: ${{ steps.buildx.outputs.name }} + context: v1.23/ + provenance: false + file: v1.23/Dockerfile.amd64 + platforms: linux/amd64 + push: ${{ github.event_name != 'pull_request' }} + labels: ${{ steps.meta.outputs.labels }} + tags: | + webhippie/golang:1.23-amd64 + quay.io/webhippie/golang:1.23-amd64 + ghcr.io/dockhippie/golang:1.23-amd64 + + - name: Build arm64 + id: arm64 + uses: docker/build-push-action@v6 + with: + builder: ${{ steps.buildx.outputs.name }} + context: v1.23/ + provenance: false + file: v1.23/Dockerfile.arm64 + platforms: linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + labels: ${{ steps.meta.outputs.labels }} + tags: | + webhippie/golang:1.23-arm64 + quay.io/webhippie/golang:1.23-arm64 + ghcr.io/dockhippie/golang:1.23-arm64 + + - name: Build arm + id: arm + uses: docker/build-push-action@v6 + with: + builder: ${{ steps.buildx.outputs.name }} + context: v1.23/ + provenance: false + file: v1.23/Dockerfile.arm + platforms: linux/arm/v6 + push: ${{ github.event_name != 'pull_request' }} + labels: ${{ steps.meta.outputs.labels }} + tags: | + webhippie/golang:1.23-arm + quay.io/webhippie/golang:1.23-arm + ghcr.io/dockhippie/golang:1.23-arm + + - name: Hub manifest + id: manifest1 + uses: actionhippie/manifest@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + platforms: linux/amd64,linux/arm64,linux/arm/v6 + template: webhippie/golang:1.23-ARCH + target: webhippie/golang:1.23 + ignore_missing: true + + - name: Quay manifest + id: manifest2 + uses: actionhippie/manifest@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + platforms: linux/amd64,linux/arm64,linux/arm/v6 + template: quay.io/webhippie/golang:1.23-ARCH + target: quay.io/webhippie/golang:1.23 + ignore_missing: true + + - name: Ghcr manifest + id: manifest3 + uses: actionhippie/manifest@v1 + if: github.event_name != 'pull_request' + with: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + platforms: linux/amd64,linux/arm64,linux/arm/v6 + template: ghcr.io/dockhippie/golang:1.23-ARCH + target: ghcr.io/dockhippie/golang:1.23 + ignore_missing: true + +... diff --git a/v1.23/Dockerfile.amd64 b/v1.23/Dockerfile.amd64 new file mode 100644 index 0000000..cb63275 --- /dev/null +++ b/v1.23/Dockerfile.amd64 @@ -0,0 +1,33 @@ +FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:65c782c5fa3f916affd9c3e638c6fdc6c184d0e33e774f12cf4f50c1950762be + +WORKDIR /srv/app + +ENV GOPATH /srv/app +ENV PATH /srv/app/bin:/usr/local/go/bin:${PATH} +ENV GO111MODULE auto + +COPY ./overlay / + +# renovate: datasource=github-tags depName=golang/go +ENV GOLANG_VERSION=1.23.0 + +# renovate: datasource=github-releases depName=upx/upx +ENV UPX_VERSION=4.2.4 + +RUN apk update && \ + apk upgrade && \ + apk add gcc musl-dev openssl openssh-client make git git-lfs mercurial go protoc protobuf-dev binutils-gold && \ + export GOROOT_BOOTSTRAP="$(go env GOROOT)" && \ + export GOOS="$(go env GOOS)" && \ + export GOARCH="$(go env GOARCH)" && \ + export GOHOSTOS="$(go env GOHOSTOS)" && \ + export GOHOSTARCH="$(go env GOHOSTARCH)" && \ + go env -w GO111MODULE=auto && \ + curl -sLo - https://golang.org/dl/go${GOLANG_VERSION}.src.tar.gz | tar -xzf - -C /usr/local && \ + cd /usr/local/go/src && \ + bash make.bash && \ + rm -rf /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj && \ + apk del go && \ + curl -sSLo- https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-amd64_linux.tar.xz | tar -xJv --strip 1 -C /tmp && \ + mv /tmp/upx /usr/bin/upx && \ + rm -rf /var/cache/apk/* /tmp/* diff --git a/v1.23/Dockerfile.arm b/v1.23/Dockerfile.arm new file mode 100644 index 0000000..84defaf --- /dev/null +++ b/v1.23/Dockerfile.arm @@ -0,0 +1,34 @@ +FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:433dca05e4c3e7f9a753bd3641351a9c47040d1c0c604ea885c4056f3e8ae597 + +WORKDIR /srv/app + +ENV GOPATH /srv/app +ENV PATH /srv/app/bin:/usr/local/go/bin:${PATH} +ENV GO111MODULE auto + +COPY ./overlay / + +# renovate: datasource=github-tags depName=golang/go +ENV GOLANG_VERSION=1.23.0 + +# renovate: datasource=github-releases depName=upx/upx +ENV UPX_VERSION=4.2.4 + +RUN apk update && \ + apk upgrade && \ + apk add gcc musl-dev openssl openssh-client make git git-lfs mercurial go protoc protobuf-dev binutils-gold && \ + export GOROOT_BOOTSTRAP="$(go env GOROOT)" && \ + export GOOS="$(go env GOOS)" && \ + export GOARCH="$(go env GOARCH)" && \ + export GOHOSTOS="$(go env GOHOSTOS)" && \ + export GOHOSTARCH="$(go env GOHOSTARCH)" && \ + export GOARM="6" && \ + go env -w GO111MODULE=auto && \ + curl -sLo - https://golang.org/dl/go${GOLANG_VERSION}.src.tar.gz | tar -xzf - -C /usr/local && \ + cd /usr/local/go/src && \ + bash make.bash && \ + rm -rf /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj && \ + apk del go && \ + curl -sSLo- https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-arm_linux.tar.xz | tar -xJv --strip 1 -C /tmp && \ + mv /tmp/upx /usr/bin/upx && \ + rm -rf /var/cache/apk/* /tmp/* diff --git a/v1.23/Dockerfile.arm64 b/v1.23/Dockerfile.arm64 new file mode 100644 index 0000000..211d20c --- /dev/null +++ b/v1.23/Dockerfile.arm64 @@ -0,0 +1,33 @@ +FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:a08ec5f5aaf68c73e1ae4d1cfe9949dccf9e3f0c49d8088a0f0c42491ef77cd3 + +WORKDIR /srv/app + +ENV GOPATH /srv/app +ENV PATH /srv/app/bin:/usr/local/go/bin:${PATH} +ENV GO111MODULE auto + +COPY ./overlay / + +# renovate: datasource=github-tags depName=golang/go +ENV GOLANG_VERSION=1.23.0 + +# renovate: datasource=github-releases depName=upx/upx +ENV UPX_VERSION=4.2.4 + +RUN apk update && \ + apk upgrade && \ + apk add gcc musl-dev openssl openssh-client make git git-lfs mercurial go protoc protobuf-dev binutils-gold && \ + export GOROOT_BOOTSTRAP="$(go env GOROOT)" && \ + export GOOS="$(go env GOOS)" && \ + export GOARCH="$(go env GOARCH)" && \ + export GOHOSTOS="$(go env GOHOSTOS)" && \ + export GOHOSTARCH="$(go env GOHOSTARCH)" && \ + go env -w GO111MODULE=auto && \ + curl -sLo - https://golang.org/dl/go${GOLANG_VERSION}.src.tar.gz | tar -xzf - -C /usr/local && \ + cd /usr/local/go/src && \ + bash make.bash && \ + rm -rf /usr/local/go/pkg/bootstrap /usr/local/go/pkg/obj && \ + apk del go && \ + curl -sSLo- https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-arm64_linux.tar.xz | tar -xJv --strip 1 -C /tmp && \ + mv /tmp/upx /usr/bin/upx && \ + rm -rf /var/cache/apk/* /tmp/* diff --git a/v1.23/overlay/srv/app/.keep b/v1.23/overlay/srv/app/.keep new file mode 100644 index 0000000..e69de29