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

feat(docker): add ARM support #132

Closed
wants to merge 2 commits into from

Conversation

kalioz
Copy link

@kalioz kalioz commented Feb 21, 2023

This will take a little bit longer to build, but works on raspberry pi

solves #69 #23

This will take a little bit longer to build, but works on raspberry pi
@kalioz
Copy link
Author

kalioz commented Feb 21, 2023

tested and running on a raspberry pi 4 - you can use kalioz/youtube-dl-server to test it (cf https://hub.docker.com/r/kalioz/youtube-dl-server/tags)

@manbearwiz
Copy link
Owner

I think this looks really good. Just had a couple comments.

@manbearwiz
Copy link
Owner

@kalioz did you see my comments?

@kalioz
Copy link
Author

kalioz commented Mar 20, 2023

As a matter of facts no :D Where did you put them ?

Copy link
Owner

@manbearwiz manbearwiz left a comment

Choose a reason for hiding this comment

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

Just some clarifications

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Copy link
Owner

Choose a reason for hiding this comment

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

I see there is a v2 available for both of these actions. Should we use those?

RUN apk --update-cache add --virtual build-dependencies gcc libc-dev make \

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN apk --update-cache --no-cache add --virtual build-dependencies build-base gcc libc-dev make rust cargo git alpine-sdk \
Copy link
Owner

Choose a reason for hiding this comment

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

what is rust and cargo needed for?

Copy link
Author

Choose a reason for hiding this comment

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

cargo+rust was needed for one of pip's dependencies; the change to uvicorn instead of uvicorn[standard] may have fixed this, i'll check if i can remove them now

@manbearwiz
Copy link
Owner

@kalioz yeah my mistake, I had left inline comments but didn't submit the review. Can you see them now?

@kalioz
Copy link
Author

kalioz commented Mar 22, 2023

Yeah ! I'll work on them tonight to see if I can make the changes :)

@manbearwiz
Copy link
Owner

Hey, finally got around to making a change to address this. #166

I ended up building on this and now check platform_machine in the requirements.txt so we can still use cython on x86. Thanks for the work investigating the uvicorn dep arm compatibility.

@manbearwiz manbearwiz closed this Oct 18, 2023
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