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

build, deploy: Add support for multi-architecture base images #2145

Closed
wants to merge 1 commit into from

Conversation

pdcastro
Copy link
Contributor

Resolves: #1408
Resolves: #1508
Change-type: minor

@pdcastro pdcastro force-pushed the 1408-1508-docker-multiarch-images branch from a3f183d to d6edd64 Compare December 21, 2020 23:03
lib/utils/qemu.ts Outdated Show resolved Hide resolved
lib/utils/qemu.ts Outdated Show resolved Hide resolved
@pdcastro pdcastro marked this pull request as ready for review December 22, 2020 14:52
@pdcastro pdcastro requested a review from a team as a code owner December 22, 2020 14:52
@@ -256,7 +256,7 @@
"resin-compose-parse": "^2.1.2",
"resin-doodles": "^0.1.1",
"resin-image-fs": "^5.0.9",
"resin-multibuild": "^4.7.2",
"resin-multibuild": "^4.10.0",
Copy link
Contributor Author

@pdcastro pdcastro Dec 22, 2020

Choose a reason for hiding this comment

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

This one line is the "core feature implementation" really... The rest of the PR is about printing warns and hints to the user about Docker compatibility and usage of the --pull and --emulated options in combination with multiarch base images.

lib/utils/qemu.ts Outdated Show resolved Hide resolved
@pdcastro pdcastro added the versionbot/pr-draft Draft PR - Don't merge this PR automatically label Dec 22, 2020
@ab77
Copy link
Contributor

ab77 commented Jan 31, 2021

@pdcastro @srlowe is fix this blocked by anything? I am also affected by this, via #2174 cc @klutchell

@pdcastro
Copy link
Contributor Author

pdcastro commented Feb 2, 2021

pdcastro srlowe is fix this blocked by anything? I am also affected by this, via #2174 cc klutchell

I've come across complications... Started an FD thread and pinged you guys here:
https://www.flowdock.com/app/rulemotion/i-cli/threads/RuSu1KiWOn62xaGy7O2sn8m8BUc

@jellyfish-bot
Copy link

[rahul-thakoor] This pull request has attached support thread https://jel.ly.fish/f0910369-0b58-48f3-9214-1e6fe0d16388

@pdcastro pdcastro force-pushed the 1408-1508-docker-multiarch-images branch from d6edd64 to 7f93d78 Compare March 7, 2021 14:30
@pdcastro pdcastro marked this pull request as draft March 7, 2021 14:32
@pdcastro pdcastro removed the versionbot/pr-draft Draft PR - Don't merge this PR automatically label Mar 7, 2021
@pdcastro pdcastro force-pushed the 1408-1508-docker-multiarch-images branch from 7f93d78 to 92f48aa Compare March 7, 2021 17:15
);
}

/** Detect whether the docker daemon is Docker Desktop (Windows or Mac) */
export async function isDockerDesktop(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function was extracted / refactored from lib/utils/qemu.ts.

support for multi-architecture base images to be lost.
* Manually run the 'docker pull' command for all base images listed in your
Dockerfile(s) prior to executing the 'balena build' or 'balena deploy'
commands, and then do not use the balena CLI's '--pull' flag.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just learned that this advice is insufficient / incorrect with Docker v20.10.4 and v20.10.5. This PR will require further changes. :-/
https://www.flowdock.com/app/rulemotion/i-cli/threads/RuSu1KiWOn62xaGy7O2sn8m8BUc

@pdcastro
Copy link
Contributor Author

Closing in favour of #2301

@pdcastro pdcastro closed this Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants