Skip to content

Commit 5e3694a

Browse files
Hector AzpuruaHector Azpurua
authored andcommitted
reorganize docker files
1 parent 72fc462 commit 5e3694a

7 files changed

Lines changed: 32 additions & 28 deletions

README.md

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,56 @@ A `development container` (or dev container for short) allows you to use a cont
88
<summary> Details of the services in this container </summary>
99

1010
- ROS1 noetic with a base workspace `/home/ubuntu/ros_ws/`;
11+
- Support for arm64 (jetson orin nano) and amd64 architectures;
12+
- Support for NVIDIA Docker runtime for linux hosts;
1113
- VNC server that allows direct browser access (http://localhost:3080/), so nothing is required to install and use it;
12-
- A `ssh` server, to allow direct access from outside (`ssh ubuntu@localhost -p 3022`)
13-
- A web `vscode` server for easy remote access when deploying it on the robot (http://localhost:3081/)
14-
- Automatic `xcode +` command executed on each attachment for local X forwarding
14+
- A `ssh` server, to allow direct access from outside (`ssh ubuntu@localhost -p 3022`);
15+
- A web `vscode` server for easy remote access when deploying it on the robot (http://localhost:3081/);
16+
- Automatic `xcode +` command executed on each attachment for local X forwarding;
1517
- Custom environment and VScode configurations:
16-
- Open split terminals on launch
17-
- Setup all environments variables automatically for running ROS
18-
- Automatically open the VNC interface in a ROS tab
19-
- Custom .vscode tasks to deploy roscore/rviz
20-
- Custom PS1 (terminal shell)
18+
- Open split terminals on launch;
19+
- Setup all environments variables automatically for running ROS;
20+
- Automatically open the VNC interface in a ROS tab;
21+
- Custom .vscode tasks to deploy roscore/rviz;
22+
- Custom PS1 (terminal shell);
2123
</details>
2224

23-
## Quick usage
24-
25-
- VNC: http://localhost:3080
26-
- VScode: http://localhost:3081
27-
- SSH: `ssh ubuntu@localhost -p 3022`
28-
- user: `ubuntu`
29-
- pass: `ubuntu`
30-
31-
<figure>
32-
<img src="https://github.com/user-attachments/assets/6c085018-0b43-4f0e-9316-20bac5d0d4c1" alt="Fully loaded interface with the VNC client and multiple terminals on the bottom panel" style="width:100%">
33-
<figcaption>Fully loaded interface with the VNC client and multiple terminals on the bottom panel.</figcaption>
34-
</figure>
25+
## Devcontainers installation
3526

36-
## Installation
27+
- Open folder with VScode using the dev containers plugin (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
3728

38-
Open folder with VScode using the dev containers plugin (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
29+
## Quick usage
3930

40-
## Build directy with 'docker compose'
31+
### Start devcontainer on VScode or use `docker compose`
4132

42-
When the host is a linux-based machine:
33+
- When the host is a linux-based machine:
4334
```
4435
BUILDKIT_PROGRESS=plain docker compose -f compose_linux_host.yaml up --build
4536
```
4637

47-
When the host is a macos-based machine:
38+
- When the host is a macos-based machine:
4839
```
4940
BUILDKIT_PROGRESS=plain docker compose -f compose_macos_host.yaml up --build
5041
```
5142

5243
`BUILDKIT_PROGRESS=plain` helps to visualize step by step output of each of the commands.
5344

45+
### Usage
46+
47+
- VNC: http://localhost:3080
48+
- VScode: http://localhost:3081
49+
- SSH: `ssh ubuntu@localhost -p 3022`
50+
- user: `ubuntu`
51+
- pass: `ubuntu`
52+
53+
<figure>
54+
<img src="https://github.com/user-attachments/assets/6c085018-0b43-4f0e-9316-20bac5d0d4c1" alt="Fully loaded interface with the VNC client and multiple terminals on the bottom panel" style="width:50%">
55+
<figcaption>Fully loaded interface with the VNC client and multiple terminals on the bottom panel.</figcaption>
56+
</figure>
57+
5458
## Know issues
5559

56-
- The website preview does open a terminal with a extrange cannot find shell for command XXXX.
60+
- The live preview opens a terminal with a message "cannot find shell for command XXXX". This can be safely ignored.
5761
- The live preview will show a small box with a message "Please reopen the preview". This is fixed in the newest version of the live preview plugin.
5862

5963
## Links/References:

compose_linux_host.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
container_name: ros1_noetic_devel
44
build:
55
context: .
6-
dockerfile: Dockerfile.amd64
6+
dockerfile: docker/Dockerfile.amd64
77
ipc: host
88
pid: host
99
privileged: true

compose_macos_host.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
container_name: ros1_noetic_devel
44
build:
55
context: .
6-
dockerfile: Dockerfile.amd64
6+
dockerfile: docker/Dockerfile.amd64
77
ipc: host
88
pid: host
99
privileged: true

0 commit comments

Comments
 (0)