Commit 07915b2b authored by lebu's avatar lebu

update dockerfile, rename build script

parent c63a0e6e
Pipeline #188621 passed with stage
in 4 minutes and 16 seconds
......@@ -5,9 +5,8 @@ FROM carlasim/carla:$CARLA_VERSION$CARLA_BUILD as carla
FROM ros:kinetic-ros-base
RUN apt-get update \
&& apt-get install -y libpng16-16 ros-kinetic-ackermann-msgs ros-kinetic-derived-object-msgs ros-kinetic-tf ros-kinetic-cv-bridge --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq \
&& apt-get -qq install -y --allow-unauthenticated libpng16-16 ros-kinetic-ackermann-msgs ros-kinetic-derived-object-msgs ros-kinetic-tf ros-kinetic-cv-bridge --no-install-recommends
ARG CARLA_VERSION
......@@ -23,16 +22,15 @@ RUN cp -r /opt/carla-ros-bridge/git/carla_msgs /opt/carla-ros-bridge/src/carla_m
RUN cp -r /opt/carla-ros-bridge/git/carla_ego_vehicle /opt/carla-ros-bridge/src/carla_ego_vehicle
RUN cp -r /opt/carla-ros-bridge/git/carla_waypoint_publisher /opt/carla-ros-bridge/src/carla_waypoint_publisher
# REPLACE WITH YOUR IP
RUN sed -i 's/localhost/192.168.178.39/g' /opt/carla-ros-bridge/src/carla_ros_bridge/config/settings.yaml
# REPLACE WITH YOUR IP if not used on linux with default docker network
RUN sed -i 's/localhost/172.17.0.1/g' /opt/carla-ros-bridge/src/carla_ros_bridge/config/settings.yaml
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /opt/carla-ros-bridge; catkin_make -DCMAKE_BUILD_TYPE=Release install'
# replace entrypoint
RUN cp -r /opt/carla-ros-bridge/git/docker/content/ros_entrypoint.sh /
# Install Emam & Java
RUN apt-get update \
&& apt-get install -y unzip g++ libopenblas-dev libhdf5-serial-dev cmake maven default-jdk --no-install-recommends \
RUN apt-get install -y -qq --allow-unauthenticated unzip g++ libopenblas-dev libhdf5-serial-dev cmake maven default-jdk --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV CMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}:/opt/carla-ros-bridge/devel/share/carla_msgs/cmake"
ENV PATH="/usr/lib/x86_64-linux-gnu/:${PATH}"
......
#!/bin/sh
curDir=$(readlink -f `dirname $0`)
# (c) https://github.com/MontiCore/monticore
docker build -t carla-ros-bridge -f Dockerfile ./.. "$@"
docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/carlacomponents/emam-carla-ros-bridge:latest -f Dockerfile ./.. "$@"
curDir=$(readlink -f `dirname $0`)
# (c) https://github.com/MontiCore/monticore
docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/carlacomponents/emam-carla-ros-bridge:latest -f Dockerfile ./.. "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment