diff --git a/.github/workflows/armv6.yaml b/.github/workflows/armv6.yaml index bf7ac03..55c546d 100644 --- a/.github/workflows/armv6.yaml +++ b/.github/workflows/armv6.yaml @@ -24,6 +24,6 @@ jobs: - name: Available platforms run: echo ${{ steps.buildx.outputs.platforms }} - name: Run Buildx - run: docker buildx build --platform linux/arm/v6 -t kerberos/base:armv6-$(echo $GITHUB_SHA | cut -c1-7) --push . + run: docker buildx build --platform linux/arm/v6 -t kerberos/base:armv6-$(echo $GITHUB_SHA | cut -c1-7) -f Dockerfile-armv6 --push . - name: Append manifest run: docker buildx imagetools create --append -t kerberos/base:$(echo $GITHUB_SHA | cut -c1-7) kerberos/base:armv6-$(echo $GITHUB_SHA | cut -c1-7) \ No newline at end of file diff --git a/Dockerfile-armv6 b/Dockerfile-armv6 new file mode 100644 index 0000000..dc36a75 --- /dev/null +++ b/Dockerfile-armv6 @@ -0,0 +1,34 @@ +FROM balenalib/raspberry-pi-golang AS builder + +LABEL Author=Kerberos.io + +RUN apt-get update && apt-get upgrade -y && apt-get install -y wget build-essential \ + cmake libc-ares-dev uuid-dev daemon libwebsockets-dev git \ + cmake wget dh-autoreconf autotools-dev autoconf automake gcc \ + build-essential libtool make ca-certificates nasm tar unzip wget pkg-config + +############################# +# Static build x264 + +RUN git clone https://code.videolan.org/videolan/x264.git && \ + cd x264 && git checkout 0a84d986 && \ + ./configure --prefix=/usr/local --enable-static --enable-pic && \ + make -j8 && \ + make install && \ + cd .. && rm -rf x264 + +################################# +# Clone and build FFMpeg & OpenCV + +RUN git clone https://github.com/FFmpeg/FFmpeg && \ + cd FFmpeg && git checkout n5.0.1 && \ + ./configure --prefix=/usr/local --target-os=linux --enable-nonfree \ + --extra-ldflags="-latomic" \ + --enable-avfilter \ + --disable-zlib \ + --enable-gpl \ + --extra-libs=-latomic \ + --enable-static --disable-shared && \ + make -j8 && \ + make install && \ + cd .. && rm -rf FFmpeg \ No newline at end of file