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 Containerfile #39

Merged
merged 1 commit into from
Oct 8, 2023
Merged

add Containerfile #39

merged 1 commit into from
Oct 8, 2023

Conversation

Ptosiek
Copy link
Contributor

@Ptosiek Ptosiek commented Oct 8, 2023

Hey,
It's a tentative try to start using containers for development and avoid having specific MacOS/Windows behavior.
Note that it's using python bookworm image, we can change to bullseye if needed. (Also tried with a pure debian image but the handling of python deps comes with some headaches, it's just easier that way)

I don't have a Mac handy to test so this is probably not working 'as is'.
Found this gist:
https://gist.github.com/cschiewek/246a244ba23da8b9f0e7b11a68bf3285
(If you don't use Windows either, I wouldn't bother much making this work for it)

I'm using podman but docker should work too:

  1. Build with
podman build . -t pizero_bikecomputer
  1. Run with
podman run -v .:/opt -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=:0" pizero_bikecomputer

@hishizuka hishizuka merged commit 8a77feb into hishizuka:master Oct 8, 2023
1 check passed
@hishizuka
Copy link
Owner

Hi @Ptosiek ,
thank you for your PR.
I haven't been able to get it up and running on both docker and podman on macOS yet, but it's a good opportunity so I'll keep trying until I do.

@Ptosiek Ptosiek deleted the use-container branch October 10, 2023 12:02
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