slingdata-io / sling-cli

Sling is a CLI tool that extracts data from a source storage/database and loads it in a target storage/database.
https://docs.slingdata.io
GNU General Public License v3.0
429 stars 35 forks source link

Publish single Multiplatform Docker Image #162

Open johnoscott opened 8 months ago

johnoscott commented 8 months ago

Since Sling 1.1.5 now supports arm/linux builds, the official docker image does not seem to pull the correct platform image.

docker run --rm slingdata/sling sling --version
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Version: 1.1.5
johnoscott commented 8 months ago

I can workaround this issue by pulling the specific platform version.

docker pull --platform=linux/amd64/v8  slingdata/sling

but i shouldnt need to also specify the platform when i run it

docker run --rm slingdata/sling sling --version
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Version: 1.1.5

docker run --rm --platform=linux/amd64/v8 slingdata/sling sling --version
Version: 1.1.5
flarco commented 8 months ago

Yes, was ripping my hair out trying to figure out this one. I can’t get goreleaser to properly release a multi-platform image. Will look at it later. For now, you can also pull slingdata/sling:1.1.5-arm64 without specifying platform.

Links for myself: