aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-09-12 22:20:43 +0200
committerHarald Welte <laforge@gnumonks.org>2019-09-13 11:02:06 +0000
commit0d426bd8f55202b07f51f7d5502eee2821cddb06 (patch)
tree69bec98f30dc40e448f4770f91f3e9bb6e7b773a
parent6b7cab9a47d311317f1d067c689dbded30154499 (diff)
add osmo-resmsim-master Docker container
this will be used in upcoming TTCN-3 tests for osmo-remsim Change-Id: I8508441289455d0a2e3486a99ef09c85937de26f
-rw-r--r--osmo-remsim-master/.release1
-rw-r--r--osmo-remsim-master/Dockerfile53
-rw-r--r--osmo-remsim-master/Makefile3
-rw-r--r--osmo-remsim-master/Release.key20
4 files changed, 77 insertions, 0 deletions
diff --git a/osmo-remsim-master/.release b/osmo-remsim-master/.release
new file mode 100644
index 0000000..24401d3
--- /dev/null
+++ b/osmo-remsim-master/.release
@@ -0,0 +1 @@
+release=0.0.0
diff --git a/osmo-remsim-master/Dockerfile b/osmo-remsim-master/Dockerfile
new file mode 100644
index 0000000..acc7078
--- /dev/null
+++ b/osmo-remsim-master/Dockerfile
@@ -0,0 +1,53 @@
+ARG USER
+FROM $USER/debian-stretch-build
+
+MAINTAINER Harald Welte <laforge@gnumonks.org>
+
+ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
+
+COPY Release.key /tmp/Release.key
+
+RUN apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list
+
+ADD $OSMOCOM_REPO/Release /tmp/Release
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ telnet \
+ libosmocore-dev \
+ libosmo-abis-dev \
+ libosmo-netif-dev \
+ libpcsclite-dev \
+ libcsv-dev \
+ libjansson-dev \
+ libulfius-dev \
+ liborcania-dev && \
+ apt-get clean
+
+#ADD respawn.sh /usr/local/bin/respawn.sh
+
+WORKDIR /tmp
+
+ARG OSMO_REMSIM_BRANCH="master"
+
+RUN git clone git://git.osmocom.org/osmo-remsim.git
+ADD http://git.osmocom.org/osmo-remsim/patch?h=$OSMO_REMSIM_BRANCH /tmp/commit-osmo-remsim
+
+RUN cd osmo-remsim && \
+ git fetch && git checkout $OSMO_REMSIM_BRANCH && \
+ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_REMSIM_BRANCH || exit 1); \
+ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
+ autoreconf -fi && \
+ ./configure && \
+ make -j8 install && \
+ ldconfig
+
+VOLUME /data
+
+#COPY osmo-bts.cfg /data/osmo-bts.cfg
+
+WORKDIR /data
+CMD ["/usr/local/bin/osmo-resmim-server"]
+
+#EXPOSE
diff --git a/osmo-remsim-master/Makefile b/osmo-remsim-master/Makefile
new file mode 100644
index 0000000..2e0e850
--- /dev/null
+++ b/osmo-remsim-master/Makefile
@@ -0,0 +1,3 @@
+#RUN_ARGS?=--rm --network sigtran --ip 172.18.0.210 -v bts-vol:/data
+
+include ../make/Makefile
diff --git a/osmo-remsim-master/Release.key b/osmo-remsim-master/Release.key
new file mode 100644
index 0000000..e656238
--- /dev/null
+++ b/osmo-remsim-master/Release.key
@@ -0,0 +1,20 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+mQENBFJBt/wBCADAht3d/ilNuyzaXYw/QwTRvmjyoDvfXw+H/3Fvk1zlDZoiKPPc
+a1wCVBINUZl7vYM2OXqbJwYa++JP2Q48xKSvC6thbRc/YLievkbcvTemf7IaREfl
+CTjoYpoqXHa9kHMw1aALDm8CNU88jZmnV7v9L6hKkbYDxie+jpoj7D6B9JlxgNJ4
+5dQyRNsFGVcIl4Vplt1HyGc5Q5nQI/VgS2rlF/IOXmhRQBc4LEDdU8R2IKnkU4ee
+S7TWanAigGAQhxGuCkS39/CWzc1DhLhjlNhBl/+RTPejkqJtAy00ZLps3+Rq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