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

Dockerized OpenEB #100

Closed
wants to merge 1 commit into from
Closed

Conversation

mandulaj
Copy link
Contributor

@mandulaj mandulaj commented Dec 7, 2023

As OpenEB requires a large number of dependencies, it can be quite a challenge to install it on a new system. This Dockerfile provides basic Ubuntu 20 and 22 installs of OpenEB with GPU support and allows the SDK to be used without polluting the rest of the system with dependencies.

With some work, a GitHub workflow can be set up that automatically builds the docker images and pushes them to a docker registry. This way getting up to speed with the OpenEB SDK can be as easy as pulling a pre-built image.

@mandulaj
Copy link
Contributor Author

mandulaj commented Dec 7, 2023

There are a couple of things that probably will need changing:

  • Currently, the Dockerfile clones the OpenEB repository from GitHub, but it can also be set up to COPY the current local repository (which would be useful for GitHub Action builds)
  • The container runs as ROOT - this can be changed easily but would require the udev rules installed on Host

@lbristiel-psee
Copy link
Collaborator

Thanks for your contribution @mandulaj ! We will discuss/review this internally and come back to you here as soon as possible.

@esecondy-psee
Copy link

Hello @mandulaj,
Here are some changes we added from your request to our OpenEB. Now is available the Dockerfile.OpenEB that you can get into utils/containers/, we hope it will help you !
To answer about some changes that we would probably need to do, here are a few words that I can give you :
If you have already cloned the openeb on your laptop and by placing yourself into the file, and therefore you need to run the image after building it, you can choose to do this command while running the image : docker run -it -v '/path/on/your/laptop/where/you/cloned/the/file/openeb':'/path/where/you/want/to/put/the/file/openeb' openeb:ubuntu-22.04, it's replacing the COPY or the clone (depending what are your needs, if you have to build and run or just build the image).
For some reasons, we decided to stick the container to run as ROOT, and as well you might see there is not that much things in the Dockerfile as you proposed. This is due to contain the minimum required to build the OpenEB image to make it work, and therefore I'm working on adding it to our CI system, and publish public images of the OpenEB image (that can be found on DockerHub, you can see GitHubActions as well that got changed).
If you have any more questions, I will be pleased to answer you !

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.

3 participants