-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from alliander-opensource/feat/add-docker-compose
feat: add docker compose and devcontainers for running images
- Loading branch information
Showing
3 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//SPDX-FileCopyrightText: Alliander N. V. | ||
// | ||
//SPDX-License-Identifier: Apache-2.0 | ||
{ | ||
"name": "Franka", | ||
// Update the 'dockerComposeFile' list if you have more compose files or use different names. | ||
"dockerComposeFile": "docker-compose.yml", | ||
// The 'service' property is the name of the service for the container that VS Code should | ||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. | ||
"service": "franka", | ||
// The 'workspaceFolder' property is the path VS Code should open by default when | ||
// connected. Corresponds to a volume mount in .devcontainer/docker-compose.yml | ||
"workspaceFolder": "/home/${localEnv:USER}/docker_ws/src", | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": {}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [], | ||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. | ||
// "shutdownAction": "none", | ||
// Uncomment the next line to use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "uname -a", | ||
// Comment out to connect as root instead. To add a non-root user, see: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "${localEnv:USER}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# SPDX-FileCopyrightText: Alliander N. V. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
services: | ||
franka: | ||
image: franka | ||
container_name: franka | ||
network_mode: host | ||
privileged: true | ||
mem_limit: 6gb | ||
volumes: | ||
- "/tmp/.X11-unix:/tmp/.X11-unix" | ||
- "${HOME}/.vscode-server:${HOME}/.vscode-server" | ||
- "${HOME}/docker_ws:${HOME}/docker_ws" | ||
- "/dev:/dev" | ||
environment: | ||
- "DISPLAY" | ||
- "RCUTILS_COLORIZED_OUTPUT=1" | ||
tty: true | ||
mobile_manipulator: | ||
image: mobile_manipulator | ||
container_name: mobile_manipulator | ||
network_mode: host | ||
privileged: true | ||
mem_limit: 6gb | ||
volumes: | ||
- "/tmp/.X11-unix:/tmp/.X11-unix" | ||
- "${HOME}/.vscode-server:${HOME}/.vscode-server" | ||
- "${HOME}/docker_ws:${HOME}/docker_ws" | ||
- "/dev/input:/dev/input" | ||
environment: | ||
- "DISPLAY" | ||
- "RCUTILS_COLORIZED_OUTPUT=1" | ||
tty: true | ||
panther: | ||
image: panther | ||
container_name: panther | ||
network_mode: host | ||
privileged: true | ||
mem_limit: 6gb | ||
volumes: | ||
- "/tmp/.X11-unix:/tmp/.X11-unix" | ||
- "${HOME}/.vscode-server:${HOME}/.vscode-server" | ||
- "${HOME}/docker_ws:${HOME}/docker_ws" | ||
- "/dev/input:/dev/input" | ||
environment: | ||
- "DISPLAY" | ||
- "RCUTILS_COLORIZED_OUTPUT=1" | ||
tty: true | ||
ros2: | ||
image: ros2 | ||
container_name: ros2 | ||
network_mode: host | ||
privileged: true | ||
mem_limit: 6gb | ||
volumes: | ||
- "/tmp/.X11-unix:/tmp/.X11-unix" | ||
- "${HOME}/.vscode-server:${HOME}/.vscode-server" | ||
- "${HOME}/docker_ws:${HOME}/docker_ws" | ||
environment: | ||
- "DISPLAY" | ||
- "RCUTILS_COLORIZED_OUTPUT=1" | ||
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters