You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
459 B
Python
9 lines
459 B
Python
2 years ago
|
from invoke import task
|
||
|
|
||
|
@task
|
||
|
def start_dev(c):
|
||
|
"""Starts the """
|
||
|
print("Starting the developer environment...")
|
||
|
# c.run("docker-compose -f docker-compose.yml up -d", pty=True))
|
||
|
c.run("xhost local:root")
|
||
|
c.run("docker run --privileged -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule='c 189:* rmw' -e DISPLAY=$DISPLAY -v $(pwd)/src/:/code -v /tmp/.X11-unix:/tmp/.X11-unix --network host --rm -i -t luxonis/depthai:latest bash", pty=True)
|