Skip to content

Commit

Permalink
refine simulator dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt committed Mar 14, 2024
1 parent 61e297f commit 03305da
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docker/autoware-openadk/services/simulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,11 @@ RUN --mount=type=ssh \

RUN chmod -R 777 /autoware/install/

# Bugfix rviz2 black-screen problem with some nvidia drivers: https://github.com/ros2/rviz/issues/948
RUN apt update && apt install -y software-properties-common && add-apt-repository ppa:kisak/kisak-mesa && apt install -y \
libegl-mesa0 libegl1-mesa-dev libgbm-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri libglapi-mesa libglx-mesa0
# Copy bash aliases for simulation
# TO-DO

# Create entrypoint
# hadolint ignore=DL3059
COPY docker/autoware-openadk/etc/ros_entrypoint.sh /ros_entrypoint.sh
RUN chmod +x /ros_entrypoint.sh

# Copy simulation files
RUN mkdir -p /autoware/scenario-sim
COPY docker/autoware-openadk/etc/simulation/ /autoware/scenario-sim/

# Copy bash aliases
COPY docker/autoware-openadk/services/simulator/.bash_aliases /root/.bash_aliases

# Create entrypoint
# hadolint ignore=DL3059
RUN echo "source /autoware/install/setup.bash" > /etc/bash.bashrc

ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]

0 comments on commit 03305da

Please sign in to comment.