Change in docker-playground[master]: debian-stretch-jenkins: move from osmo-ci.git

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/.

osmith gerrit-no-reply at lists.osmocom.org
Tue Jan 14 14:43:44 UTC 2020


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/16867 )


Change subject: debian-stretch-jenkins: move from osmo-ci.git
......................................................................

debian-stretch-jenkins: move from osmo-ci.git

Put Dockerfile_osmocom_jenkins.amd64 ("osmocom:deb9_amd64") from
osmo-ci.git here and give it a more descriptive name.

Related: OS#4345
Change-Id: I125ae8a6bcabbd1f485028c79b0abacda0622c3a
---
A debian-stretch-jenkins/Dockerfile
A debian-stretch-jenkins/Makefile
2 files changed, 147 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/67/16867/1

diff --git a/debian-stretch-jenkins/Dockerfile b/debian-stretch-jenkins/Dockerfile
new file mode 100644
index 0000000..63b6e74
--- /dev/null
+++ b/debian-stretch-jenkins/Dockerfile
@@ -0,0 +1,146 @@
+ARG DEBIAN_VERSION=stretch
+FROM debian:${DEBIAN_VERSION}
+
+# Make "$DEBIAN_VERSION" available after FROM
+# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
+ARG DEBIAN_VERSION
+
+# Install apt dependencies (keep in alphabetic order)
+RUN \
+	dpkg --add-architecture i386 && \
+	DEBIAN_FRONTEND=noninteractive apt-get update && \
+	DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
+	DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
+		asciidoc \
+		asciidoc-dblatex \
+		autoconf \
+		autoconf-archive \
+		automake \
+		bc \
+		bison \
+		bzip2 \
+		cmake \
+		coccinelle \
+		cppcheck \
+		dahdi-source \
+		dblatex \
+		dbus \
+		debhelper \
+		devscripts \
+		dh-autoreconf \
+		dh-systemd \
+		docbook5-xml \
+		doxygen \
+		flex \
+		g++ \
+		gawk \
+		gcc \
+		gcc-arm-none-eabi \
+		git \
+		git-buildpackage \
+		graphviz \
+		htop \
+		inkscape \
+		lcov \
+		libaio-dev \
+		libasound2-dev \
+		libboost-all-dev \
+		libc-ares-dev \
+		libcsv-dev \
+		libdbd-sqlite3 \
+		libdbi-dev \
+		libffi-dev \
+		libfftw3-dev \
+		libgmp-dev \
+		libgnutls28-dev \
+		libgps-dev \
+		libgsm1-dev \
+		liblua5.3-dev \
+		libmnl-dev \
+		libncurses5-dev \
+		libnewlib-arm-none-eabi \
+		liboping-dev \
+		libortp-dev \
+		libpcap-dev \
+		libpcsclite-dev \
+		libreadline-dev \
+		libsctp-dev \
+		libsigsegv-dev \
+		libsnmp-dev \
+		libsofia-sip-ua-glib-dev \
+		libsqlite3-dev \
+		libssl-dev \
+		libtalloc-dev \
+		libtool \
+		libusb-1.0-0-dev \
+		libusb-dev \
+		libxml2-utils \
+		libzmq3-dev \
+		locales \
+		lua-socket \
+		make \
+		mscgen \
+		ofono \
+		openssh-client \
+		osc \
+		patchelf \
+		pkg-config \
+		python3 \
+		python3-gi \
+		python3-mako \
+		python3-nwdiag \
+		python3-pip \
+		python3-pyflakes \
+		python3-setuptools \
+		python3-usb \
+		python3-yaml \
+		rsync \
+		sdcc \
+		sqlite3 \
+		stow \
+		sudo \
+		systemd \
+		tcpdump \
+		texinfo \
+		unzip \
+		wget \
+		xsltproc
+
+# Install pip dependencies (keep in alphabetic order)
+RUN pip3 install \
+	git+https://github.com/podshumok/python-smpplib.git \
+	git+https://github.com/eriwen/lcov-to-cobertura-xml.git \
+	pydbus \
+	pysispm
+
+# match the outside user
+RUN useradd --uid=1000 build
+#RUN echo "build ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/build
+
+RUN mkdir /build
+RUN chown build:build /build
+
+# Install osmo-python-tests
+ADD http://git.osmocom.org/python/osmo-python-tests/patch /tmp/commit
+RUN git clone git://git.osmocom.org/python/osmo-python-tests && cd osmo-python-tests && ./contrib/jenkins.sh
+
+# Set a UTF-8 locale
+RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
+    dpkg-reconfigure --frontend=noninteractive locales && \
+    update-locale LANG=en_US.UTF-8
+ENV LANG en_US.UTF-8
+
+# osmo-remsim needs libulfius (which indirectly depends on systemd, installed above)
+ARG LIBULFIUS_VER="2.6.4"
+ARG LIBULFIUS_PATH="https://github.com/babelouest/ulfius/releases/download/v${LIBULFIUS_VER}"
+ADD ${LIBULFIUS_PATH}/libulfius-dev_${LIBULFIUS_VER}_debian_${DEBIAN_VERSION}_x86_64.deb /tmp/ulfius/libulfius-dev.deb
+ADD ${LIBULFIUS_PATH}/ulfius-dev-full_${LIBULFIUS_VER}_debian_${DEBIAN_VERSION}_x86_64.tar.gz /tmp/ulfius/all.tar.gz
+RUN cd /tmp/ulfius && \
+	tar -xvf all.tar.gz && \
+	DEBIAN_FRONTEND=noninteractive apt-get update && \
+	DEBIAN_FRONTEND=noninteractive apt-get install -y /tmp/ulfius/*.deb && \
+	cd ~ && \
+	rm -r /tmp/ulfius
+
+# osmo-python-tests' contrib/jenkins.sh writes to /usr/local as user
+RUN chown -R build:build /usr/local
diff --git a/debian-stretch-jenkins/Makefile b/debian-stretch-jenkins/Makefile
new file mode 100644
index 0000000..8d0e10b
--- /dev/null
+++ b/debian-stretch-jenkins/Makefile
@@ -0,0 +1 @@
+include ../make/Makefile

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/16867
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I125ae8a6bcabbd1f485028c79b0abacda0622c3a
Gerrit-Change-Number: 16867
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200114/7b43a746/attachment.htm>


More information about the gerrit-log mailing list