-
Notifications
You must be signed in to change notification settings - Fork 4
/
jammy.dockerfile
26 lines (22 loc) · 955 Bytes
/
jammy.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:22.04
# Install curl and useful transport
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && yes "Y" \
| apt-get install --no-install-recommends curl apt-transport-https sudo \
ca-certificates libgtest-dev libgflags-dev python3.10-dev python-is-python3 \
libyaml-cpp-dev \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean all
# install drake.
ENV DRAKE_URL=https://github.com/RobotLocomotion/drake/releases/download/v1.19.0/drake-20230713-jammy.tar.gz
RUN curl -L -o drake.tar.gz $DRAKE_URL
RUN tar -xzf drake.tar.gz -C /opt && rm drake.tar.gz
RUN apt-get update \
&& yes "Y" | bash /opt/drake/share/drake/setup/install_prereqs \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean all
## install cppzmq
COPY scripts/install_cppzmq.sh /install_dependencies.sh
RUN /bin/bash /install_dependencies.sh
# put drake on the python path.
ENV PYTHONPATH /opt/drake/lib/python3.10/site-packages:$PYTHONPATH