Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goreleaser multi Architecture Images #410

Merged
merged 1 commit into from
Feb 26, 2022
Merged

goreleaser multi Architecture Images #410

merged 1 commit into from
Feb 26, 2022

Conversation

0hlov3
Copy link
Contributor

@0hlov3 0hlov3 commented Feb 25, 2022

This should build the containers for Linux (amd64, arm64 & arm), I commented out latest here because I added another step here (docker_manifests), this step wants to push the images into dockerhub and build a manifest from it. So you can just do a docker pull from your architecture and the right version will be selected.

Unfortunately I couldn't test the last step properly locally, so in any case the changes need to be tested again before the merge.

But if you don't want goreleaser to push this manifest, you can simply delete the step "docker_manifests" edit the latest tags to :latest, :latest-arm64 & :latest-arm or something like that and uncomment the lines.

EDIT:
Sources:

@0hlov3
Copy link
Contributor Author

0hlov3 commented Feb 25, 2022

I'll edit things to fit to the actual building procedure.

@0hlov3 0hlov3 closed this Feb 25, 2022
@0hlov3
Copy link
Contributor Author

0hlov3 commented Feb 25, 2022

Okay please excuse the spam. Somehow I just had a thinking error. So I open the pullrequest again and it should actually work as it is.

@0hlov3 0hlov3 reopened this Feb 25, 2022
@0hlov3
Copy link
Contributor Author

0hlov3 commented Feb 25, 2022

I was testing the container image.

root@raspberrypi3-02:~# docker run -it --entrypoint="" superseriousbusiness/gotosocial sh
Unable to find image 'superseriousbusiness/gotosocial:latest' locally
latest: Pulling from superseriousbusiness/gotosocial
[...]
Status: Downloaded newer image for superseriousbusiness/gotosocial:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error
root@raspberrypi3-02:~# docker run -it --entrypoint="" 0hlov3s/gtstest sh
Unable to find image '0hlov3s/gtstest:latest' locally
latest: Pulling from 0hlov3s/gtstest
[...]
Status: Downloaded newer image for 0hlov3s/gtstest:latest
/gotosocial $ /gotosocial/gotosocial
GoToSocial - a fediverse social media server

For help, see: https://docs.gotosocial.org.

Code: https://github.com/superseriousbusiness/gotosocial

Usage:
  gotosocial [command]
[...]

Copy link
Contributor

@tsmethurst tsmethurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@tsmethurst tsmethurst merged commit 69d70aa into superseriousbusiness:main Feb 26, 2022
@0hlov3 0hlov3 deleted the goreleaser-docker-images branch February 26, 2022 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants