Skip to content

Commit 01cc21f

Browse files
committed
ensure glibc version matches between userland and carrunner
1 parent a262c23 commit 01cc21f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

car.dockerfile

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
ARG BUILD_TAG=3.10-jammy-build-20230328
2-
FROM balenalib/raspberrypi4-64-ubuntu-python:${BUILD_TAG} as userland
3-
RUN install_packages \
4-
cmake
1+
ARG BASE_IMAGE=kumatea/tensorflow:2.4.1-py39
2+
3+
FROM --platform=linux/arm64/v8 ${BASE_IMAGE} as userland
4+
5+
RUN apt-get update && apt-get install -f -y \
6+
cmake \
7+
build-essential \
8+
git \
9+
sudo
510

611
RUN git clone \
712
https://github.com/msherman64/userland \
@@ -12,7 +17,7 @@ RUN ./buildme --aarch64
1217

1318

1419

15-
FROM --platform=linux/arm64/v8 kumatea/tensorflow:2.4.1-py39 AS base
20+
FROM --platform=linux/arm64/v8 ${BASE_IMAGE} AS base
1621

1722

1823
WORKDIR foocars
@@ -50,6 +55,7 @@ COPY --from=cargenerator /foocars/cars/chiaracer /foocars/cars/chiaracer
5055
#ENTRYPOINT ["python3"]
5156
#ENTRYPOINT ["/bin/bash"]
5257
COPY --from=userland /opt/vc/ /opt/vc/
58+
ENV LD_LIBRARY_PATH=/opt/vc/lib
5359

5460
CMD ["/usr/local/bin/car_runner"]
5561

0 commit comments

Comments
 (0)