Closed Nicolas-Peiffer closed 2 months ago
if you are trying to use CGO, you'll need more than just using a debian-based image.
check: https://goreleaser.com/cookbooks/cgo-and-crosscompiling
that said, with cgo disabled, there's not good reason to switch to debian, so I'll close this.
Is your feature request related to a problem? Please describe.
The current
goreleaser
official image docker.io/goreleaser/goreleaser is based on the Golang Alpine image likedocker.io/golang:1.22.4-alpine
( source goreleaser/Dockerfile ).I would like to have the choice between an Alpine-based goreleaser official image and a Debian-based goreleaser official image.
The debian-based goreleaser official image could be based on the on the Golang debian image like
docker.io/golang:1.22.4-bookworm
.One of the reason is the support of
glibc
by debian andlibc-musl
by Alpine. And sometimes I need CGO enabled and I need standardglibc
and not the musl one.On GitHUB actions when using Goreleaser, I do not have this musl libc issue, since GitHUB linux runners are Ubuntu-based.
Describe the solution you'd like
The debian-based goreleaser official image could be based on the on the Golang debian image like
docker.io/golang:1.22.4-bookworm
.Describe alternatives you've considered
Today, to compensate for the lack of an official debian-based
goreleaser
image on docker.io/goreleaser/goreleaser, I create my own custom Goreleaser image thanks to a Gitlab-ci job.I use the debian-based version of docker.io/golang as base image, and I install
goreleaser
and some tools likecosign
,ko-build
andtrivy
on top of the base image.I could create my own image outside of the Gitlab-ci job, but I do not want to maintain a custom Goreleaser image.
However, having a pre-build debian-based
goreleaser
image would make my CI pipeline faster, as I don't have to wait forgoreleaser
,cosign
,ko-build
andtrivy
to finish install. It also is friendlier for my network.On GitHUB actions, I do not have this musl libc issue since GitHUB linux runners are Ubuntu-based.
Search
Supporter
Code of Conduct
Additional context
No response