diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index adb6892f..00000000 --- a/Dockerfile +++ /dev/null @@ -1,51 +0,0 @@ -# Create an image configured with ROS2 including colcon, Nodejs and rclnodejs source -# Supported ARGS: -# ROS_DISTRO = [foxy, galactic, humble, rolling], default=rolling -# NODE_MAJOR_VER = [12, 14, 16, 18, 19], default=19 -# BRANCH = rclnodejs git branch, default=develop -# -# examples: -# -# Build image named 'rclnodejs' and run it with the rclnode test suite -# -# docker build -t rclnodejs . -# docker run -it rclnodejs npm test -# -# -# Build an image for a specific branch of rclnodejs, version of ROS2 and Nodejs use: -# -# docker build -t --build-arg DISTRO=galactic . -# docker build -t \ -# --build-arg ROS_DISTRO=humble \ -# --build-arg BRANCH=humble-hawksbill \ -# --build-arg NODE_MAJOR_VER=18 . -# -# -# Build and run: -# docker run -it --rm $(docker build -q .) -# - -# use -ARG ROS_DISTRO=rolling -FROM ros:${ROS_DISTRO} - -# Install dependencies, including Nodejs -ARG NODE_MAJOR_VER=19 -RUN apt-get update -y \ - && apt-get install -y curl sudo \ - && curl -fsSL https://deb.nodesource.com/setup_${NODE_MAJOR_VER}.x | sudo -E bash - \ - && apt-get install -y nodejs - -# clone a branch of the rclnodejs repo, build addon libs, generate corresponding JS msgs -ARG BRANCH=develop -WORKDIR /rosdev -SHELL ["/bin/bash", "-c"] -RUN source /opt/ros/${ROS_DISTRO}/setup.bash \ - && apt install ros-${ROS_DISTRO}-test-msgs \ - && apt install ros-${ROS_DISTRO}-example-interfaces \ - && git clone -b ${BRANCH} --single-branch https://github.com/RobotWebTools/rclnodejs.git \ - && cd /rosdev/rclnodejs \ - && npm i - -WORKDIR /rosdev/rclnodejs -CMD [ "bash" ] diff --git a/README.md b/README.md index 046a9d93..9302ed6f 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ rclnodejs.init().then(() => { - [Node.js](https://nodejs.org/en/) version >= 16.13.0 - [ROS 2 SDK](https://docs.ros.org/en/jazzy/Installation.html) - **Don't forget to [source the setup file](https://docs.ros.org/en/jazzy/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html#source-the-setup-files)** +> **Docker:** Use official ROS images from [hub.docker.com/\_/ros](https://hub.docker.com/_/ros) for containerized builds. + ### Install rclnodejs ```bash diff --git a/scripts/npmjs-readme.md b/scripts/npmjs-readme.md index 03646987..e320085d 100644 --- a/scripts/npmjs-readme.md +++ b/scripts/npmjs-readme.md @@ -23,6 +23,8 @@ rclnodejs.init().then(() => { - [Node.js](https://nodejs.org/en/) version >= 16.13.0 - [ROS 2 SDK](https://docs.ros.org/en/jazzy/Installation.html) - **Don't forget to [source the setup file](https://docs.ros.org/en/jazzy/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html#source-the-setup-files)** +> **Docker:** Use official ROS images from [hub.docker.com/\_/ros](https://hub.docker.com/_/ros) for containerized builds. + ### Install rclnodejs ```bash