Build most linux container images as multi-arch including arm64#11341
Merged
chadlwilson merged 1 commit intogocd:masterfrom Mar 4, 2023
Merged
Build most linux container images as multi-arch including arm64#11341chadlwilson merged 1 commit intogocd:masterfrom
chadlwilson merged 1 commit intogocd:masterfrom
Conversation
- Alpine is excluded for now, due to issues with Tanuki wrapper requiring glibc to work on Alpine, and alpine-glibc packages not being available. - Requires docker buildx plugin to be installed (cleaner errors if not available would probably be useful) - Built tarballs for all images are changed to OCI format/layout. Since layers are already gzipped here, we remove the additional gzipping which adds little value but adds complexity - Archived tarballs cannot be directly docker loaded as docker load only understands its native format. Needs a tool like regclient/regctl to export as docker format for docker load so this logic needs incorporation into later steps (functional tests, code signing and docker hub push) - Currently, only the native build platform image is sanity-checked by starting it now when building multiple archs. Starting cross-platform via emulation seems unreliable most of the time - at least locally.
Member
Author
|
Example manifest for agents looks like [
{
"file": "gocd-agent-gocd-agent-alpine-3.14-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-alpine-3.14",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64"
]
},
{
"file": "gocd-agent-gocd-agent-alpine-3.15-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-alpine-3.15",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64"
]
},
{
"file": "gocd-agent-gocd-agent-alpine-3.16-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-alpine-3.16",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64"
]
},
{
"file": "gocd-agent-gocd-agent-alpine-3.17-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-alpine-3.17",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64"
]
},
{
"file": "gocd-agent-gocd-agent-centos-7-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-centos-7",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-centos-8-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-centos-8",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-centos-9-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-centos-9",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-debian-10-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-debian-10",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-debian-11-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-debian-11",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-docker-dind-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-docker-dind",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64"
]
},
{
"file": "gocd-agent-gocd-agent-ubuntu-18.04-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-ubuntu-18.04",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-ubuntu-20.04-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-ubuntu-20.04",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
},
{
"file": "gocd-agent-gocd-agent-ubuntu-22.04-v23.1.0-16028.tar",
"format": "oci",
"imageName": "gocd-agent-ubuntu-22.04",
"tag": "v23.1.0-16028",
"platforms": [
"linux/amd64",
"linux/arm64"
]
}
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related tasks downstream