Skip to content
Snippets Groups Projects
Commit 8dd26ace authored by Malte Laurin Matthey's avatar Malte Laurin Matthey
Browse files

add run executable for Windows

parent 4743943c
No related branches found
No related tags found
No related merge requests found
run.ps1 0 → 100644
# Navigate to the .devcontainer directory
cd "$(Join-Path $PSScriptRoot '.devcontainer')"
# Set the DISPLAY environment variable to the host's address
$env:DISPLAY="host.docker.internal:0.0"
# Check if NVIDIA GPU is present
if (Get-WmiObject Win32_VideoController | Where-Object { $_.Name -like "*NVIDIA*" }) {
# docker run -it `
# --gpus all `
# --env-file .env \
# --env="DISPLAY=$env:DISPLAY" `
# container-ros-noetic-moveit-panda /bin/bash
echo "DISPLAY1=$env:DISPLAY"
} else {
docker run -it ` --env="DISPLAY=$env:DISPLAY" ` --env-file .env container-ros-noetic-moveit-panda /bin/bash
echo "DISPLAY=$env:DISPLAY"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment