aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-11-14 22:54:09 +0100
committerHarald Welte <laforge@osmocom.org>2020-11-14 22:54:09 +0100
commit8368c2b9730635be72e6c357efb77d86b12667ff (patch)
tree354d9d6953b6326d262522c456eb5ce788dd0189
parentddf61d245343941b457b535d61e4d06fadd912dc (diff)
debian-stretch-titan: Use correct architecture of libfftranscode
We cannot blindly assume that we're running on amd64. Change-Id: I937d7b02a194244a62b79dbe6b78c27f7baabeb6 Related: OS#4727
-rw-r--r--debian-stretch-titan/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/debian-stretch-titan/Dockerfile b/debian-stretch-titan/Dockerfile
index c5fd235..7420348 100644
--- a/debian-stretch-titan/Dockerfile
+++ b/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