Skip to content

Commit ac8de68

Browse files
author
Murilo Marinho
committed
Using local install file.
1 parent 77f8387 commit ac8de68

3 files changed

Lines changed: 26 additions & 6 deletions

File tree

.devel/sas_ros_jazzy_coppeliasim/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ ENV COPPELIASIM_FILE=$COPPELIASIM_FILE
1414
SHELL ["/bin/bash", "-c"]
1515
ENV BASH_ENV="/etc/bash_env"
1616

17-
# Install CoppeliaSim.
18-
RUN cd ~/git/docker_recipes && git pull
19-
RUN chmod +x ~/git/docker_recipes/dependencies/install_coppeliasim.sh
20-
RUN bash -c '~/git/docker_recipes/dependencies/install_coppeliasim.sh'
17+
RUN chmod +x ~/sas_ws/src/sas/.devel/scripts/setup_sas_ros_jazzy_coppeliasim.sh
18+
RUN cd ~/sas_ws/src/sas/.devel/scripts && bash -c "./setup_sas_ros_jazzy_coppeliasim.sh"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
# Based on https://github.com/Adorno-Lab/docker_recipes/blob/8a94fb42c7fc7579343f83584c00108536366faf/dependencies/install_coppeliasim.sh#L1
3+
4+
apt-get update -q
5+
apt-get install -y --no-install-recommends \
6+
vim tar xz-utils \
7+
libx11-6 libxcb1 libxau6 libgl1-mesa-dev \
8+
xvfb dbus-x11 x11-utils libxkbcommon-x11-0 \
9+
libavcodec-dev libavformat-dev libswscale-dev \
10+
python3 python3-pip python3-venv libraw1394-11 libmpfr6 \
11+
libusb-1.0-0
12+
13+
python3 -m install pyzmq cbor2 --break-system-packages
14+
15+
mkdir -p ~/utils
16+
echo "Downloading ${COPPELIASIM_FILE}."
17+
cd ~/utils || exit 1
18+
curl --progress-bar --remote-name --location \
19+
https://downloads.coppeliarobotics.com/"${COPPELIASIM_RELEASE}"/"${COPPELIASIM_FILE}" || exit 1
20+
tar -xf ~/utils/"${COPPELIASIM_FILE}" \
21+
echo "export COPPELIASIM_PATH='~/utils/CoppeliaSim_Edu_${COPPELIASIM_RELEASE}_${UBUNTU_VERSION}'">> ~/.bashrc
22+
# shellcheck disable=SC2016
23+
# Suppressed because we want to use $COPPELIASIM_PATH in bashrc.
24+
echo 'alias coppeliasim=$COPPELIASIM_PATH/coppeliaSim.sh & '>> ~/.bashrc

.devel/scripts/source_bashrc.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)