Hello,
I am tring to make a isaac sim runtime within docker and make it possbile starting with a default python app, then the user can connect the app by streaming client.
Below is my docker configurations by docker-compose, and I’d like to start livestream.py after docker compose up.
However, it does not wrok. Can you please give me some guidance to overcome the issue?
Thank you
docker-compose.yml
version: '3.8'
services:
isaac-sim:
container_name: isaac-sim
image: nvcr.io/nvidia/isaac-sim:2023.1.1
environment:
- ACCEPT_EULA=Y
- PRIVACY_CONSENT=Y
volumes:
- ./store/cache/kit:/isaac-sim/kit/cache:rw
- ./store/cache/ov:/root/.cache/ov:rw
- ./store/cache/pip:/root/.cache/pip:rw
- ./store/cache/glcache:/root/.cache/nvidia/GLCache:rw
- ./store/cache/computecache:/root/.nv/ComputeCache:rw
- ./store/logs:/root/.nvidia-omniverse/logs:rw
- ./store/data:/root/.local/share/ov/data:rw
- ./store/documents:/root/Documents:rw
- ./tmapps:/root/tmapps
command: ["./python.sh", "/root/tmapps/livestream.py"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
network_mode: host
livestream.py
from omni.isaac.kit import SimulationApp
from datetime import datetime
CONFIG = {
"width": 1280,
"height": 720,
"window_width": 1920,
"window_height": 1080,
"headless": True,
"renderer": "RayTracedLighting",
"display_options": 3286, # Set display options to show default grid
}
kit = SimulationApp(launch_config=CONFIG)
from omni.isaac.core.utils.extensions import enable_extension
kit.set_setting("/app/window/drawMouse", True)
kit.set_setting("/app/livestream/proto", "ws")
kit.set_setting("/app/livestream/websocket/framerate_limit", 120)
kit.set_setting("/ngx/enabled", False)
enable_extension("omni.kit.livestream.native")
while kit._app.is_running() and not kit.is_exiting():
current_date = datetime.now()
print(current_date.isoformat())
kit.update()
kit.close()
Regards,
Darien


