debian-stretch-titan: Use correct architecture of libfftranscode

We cannot blindly assume that we're running on amd64.

Change-Id: I937d7b02a194244a62b79dbe6b78c27f7baabeb6
Related: OS#4727
changes/56/21156/1
Harald Welte 2 years ago
parent ddf61d2453
commit 8368c2b973
  1. 7
      debian-stretch-titan/Dockerfile

@ -38,7 +38,8 @@ RUN sed -i 's/^#error/\/\/#error/' /usr/include/titan/cversion.h
# binary-only transcoding library for RANAP/RUA/HNBAP to work around TITAN only implementing BER
RUN apt-get update && \
apt-get -y install wget
RUN wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode0_0.3_amd64.deb && \
wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode-dev_0.3_amd64.deb && \
apt install ./libfftranscode0_0.3_amd64.deb ./libfftranscode-dev_0.3_amd64.deb && \
RUN DPKG_ARCH="$(dpkg --print-architecture)" && export $DPKG_ARCH && \
wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode0_0.3_${DPKG_ARCH}.deb && \
wget https://ftp.osmocom.org/binaries/libfftranscode/libfftranscode-dev_0.3_${DPKG_ARCH}.deb && \
apt install ./libfftranscode0_0.3_${DPKG_ARCH}.deb ./libfftranscode-dev_0.3_${DPKG_ARCH}.deb && \
rm libfftranscode*.deb

Loading…
Cancel
Save