2020-11-02 13:24:39 +00:00
|
|
|
ARG REGISTRY=docker.io
|
2020-11-18 15:45:28 +00:00
|
|
|
ARG UPSTREAM_DISTRO=debian:stretch
|
|
|
|
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
2020-11-18 16:52:56 +00:00
|
|
|
# Arguments used after FROM must be specified again
|
2021-04-30 14:39:09 +00:00
|
|
|
ARG OSMOCOM_REPO_TESTSUITE_MIRROR="http://download.opensuse.org"
|
2017-05-03 15:03:02 +00:00
|
|
|
|
|
|
|
MAINTAINER Harald Welte <laforge@gnumonks.org>
|
|
|
|
|
2021-04-30 14:39:09 +00:00
|
|
|
ARG OSMOCOM_REPO="$OSMOCOM_REPO_TESTSUITE_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
|
2018-03-16 16:41:44 +00:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
gnupg
|
|
|
|
|
2021-03-09 23:58:55 +00:00
|
|
|
COPY .common/Release.key /tmp/Release.key
|
2018-03-16 16:41:44 +00:00
|
|
|
|
|
|
|
RUN apt-key add /tmp/Release.key && \
|
|
|
|
rm /tmp/Release.key && \
|
|
|
|
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-latest.list
|
|
|
|
|
2018-09-26 08:24:58 +00:00
|
|
|
ADD $OSMOCOM_REPO/Release /tmp/Release
|
2020-06-05 14:48:51 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends --no-install-suggests \
|
|
|
|
eclipse-titan
|
2017-08-18 20:18:32 +00:00
|
|
|
|
2017-08-27 07:53:26 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
2020-12-11 15:18:34 +00:00
|
|
|
DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends --no-install-suggests \
|
2017-08-27 07:53:26 +00:00
|
|
|
build-essential \
|
2018-02-14 18:04:34 +00:00
|
|
|
git \
|
2019-05-02 16:02:29 +00:00
|
|
|
procps \
|
2018-03-01 15:04:38 +00:00
|
|
|
tcpdump \
|
2020-12-11 15:18:34 +00:00
|
|
|
wireshark-common \
|
2018-03-01 15:04:38 +00:00
|
|
|
vim \
|
2019-10-02 11:49:29 +00:00
|
|
|
netcat-openbsd \
|
2018-03-01 15:04:38 +00:00
|
|
|
&& \
|
2017-08-27 07:53:26 +00:00
|
|
|
apt-get clean
|
2017-08-18 20:18:32 +00:00
|
|
|
|
|
|
|
# somehow Debian folks updated the gcc version but not titan :/
|
|
|
|
RUN sed -i 's/^#error/\/\/#error/' /usr/include/titan/cversion.h
|
2019-04-21 10:39:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# binary-only transcoding library for RANAP/RUA/HNBAP to work around TITAN only implementing BER
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y install wget
|
2020-11-14 21:54:09 +00:00
|
|
|
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 && \
|
2020-12-10 00:07:29 +00:00
|
|
|
dpkg -i ./libfftranscode0_0.3_${DPKG_ARCH}.deb ./libfftranscode-dev_0.3_${DPKG_ARCH}.deb && \
|
|
|
|
apt install --fix-broken && \
|
2019-04-21 10:39:40 +00:00
|
|
|
rm libfftranscode*.deb
|
2021-02-10 13:14:55 +00:00
|
|
|
|
|
|
|
RUN git config --global user.email docker@dock.er && \
|
|
|
|
git config --global user.name "Dock Er"
|
|
|
|
|
2021-02-10 13:52:38 +00:00
|
|
|
# clone osmo-ttcn3-hacks and deps, invalidate cache if deps change (OS#5017)
|
2021-02-10 13:14:55 +00:00
|
|
|
RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git && \
|
|
|
|
make -C /osmo-ttcn3-hacks deps
|
2021-02-10 13:52:38 +00:00
|
|
|
ADD https://git.osmocom.org/osmo-ttcn3-hacks/plain/deps/Makefile /tmp/deps-Makefile
|
|
|
|
RUN if ! diff -q /tmp/deps-Makefile /osmo-ttcn3-hacks/deps/Makefile; then \
|
|
|
|
cd /osmo-ttcn3-hacks && \
|
|
|
|
git pull && \
|
|
|
|
make deps; \
|
|
|
|
fi
|
2021-02-10 14:22:21 +00:00
|
|
|
|
|
|
|
ADD ttcn3-docker-prepare.sh /usr/local/bin/ttcn3-docker-prepare
|
2021-02-10 15:25:40 +00:00
|
|
|
ADD ttcn3-docker-run.sh /usr/local/bin/ttcn3-docker-run
|
2021-02-10 15:49:22 +00:00
|
|
|
ADD pipework /usr/local/bin/pipework
|