You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: all ROS images include a default entrypoint that sources the ROS environment setup before executing the configured command, in this case the demo packages launch file. You can then build and run the Docker image like so:
29
29
30
30
```console
31
-
$ docker build -t my/ros:app.
32
-
$ docker run -it --rm my/ros:app
31
+
$ docker build -t my/ros:installer.
32
+
$ docker run -it --rm my/ros:installer
33
33
[INFO] [launch]: process[talker-1]: started with pid [813]
34
34
[INFO] [launch]: process[listener-2]: started with pid [814]
35
35
[INFO] [talker]: Publishing: 'Hello World: 1'
@@ -146,18 +146,22 @@ The example above uses consists of three sequential stages. The `cacher` stage f
146
146
- Builds and installs for just selected packages amongst workspace
147
147
- Only workspace install artifacts are copied into final layers
148
148
149
-
For more advance examples such as daisy chaining multiple overlay workspaces to improve caching of docker image build layers, using tools such as ccache to accelerate compilation with colcon, or using buildkit to save build time and bandwidth even when dependencies change, the project `Dockerfile`s in the [Navigation2](https://github.com/ros-planning/navigation2) repo are excellent resources.
149
+
For comparison, the resulting `runner`image is similar in size to the earlier `installer` example. This allows you to develop and distribute custom ROS packages without significantly increasing image size compared to pre-built Debian installations:
150
150
151
151
```console
152
-
$ docker image ls ros --format "table {{.Tag}}\t{{.Size}}"
152
+
$ docker image ls my/ros --format "table {{.Tag}}\t{{.Size}}"
153
153
TAG SIZE
154
-
rolling-ros-core 489MB
155
154
installer 504MB
156
155
runner 510MB
157
-
rolling 876MB
158
156
builder 941MB
157
+
$ docker image ls ros --format "table {{.Tag}}\t{{.Size}}"
158
+
TAG SIZE
159
+
rolling-ros-core 489MB
160
+
rolling 876MB
159
161
```
160
162
163
+
For more advance examples such as daisy chaining multiple overlay workspaces to improve caching of docker image build layers, using tools such as ccache to accelerate compilation with colcon, or using buildkit to save build time and bandwidth even when dependencies change, the project `Dockerfile`s in the [Navigation2](https://github.com/ros-planning/navigation2) repo are excellent resources.
164
+
161
165
## Deployment use cases
162
166
163
167
This dockerized image of ROS is intended to provide a simplified and consistent platform to build and deploy distributed robotic applications. Built from the [official Ubuntu image](https://hub.docker.com/_/ubuntu/) and ROS's official Debian packages, it includes recent supported releases for quick access and download. This provides roboticists in research and industry with an easy way to develop, reuse and ship software for autonomous actions and task planning, control dynamics, localization and mapping, swarm behavior, as well as general system integration.
0 commit comments