Skip to content

Makefile,build_docker.sh: build dev images for linux/amd64 only, allow to configure target platform - #10806

Merged
irbekrm merged 1 commit into
mainfrom
irbekrm/mkctr_target
Jan 10, 2024
Merged

irbekrm merged 1 commit into
mainfrom
irbekrm/mkctr_target

Conversation

@irbekrm

@irbekrm irbekrm commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

Build dev tailscale and k8s-operator images for linux/amd64 only by default, make it possible to configure target build platform via PLATFORM var.

To make it easier for folks who are working on containerboot and operator and build the images frequently.

Updates#cleanup

Build dev tailscale and k8s-operator images for linux/amd64 only by default,
make it possible to configure target build platform via PLATFORM var.

Updates#cleanup

Signed-off-by: Irbe Krumina <[email protected]>
Comment thread build_docker.sh
TARGET="${TARGET:-${DEFAULT_TARGET}}"
TAGS="${TAGS:-${DEFAULT_TAGS}}"
BASE="${BASE:-${DEFAULT_BASE}}"
PLATFORM="${PLATFORM:-}" # default to all platforms

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Our build infra calls this script (not the make targets) and defaulting to "" means that we keep the existing behaviour where mkctr builds for all platforms it supports https://github.com/tailscale/mkctr?tab=readme-ov-file#usage

@irbekrm
irbekrm requested review from knyar and maisem January 10, 2024 19:08
Comment thread Makefile
SYNO_DSM ?= "7"
TAGS ?= "latest"

PLATFORM ?= "flyio" ## flyio==linux/amd64. Set to "" to build all platforms.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is the only supported platform, might want to add support for arbitrary platforms to mkctr at some point.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense 👍🏼 I added the comment in case anyone needs to build arm, they would at least know how to build for all.

@irbekrm
irbekrm merged commit ca48db0 into main Jan 10, 2024
@irbekrm
irbekrm deleted the irbekrm/mkctr_target branch January 10, 2024 19:19
kari-ts pushed a commit that referenced this pull request Jan 12, 2024
Build dev tailscale and k8s-operator images for linux/amd64 only by default,
make it possible to configure target build platform via PLATFORM var.

Updates#cleanup

Signed-off-by: Irbe Krumina <[email protected]>
Asutorufa pushed a commit to Asutorufa/tailscale that referenced this pull request Jan 19, 2024
…ale#10806)

Build dev tailscale and k8s-operator images for linux/amd64 only by default,
make it possible to configure target build platform via PLATFORM var.

Updates#cleanup

Signed-off-by: Irbe Krumina <[email protected]>
chen8945 pushed a commit to Ckid-Home/tailscale that referenced this pull request Jul 31, 2024
…ale#10806)

Build dev tailscale and k8s-operator images for linux/amd64 only by default,
make it possible to configure target build platform via PLATFORM var.

Updates#cleanup

Signed-off-by: Irbe Krumina <[email protected]>
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.

2 participants