Skip to content

Commit

Permalink
build only selected packages to enable security. (#325)
Browse files Browse the repository at this point in the history
* build only selected packages to enable security.

Signed-off-by: Tomoya Fujita <[email protected]>

* ROS2 should be ROS 2.

Signed-off-by: Tomoya.Fujita <[email protected]>

---------

Signed-off-by: Tomoya Fujita <[email protected]>
Signed-off-by: Tomoya.Fujita <[email protected]>
(cherry picked from commit 93749a1)
  • Loading branch information
fujitatomoya authored and mergify[bot] committed Jan 28, 2025
1 parent 3dc49ef commit 8cdf150
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions SROS2_Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Install from debian packages

First install ROS2 from binaries following [these instructions](https://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html).
First install ROS 2 from binaries following [these instructions](https://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html).

Setup your environment following [these instructions](https://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html#environment-setup).

Expand All @@ -19,11 +19,11 @@ You will need to have openssl installed on your machine:
sudo apt update && sudo apt install libssl-dev
```

First install ROS2 from source following [these instructions](https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html).
First install ROS 2 from source following [these instructions](https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html).

Note: Fast-RTPS requires an additional CMake flag to build the security plugins so the colcon invocation needs to be modified to pass:
```bash
colcon build --symlink-install --cmake-args -DSECURITY=ON
colcon build --symlink-install --cmake-args -DSECURITY=ON --packages-select fastrtps rmw_fastrtps_cpp rmw_fastrtps_dynamic_cpp rmw_fastrtps_shared_cpp
```

### Additional configuration for RTI Connext
Expand Down
6 changes: 3 additions & 3 deletions SROS2_MacOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For convenience you can add this export to your bash_profile.

### Install from binaries

First install ROS2 from binaries following [these instructions](https://docs.ros.org/en/rolling/Installation/macOS-Install-Binary.html).
First install ROS 2 from binaries following [these instructions](https://docs.ros.org/en/rolling/Installation/macOS-Install-Binary.html).


Setup your environment:
Expand All @@ -37,11 +37,11 @@ export OPENSSL_ROOT_DIR=`brew --prefix openssl`
```
For convenience you can add this export to your bash_profile.

Install ROS2 from source following [these instructions](https://docs.ros.org/en/rolling/Installation/macOS-Development-Setup.html).
Install ROS 2 from source following [these instructions](https://docs.ros.org/en/rolling/Installation/macOS-Development-Setup.html).

Note: Fast-RTPS requires an additional CMake flag to build the security plugins so the colcon invocation needs to be modified to pass:
```bash
colcon build --symlink-install --cmake-args -DSECURITY=ON
colcon build --symlink-install --cmake-args -DSECURITY=ON --packages-select fastrtps rmw_fastrtps_cpp rmw_fastrtps_dynamic_cpp rmw_fastrtps_shared_cpp
```

Setup your environment:
Expand Down
8 changes: 4 additions & 4 deletions SROS2_Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

### Install ROS2

#### Install ROS2 from binaries
#### Install ROS 2 from binaries

Please follow [these instructions](https://docs.ros.org/en/rolling/Installation/Windows-Install-Binary.html).

#### Install ROS2 from source
#### Install ROS 2 from source

Please follow [these instructions](https://docs.ros.org/en/rolling/Installation/Windows-Development-Setup.html) and stop at the beginning of "Build the code" section

To build the ROS2 code with security extensions, call:
To build the ROS 2 code with security extensions, call:
```bat
colcon build --cmake-args -DSECURITY=ON
colcon build --cmake-args -DSECURITY=ON --packages-select fastrtps rmw_fastrtps_cpp rmw_fastrtps_dynamic_cpp rmw_fastrtps_shared_cpp
```

### Install OpenSSL
Expand Down

0 comments on commit 8cdf150

Please sign in to comment.