update docker and fix depends

This commit is contained in:
Ilya Uraev 2023-12-12 00:54:55 +03:00
parent d32f44682d
commit 0588a5f6c6
3 changed files with 20 additions and 18 deletions

View file

@ -2,26 +2,29 @@ FROM osrf/ros:humble-desktop
ARG WSDIR=rbs_ws
ENV RBS_ASSEMBLY_DIR=~/assembly
ENV IGN_GAZEBO_RESOURCE_PATH=/${WSDIR}/install/rbs_schunk_40_n_n_b/share/:~/${WSDIR}/install/rbs_simulation/share/rbs_simulation/
WORKDIR /${WSDIR}
ENV RBS_ASSEMBLY_DIR=/assembly
ENV IGN_GAZEBO_RESOURCE_PATH=/${WSDIR}/install/rbs_simulation/share/rbs_simulation/
RUN apt update && apt install -y \
git \
python3-pip \
lsb-release \
wget \
gnupg \
libgoogle-glog-dev
RUN pip install vcstool && \
wget http://www.lua.org/ftp/lua-5.3.1.tar.gz &&\
tar zxf lua-5.3.1.tar.gz &&\
sudo make -C lua-5.3.1 linux && sudo make -C lua-5.3.1 install
wget \
gnupg
RUN pip install vcstool
WORKDIR /libs
RUN wget https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.tar.gz &&\
tar -xf v3.11.3.tar.gz &&\
cd json-3.11.3 &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
make install
WORKDIR /${WSDIR}
#Install Gazebo Fortres
RUN wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg &&\
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null &&\
@ -30,7 +33,6 @@ RUN wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pk
# Install RBS
COPY . src/robossembler-ros2/
RUN ls -la src/
RUN vcs import src/. < src/robossembler-ros2/rbs.repos
RUN apt update && \