6
6
ARG UBUNTU_VERSION=20.04
7
7
8
8
# Base image
9
- FROM nvidia/opengl:1.0-glvnd-devel-ubuntu$UBUNTU_VERSION
9
+ # FROM nvidia/opengl:1.0-glvnd-devel-ubuntu$UBUNTU_VERSION
10
+ FROM ubuntu:$UBUNTU_VERSION
11
+
12
+ ARG TARGETPLATFORM
10
13
11
14
# Ubuntu version
12
15
# ENV UBUNTU_DISTRIB_CODENAME "focal"
@@ -49,17 +52,31 @@ RUN echo 'net.core.rmem_default=10485760' >> /etc/sysctl.conf
49
52
# set default LCM_VERSION
50
53
ENV LCM_VERSION '1.5.0'
51
54
55
+ # On at least arm/v7, wget throws an error stating that
56
+ # it can not verify github.com's certificate
57
+ # RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
58
+ # update-ca-certificates -f; \
59
+ # fi
60
+
61
+
62
+ # CMake is unable to find glib-2.0 libraries
63
+ # using the LCM-provided cmake/FindGLib2.cmake
64
+ # RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
65
+ # ENV GLIB_PATH=/usr/lib/arm-linux-gnueabihf/
66
+ # ENV Python_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.8.so
67
+ # fi
68
+
52
69
# install LCM
53
70
RUN \
54
71
# pull lcm
55
72
# Zip files are prepended with 'v'
56
73
wget https://github.com/lcm-proj/lcm/archive/refs/tags/v$LCM_VERSION.zip && \
57
- # open up the source
74
+ # open up the source
58
75
unzip v$LCM_VERSION.zip && \
59
- # configure, build, install, and configure LCM
76
+ # configure, build, install, and configure LCM
60
77
cd lcm-$LCM_VERSION && mkdir build && cd build && cmake ../ && make install && ldconfig && \
61
- # delete source code
78
+ # delete source code
62
79
cd / && rm -rf v$LCM_VERSION.zip lcm-$LCM_VERSION
63
80
64
81
# configure pkgconfig to find LCM
65
- ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$LCM_INSTALL_DIR/pkgconfig
82
+ ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$LCM_INSTALL_DIR/pkgconfig
0 commit comments