This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
daniel gerrit-no-reply at lists.osmocom.orgdaniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/22636 )
Change subject: Add osmo-gbproxy-* conatiner for osmo-gbproxy
......................................................................
Add osmo-gbproxy-* conatiner for osmo-gbproxy
Uses the new repo split off of osmo-sgsn
Change-Id: I1e7ede4d1da54e3bcb286213b34401bd9dcf7cc1
---
M make/Makefile
A osmo-gbproxy-latest/Dockerfile
A osmo-gbproxy-latest/Makefile
A osmo-gbproxy-latest/Release.key
A osmo-gbproxy-latest/osmo-gbproxy.cfg
M osmo-gbproxy-master/Dockerfile
A osmo-gbproxy-master/Release.key
M osmo-gbproxy-master/osmo-gbproxy.cfg
M ttcn3-gbproxy-test/jenkins.sh
9 files changed, 207 insertions(+), 14 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/36/22636/1
diff --git a/make/Makefile b/make/Makefile
index 7bb0345..5280bef 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -21,6 +21,7 @@
OSMO_BB_BRANCH?=master
OSMO_BSC_BRANCH?=master
OSMO_BTS_BRANCH?=master
+OSMO_GBPROXY_BRANCH?=master
OSMO_GGSN_BRANCH?=master
OSMO_GSM_TESTER_BRANCH?=master
OSMO_HLR_BRANCH?=master
@@ -74,6 +75,7 @@
--build-arg OSMO_BB_BRANCH=$(OSMO_BB_BRANCH) \
--build-arg OSMO_BSC_BRANCH=$(OSMO_BSC_BRANCH) \
--build-arg OSMO_BTS_BRANCH=$(OSMO_BTS_BRANCH) \
+ --build-arg OSMO_GBPROXY_BRANCH=$(OSMO_GBPROXY_BRANCH) \
--build-arg OSMO_GGSN_BRANCH=$(OSMO_GGSN_BRANCH) \
--build-arg OSMO_GSM_TESTER_BRANCH=$(OSMO_GSM_TESTER_BRANCH) \
--build-arg OSMO_HLR_BRANCH=$(OSMO_HLR_BRANCH) \
diff --git a/osmo-gbproxy-latest/Dockerfile b/osmo-gbproxy-latest/Dockerfile
new file mode 100644
index 0000000..c2beab7
--- /dev/null
+++ b/osmo-gbproxy-latest/Dockerfile
@@ -0,0 +1,36 @@
+ARG REGISTRY=docker.io
+ARG UPSTREAM_DISTRO=debian:stretch
+FROM ${REGISTRY}/${UPSTREAM_DISTRO}
+# Arguments used after FROM must be specified again
+ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
+
+MAINTAINER Harald Welte <laforge at gnumonks.org>
+
+ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/latest/Debian_9.0/"
+
+COPY Release.key /tmp/Release.key
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ gnupg
+
+RUN apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-latest.list
+
+ADD $OSMOCOM_REPO/Release /tmp/Release
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ telnet \
+ osmo-gbproxy && \
+ apt-get clean
+
+WORKDIR /tmp
+
+VOLUME /data
+COPY osmo-gbproxy.cfg /data/osmo-gbproxy.cfg
+
+WORKDIR /data
+CMD ["/bin/sh", "-c", "/usr/bin/osmo-gbproxy -c /data/osmo-gbproxy.cfg >/data/osmo-gbproxy.log 2>&1"]
+
+EXPOSE 23000/udp 4245/tcp 4249/tcp 4246/tcp 4263/tcp
diff --git a/osmo-gbproxy-latest/Makefile b/osmo-gbproxy-latest/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/osmo-gbproxy-latest/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile
diff --git a/osmo-gbproxy-latest/Release.key b/osmo-gbproxy-latest/Release.key
new file mode 100644
index 0000000..a737316
--- /dev/null
+++ b/osmo-gbproxy-latest/Release.key
@@ -0,0 +1,20 @@
+-----BEGIN PGP PUBLIC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proxy-latest/osmo-gbproxy.cfg b/osmo-gbproxy-latest/osmo-gbproxy.cfg
new file mode 100644
index 0000000..50ffb81
--- /dev/null
+++ b/osmo-gbproxy-latest/osmo-gbproxy.cfg
@@ -0,0 +1,32 @@
+!
+! Osmocom Gb Proxy (0.9.0.404-6463) configuration saved from vty
+!!
+!
+log stderr
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging print category-hex 0
+ logging timestamp 1
+ logging print file 1
+ logging level lns debug
+ logging level lbssgp debug
+ logging level gprs debug
+line vty
+ no login
+!
+sgsn nsei 101
+ name main
+ns
+ bind udp local
+ listen 127.0.0.1 23000
+ accept-ipaccess
+ nse 101
+ ip-sns 127.0.0.10 7777
+ timer tns-block 3
+ timer tns-block-retries 3
+ timer tns-reset 3
+ timer tns-reset-retries 3
+ timer tns-test 30
+ timer tns-alive 3
+ timer tns-alive-retries 10
diff --git a/osmo-gbproxy-master/Dockerfile b/osmo-gbproxy-master/Dockerfile
index 8661ec9..52ccaae 100644
--- a/osmo-gbproxy-master/Dockerfile
+++ b/osmo-gbproxy-master/Dockerfile
@@ -1,6 +1,82 @@
ARG USER
ARG DISTRO
-FROM $USER/osmo-sgsn-master
+ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
+FROM $USER/$DISTRO-build
+# Arguments used after FROM must be specified again
+ARG DISTRO
+ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
+
+MAINTAINER Harald Welte <laforge at gnumonks.org>
+
+ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
+
+COPY Release.key /tmp/Release.key
+
+RUN case "$DISTRO" in \
+ debian*) \
+ apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-nightly.list \
+ ;; \
+ esac
+
+# we need to add this to invalidate the cache once the repository is updated.
+# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
+ADD $OSMOCOM_REPO/Release /tmp/Release
+ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8/repodata/repomd.xml /tmp/repomd.xml
+RUN case "$DISTRO" in \
+ debian*) \
+ apt-get update && \
+ apt-get install -y --no-install-recommends \
+ telnet \
+ libosmocore-dev \
+ libosmo-abis-dev \
+ libosmo-gsup-client-dev \
+ libosmo-netif-dev \
+ libosmo-ranap-dev \
+ libosmo-sccp-dev \
+ libosmo-sigtran-dev \
+ libsmpp34-dev \
+ libgtp-dev \
+ libasn1c-dev && \
+ apt-get clean \
+ ;; \
+ centos*) \
+ dnf install -y \
+ telnet \
+ "pkgconfig(libasn1c)" \
+ "pkgconfig(libcrypto)" \
+ "pkgconfig(libgtp)" \
+ "pkgconfig(libosmo-gsup-client)" \
+ "pkgconfig(libosmo-netif)" \
+ "pkgconfig(libosmo-ranap)" \
+ "pkgconfig(libosmo-sigtran)" \
+ "pkgconfig(libosmoabis)" \
+ "pkgconfig(libosmocore)" \
+ "pkgconfig(libosmoctrl)" \
+ "pkgconfig(libosmogb)" \
+ "pkgconfig(libosmogsm)" \
+ "pkgconfig(libosmovty)" \
+ ;; \
+ esac
+
+WORKDIR /tmp
+
+ARG OSMO_GBPROXY_BRANCH="master"
+
+RUN git clone git://git.osmocom.org/osmo-gbproxy.git
+ADD http://git.osmocom.org/osmo-gbproxy/patch?h=$OSMO_GBPROXY_BRANCH /tmp/commit
+
+RUN cd osmo-gbproxy && \
+ git fetch && git checkout $OSMO_GBPROXY_BRANCH && \
+ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_GBPROXY_BRANCH || exit 1); \
+ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
+ autoreconf -fi && \
+ ./configure --enable-iu && \
+ make "-j$(nproc)" install && \
+ ldconfig
+
+VOLUME /data
COPY osmo-gbproxy.cfg /data/osmo-gbproxy.cfg
diff --git a/osmo-gbproxy-master/Release.key b/osmo-gbproxy-master/Release.key
new file mode 100644
index 0000000..a737316
--- /dev/null
+++ b/osmo-gbproxy-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+RqUN1Y
+CU/Fsr7aRlYVGqQ/BlptwV0XQ2VVYJX2oEBBABEBAAG0MG5ldHdvcmsgT0JTIFBy
+b2plY3QgPG5ldHdvcmtAYnVpbGQub3BlbnN1c2Uub3JnPokBPAQTAQIAJgUCXm/4
+pgIbAwUJEEzwqgYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEGLrGgkXKA3f/1AH
+/A7WVSpfM4wV/DMqZPTsSjChB4JyDotxpV7qHZzBC5aaP2dINZyi9PayIwZWbvCY
+VKvt+Fw8oCGC9F9mdh10Xe+ElHeVNSihzABPuu1RkRkb1nvkymScy0yxydodYOBi
+K4WQ+BhpijXWmYvOekIwbS5Hi9BHpfgK4TinK0xsvh1bVLeQJ8YjrnNFIAR2CnBa
+X7Y72Up/kKL08DdQzuS+mKrJtAQlGMtIsukWC2ajYQMkNwm8Gvhpn8za113dCkBW
+XAFnlQqQobKwC7b19QgEtJI/YpGSrRc6WaZxPyAjscbWQlFEAB900sVj4BWT55ig
+7O2uSdsCVhTuU7T0ztwsgvmIRgQTEQIABgUCUkG3/AAKCRA7MBG3a51lIzhdAJ9v
+d6XPffMZRcCGgDEY5OaTn/MsCQCgrXbeZpFJgnirSrc8rRonvzYFiF4=
+=/Tek
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/osmo-gbproxy-master/osmo-gbproxy.cfg b/osmo-gbproxy-master/osmo-gbproxy.cfg
index 29f698f..50ffb81 100644
--- a/osmo-gbproxy-master/osmo-gbproxy.cfg
+++ b/osmo-gbproxy-master/osmo-gbproxy.cfg
@@ -2,17 +2,27 @@
! Osmocom Gb Proxy (0.9.0.404-6463) configuration saved from vty
!!
!
+log stderr
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging print category-hex 0
+ logging timestamp 1
+ logging print file 1
+ logging level lns debug
+ logging level lbssgp debug
+ logging level gprs debug
line vty
no login
!
-gbproxy
- sgsn nsei 101
+sgsn nsei 101
+ name main
ns
- nse 101 nsvci 101
- nse 101 remote-role sgsn
- nse 101 encapsulation udp
- nse 101 remote-ip 192.168.100.239
- nse 101 remote-port 7777
+ bind udp local
+ listen 127.0.0.1 23000
+ accept-ipaccess
+ nse 101
+ ip-sns 127.0.0.10 7777
timer tns-block 3
timer tns-block-retries 3
timer tns-reset 3
@@ -20,7 +30,3 @@
timer tns-test 30
timer tns-alive 3
timer tns-alive-retries 10
- encapsulation framerelay-gre enabled 0
- encapsulation framerelay-gre local-ip 0.0.0.0
- encapsulation udp local-ip 127.0.0.100
- encapsulation udp local-port 23000
diff --git a/ttcn3-gbproxy-test/jenkins.sh b/ttcn3-gbproxy-test/jenkins.sh
index 2120f90..9605608 100755
--- a/ttcn3-gbproxy-test/jenkins.sh
+++ b/ttcn3-gbproxy-test/jenkins.sh
@@ -3,7 +3,7 @@
. ../jenkins-common.sh
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
docker_images_require \
- "osmo-sgsn-$IMAGE_SUFFIX" \
+ "osmo-gbproxy-$IMAGE_SUFFIX" \
"ttcn3-gbproxy-test"
SUBNET=24
@@ -32,7 +32,7 @@
-v $VOL_BASE_DIR/gbproxy:/data \
--name ${BUILD_TAG}-gbproxy -d \
$DOCKER_ARGS \
- $REPO_USER/osmo-sgsn-$IMAGE_SUFFIX \
+ $REPO_USER/osmo-gbproxy-$IMAGE_SUFFIX \
/bin/sh -c "osmo-gbproxy -c /data/osmo-gbproxy.cfg >/data/osmo-gbproxy.log 2>&1"
echo Starting container with gbproxy testsuite
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/22636
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I1e7ede4d1da54e3bcb286213b34401bd9dcf7cc1
Gerrit-Change-Number: 22636
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210202/c3178d7c/attachment.htm>