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 minimal Dockerfile #198

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yuxiang-gao
Copy link

This pull request adds a minimal workable Dockerfile to run Genesis.

To run it, first build the docker:

docker build -t genesis .

Then run it using the following command:

xhost +

docker run --gpus all --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix genesis python examples/tutorials/hello_genesis.py

Signed-off-by: Yuxiang Gao <[email protected]>
@zhouxian
Copy link
Collaborator

Thank you! Could you add something to readme with explanations?

@yuxiang-gao
Copy link
Author

Thank you! Could you add something to readme with explanations?

Sure, happy to. I'll ping you once I'm finished.

@antoinebou12
Copy link

antoinebou12 commented Dec 22, 2024

Can you add a docker-compose

https://github.com/ETSTribology/Genesis/blob/main/Dockerfile

my version

services:
  genesis:
    build:
      context: .
      dockerfile: Dockerfile
    image: genesis:latest
    runtime: nvidia
    environment:
      - DISPLAY=${DISPLAY}
    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix
    command: python examples/tutorials/hello_genesis.py
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]

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