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

Add Dockerfile for arm64 #712

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

im-0
Copy link

@im-0 im-0 commented Sep 27, 2023

Image can be built on a normal x86_64 linux PC with installed qemu-aarch64-static and properly configured binfmt_misc by running

docker build --platform linux/arm64/v8 -f Dockerfile-debian-arm64 -t stf .

or

buildah bud --platform linux/arm64/v8 -f Dockerfile-debian-arm64 -t stf .

Image can be built on a normal x86_64 linux PC with installed
qemu-aarch64-static and properly configured binfmt_misc by running

	docker build --platform linux/arm64/v8 -f Dockerfile-debian-arm64 -t stf .

or

	buildah bud --platform linux/arm64/v8 -f Dockerfile-debian-arm64 -t stf .

Signed-off-by: Ivan Mironov <[email protected]>
@koral--
Copy link
Member

koral-- commented Sep 27, 2023

It seems that bundletool installation is missing.
Look at the original Dockerfile: https://github.com/DeviceFarmer/stf/blob/master/Dockerfile#L42

Could you add it?

@im-0
Copy link
Author

im-0 commented Sep 27, 2023

I used https://github.com/DeviceFarmer/stf/blob/master/Dockerfile-debian-armhf as a template and bundletool is not mentioned there. Also, I successfully built an arm64 docker image and tested it - it works just fine. Is bundletool really needed?

@koral--
Copy link
Member

koral-- commented Sep 27, 2023

It is used for AAB installation: 841b092
I haven't noticed that it is missing in Dockerfile-debian-armhf.

OK, I think it's fine to merge this PR.
Bundletool can be added in another one.
Thanks!

@koral-- koral-- merged commit 87d636f into DeviceFarmer:master Sep 27, 2023
im-0 added a commit to im-0/stf that referenced this pull request Sep 29, 2023
This is a minor cosmetic change. Missed this in DeviceFarmer#712.

Signed-off-by: Ivan Mironov <[email protected]>
koral-- added a commit that referenced this pull request Sep 29, 2023
This is a minor cosmetic change. Missed this in #712.

Signed-off-by: Ivan Mironov <[email protected]>
Co-authored-by: Karol Wrótniak <[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