26 lines
641 B
Plaintext
26 lines
641 B
Plaintext
# syntax=docker/dockerfile:1
|
|
FROM ros:foxy
|
|
|
|
# Update ROS expired key
|
|
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA
|
|
|
|
# Update default packages
|
|
RUN apt-get update
|
|
|
|
# Get Ubuntu packages
|
|
RUN apt-get install -y \
|
|
build-essential \
|
|
curl \
|
|
libclang-dev
|
|
|
|
# Get ros test messages
|
|
RUN apt-get install -y ros-foxy-test-msgs ros-foxy-example-interfaces
|
|
|
|
# Get Rust
|
|
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | bash -s -- -y
|
|
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
|
|
|
|
COPY . /r2r
|
|
RUN chmod +x /r2r/tests/test.bash
|
|
ENTRYPOINT [ "/r2r/tests/test.bash" ]
|