-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile.armv8_ubuntu_22
39 lines (32 loc) · 1.52 KB
/
Dockerfile.armv8_ubuntu_22
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
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM arm64v8/ubuntu:22.04
# https://hub.docker.com/r/arm64v8/ubuntu
# https://github.com/docker-library/official-images#architectures-other-than-amd64
USER root
ENV TZ=Europe/Helsinki
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY qemu-arm-static /usr/bin/qemu-arm-static
RUN apt-get update -y && apt-get upgrade -y
# NOTE: for arm build skipping vaapi
# REQUIRED TO INSTALL VALKKA # keep consistent with CMakeLists.txt : SET(CPACK_DEBIAN_PACKAGE_DEPENDS "...")
RUN apt-get install -y python3 mesa-utils glew-utils python3-numpy v4l-utils python3-pip openssl arp-scan
## REQUIRED TO BUILD VALKKA
# keep consistent with:
# - debian/control.sh
# - valkka-core main readme
# - .github/workflows/debian.yml
RUN apt-get install -y build-essential yasm cmake pkg-config swig libglew-dev mesa-common-dev python3-dev python3-numpy libasound2-dev libssl-dev coreutils freeglut3-dev
# needed to add freeglut3-dev --> see: https://github.com/elsampsa/valkka-core/issues/35
RUN apt-get install -y gcc-arm-linux-gnueabi
WORKDIR /valkka-core
## So if your build crashes, this dockerimage will never be built & ready
## --> now way to experiment & fix the issue
## it's better to keep the code, makefiles & build in a separate bind-mount we can edit live
## so this part NOT HERE:
#ADD valkka_tmp /root/valkka_tmp
#WORKDIR /root/valkka_tmp
#RUN make -f debian/rules clean
#RUN make -f debian/rules build
#WORKDIR /root/valkka_tmp/build_dir
#RUN make package
#RUN dpkg -i Valkka-*.deb
#RUN python3 -c 'from valkka.core import *'