aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-pcu-master/Dockerfile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-20 21:50:56 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-20 21:45:07 +0000
commiteedbb5655244147fb5e327196bf44019462a83b9 (patch)
tree294c697fd14002fd1c023d02e01bbb8239683d83 /osmo-pcu-master/Dockerfile
parent0b3587fae8448f21425fac1a6c098f9102d3dbde (diff)
PCU: Add osmo-pcu-* + ttcn3-pcu-test containers
This will enable us to run the PCU testsuite automatically by jenkins, just like for other Osmocom projects. Change-Id: Ia8e2ed2e7d03b8afdc7b1e068f94b0544a8112c7 Related: OS#2890
Diffstat (limited to 'osmo-pcu-master/Dockerfile')
-rw-r--r--osmo-pcu-master/Dockerfile43
1 files changed, 43 insertions, 0 deletions
diff --git a/osmo-pcu-master/Dockerfile b/osmo-pcu-master/Dockerfile
new file mode 100644
index 0000000..867f534
--- /dev/null
+++ b/osmo-pcu-master/Dockerfile
@@ -0,0 +1,43 @@
+ARG USER
+FROM $USER/debian-jessie-build
+
+MAINTAINER Harald Welte <laforge@gnumonks.org>
+
+ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.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 && \
+ apt-get clean
+
+ADD respawn.sh /usr/local/bin/respawn.sh
+
+WORKDIR /tmp
+
+ARG OSMO_PCU_BRANCH="master"
+
+RUN git clone git://git.osmocom.org/osmo-pcu.git
+ADD http://git.osmocom.org/osmo-pcu/patch?h=$OSMO_PCU_BRANCH /tmp/commit-osmo-pcu
+
+RUN cd osmo-pcu && \
+ git fetch && git checkout -f -B $OSMO_PCU_BRANCH origin/$OSMO_PCU_BRANCH && \
+ autoreconf -fi && \
+ ./configure --enable-trx && \
+ make -j8 install
+
+VOLUME /data
+
+COPY osmo-pcu.cfg /data/osmo-pcu.cfg
+
+WORKDIR /data
+CMD ["/usr/local/bin/osmo-pcu", "-i", "172.18.0.230"]
+
+#EXPOSE