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

Building Arm Images #5041

Merged
merged 9 commits into from Dec 15, 2022
Merged

Building Arm Images #5041

merged 9 commits into from Dec 15, 2022

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Dec 14, 2022

What this PR does:
Build ARM Images ARM Images:

The image was tested on an AWS Graviton Instance:

IMAGE Example:

  • quay.io/cortexproject/cortex:HEAD-efbbb29
  • cortexproject/cortex:HEAD-efbbb29

Output:
Screen Shot 2022-12-14 at 6 29 25 PM

docker run quay.io/cortexproject/cortex:HEAD-efbbb29
level=info ts=2022-12-15T02:23:42.704220664Z caller=main.go:194 msg="Starting Cortex" version="(version=1.14.0, branch=HEAD, revision=9be1ec5)"
level=info ts=2022-12-15T02:23:42.704821947Z caller=server.go:306 http=[::]:80 grpc=[::]:9095 msg="server listening on addresses"
level=error ts=2022-12-15T02:23:42.705918487Z caller=log.go:117 msg="error running cortex" err="no s3 endpoint in config file\ngithub.com/thanos-io/objstore/providers/s3.validate\n\t/__w/cortex/cortex/vendor/github.com/thanos-io/objstore/providers/s3/s3.go:348\ngithub.com/thanos-io/objstore/providers/s3.NewBucketWithConfig\n\t/__w/cortex/cortex/vendor/github.com/thanos-io/objstore/providers/s3/s3.go:219\ngithub.com/cortexproject/cortex/pkg/storage/bucket/s3.NewBucketClient\n\t/__w/cortex/cortex/pkg/storage/bucket/s3/bucket_client.go:17\ngithub.com/cortexproject/cortex/pkg/storage/bucket.NewClient\n\t/__w/cortex/cortex/pkg/storage/bucket/client.go:102\ngithub.com/cortexproject/cortex/pkg/ingester.New\n\t/__w/cortex/cortex/pkg/ingester/ingester.go:603\ngithub.com/cortexproject/cortex/pkg/cortex.(*Cortex).initIngesterService\n\t/__w/cortex/cortex/pkg/cortex/modules.go:400\ngithub.com/cortexproject/cortex/pkg/util/modules.(*Manager).initModule\n\t/__w/cortex/cortex/pkg/util/modules/modules.go:106\ngithub.com/cortexproject/cortex/pkg/util/modules.(*Manager).InitModuleServices\n\t/__w/cortex/cortex/pkg/util/modules/modules.go:78\ngithub.com/cortexproject/cortex/pkg/cortex.(*Cortex).Run\n\t/__w/cortex/cortex/pkg/cortex/cortex.go:398\nmain.main\n\t/__w/cortex/cortex/cmd/cortex/main.go:196\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1172\nfailed to create the bucket client\ngithub.com/cortexproject/cortex/pkg/ingester.New\n\t/__w/cortex/cortex/pkg/ingester/ingester.go:605\ngithub.com/cortexproject/cortex/pkg/cortex.(*Cortex).initIngesterService\n\t/__w/cortex/cortex/pkg/cortex/modules.go:400\ngithub.com/cortexproject/cortex/pkg/util/modules.(*Manager).initModule\n\t/__w/cortex/cortex/pkg/util/modules/modules.go:106\ngithub.com/cortexproject/cortex/pkg/util/modules.(*Manager).InitModuleServices\n\t/__w/cortex/cortex/pkg/util/modules/modules.go:78\ngithub.com/cortexproject/cortex/pkg/cortex.(*Cortex).Run\n\t/__w/cortex/cortex/pkg/cortex/cortex.go:398\nmain.main\n\t/__w/cortex/cortex/cmd/cortex/main.go:196\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1172\nerror initialising module: ingester-service\ngithub.com/cortexproject/cortex/pkg/util/modules.(*Manager).initModule\n\t/__w/cortex/cortex/pkg/util/modules/modules.go:108\ngithub.com/cortexproject/cortex/pkg/util/modules.(*Manager).InitModuleServices\n\t/__w/cortex/cortex/pkg/util/modules/modules.go:78\ngithub.com/cortexproject/cortex/pkg/cortex.(*Cortex).Run\n\t/__w/cortex/cortex/pkg/cortex/cortex.go:398\nmain.main\n\t/__w/cortex/cortex/cmd/cortex/main.go:196\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1172"

Which issue(s) this PR fixes:
Fixes: #4733 #4728

Checklist

  • [NA] Tests updated
  • [NA] Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Copy link
Collaborator

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Great work 🔥

@alanprot alanprot merged commit f5b08ea into master Dec 15, 2022
@alanprot alanprot deleted the multi-arch branch December 15, 2022 16:34
alanprot added a commit that referenced this pull request Dec 18, 2022
* wip

Signed-off-by: Alan Protasio <approtas@amazon.com>

* est

Signed-off-by: Alan Protasio <approtas@amazon.com>

* quay

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using different repository for the archteture specific images

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing linux repos

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing manifes on both platforms

Signed-off-by: Alan Protasio <approtas@amazon.com>

* enabling deploy stage only on master

Signed-off-by: Alan Protasio <approtas@amazon.com>

* changelog

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using amd64 image for e2e teests

Signed-off-by: Alan Protasio <approtas@amazon.com>

Signed-off-by: Alan Protasio <approtas@amazon.com>
alanprot added a commit that referenced this pull request Dec 18, 2022
* wip

Signed-off-by: Alan Protasio <approtas@amazon.com>

* est

Signed-off-by: Alan Protasio <approtas@amazon.com>

* quay

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using different repository for the archteture specific images

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing linux repos

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing manifes on both platforms

Signed-off-by: Alan Protasio <approtas@amazon.com>

* enabling deploy stage only on master

Signed-off-by: Alan Protasio <approtas@amazon.com>

* changelog

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using amd64 image for e2e teests

Signed-off-by: Alan Protasio <approtas@amazon.com>

Signed-off-by: Alan Protasio <approtas@amazon.com>
alanprot added a commit that referenced this pull request Dec 18, 2022
* wip

Signed-off-by: Alan Protasio <approtas@amazon.com>

* est

Signed-off-by: Alan Protasio <approtas@amazon.com>

* quay

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using different repository for the archteture specific images

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing linux repos

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing manifes on both platforms

Signed-off-by: Alan Protasio <approtas@amazon.com>

* enabling deploy stage only on master

Signed-off-by: Alan Protasio <approtas@amazon.com>

* changelog

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using amd64 image for e2e teests

Signed-off-by: Alan Protasio <approtas@amazon.com>

Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
alanprot added a commit that referenced this pull request Dec 18, 2022
* wip

Signed-off-by: Alan Protasio <approtas@amazon.com>

* est

Signed-off-by: Alan Protasio <approtas@amazon.com>

* quay

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using different repository for the archteture specific images

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing linux repos

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing manifes on both platforms

Signed-off-by: Alan Protasio <approtas@amazon.com>

* enabling deploy stage only on master

Signed-off-by: Alan Protasio <approtas@amazon.com>

* changelog

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using amd64 image for e2e teests

Signed-off-by: Alan Protasio <approtas@amazon.com>

Signed-off-by: Alan Protasio <approtas@amazon.com>
alanprot added a commit that referenced this pull request Dec 18, 2022
* wip

Signed-off-by: Alan Protasio <approtas@amazon.com>

* est

Signed-off-by: Alan Protasio <approtas@amazon.com>

* quay

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using different repository for the archteture specific images

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing linux repos

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing manifes on both platforms

Signed-off-by: Alan Protasio <approtas@amazon.com>

* enabling deploy stage only on master

Signed-off-by: Alan Protasio <approtas@amazon.com>

* changelog

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using amd64 image for e2e teests

Signed-off-by: Alan Protasio <approtas@amazon.com>

Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
@rafilkmp3
Copy link

Hi how I can use the new arm images ? I tried to use latest v.1.14 default from helm and only seens to be builded for x86

podman image inspect quay.io/cortexproject/cortex:v1.14.0 | jq -r '.[] | .Architecture'
amd64

@alanprot
Copy link
Member Author

It was built only on 1.14.1

soonping-amzn added a commit to soonping-amzn/cortex-soonping-amzn that referenced this pull request Feb 24, 2023
alexqyle pushed a commit to alexqyle/cortex that referenced this pull request May 2, 2023
* wip

Signed-off-by: Alan Protasio <approtas@amazon.com>

* est

Signed-off-by: Alan Protasio <approtas@amazon.com>

* quay

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using different repository for the archteture specific images

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing linux repos

Signed-off-by: Alan Protasio <approtas@amazon.com>

* testing manifes on both platforms

Signed-off-by: Alan Protasio <approtas@amazon.com>

* enabling deploy stage only on master

Signed-off-by: Alan Protasio <approtas@amazon.com>

* changelog

Signed-off-by: Alan Protasio <approtas@amazon.com>

* using amd64 image for e2e teests

Signed-off-by: Alan Protasio <approtas@amazon.com>

Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alex Le <leqiyue@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish and test arm docker images for every PR
3 participants