Project

General

Profile

Actions

Feature #5323

open

Add docker image containing titan.core master

Added by pespin over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/22/2021
Due date:
% Done:

0%

Spec Reference:

Description

Right now, we have "debian-stretch-titan/Dockerfile" in docker-playground.git, which installs the eclipse-titan from "latest" OBS repositories (currently 8.0.0 despite 8.1.0 is already available):
https://build.opensuse.org/package/show/network:osmocom:latest/eclipse-titan

However, it is sometimes useful to be able to build titan.core from source (be it master or any other branch). This can be used for different reasons:
  • Checking if a certain bug is present/fixed in a newer version, useful to report bugs upstream.
  • Check if newer versions than the one we currently have in OBS run fine against our test suites before upgrading it.
  • Build a random branch to develop/fix certain titan.core features.

I already tried for a while but I wasn't able to get it to work since my debian packaging abilitites are not really good.
I share here what I have WIP for someone else to pick up the work.

diff --git a/debian-stretch-titan/Dockerfile b/debian-stretch-titan/Dockerfile
index 5b6b134..5e544cb 100644
--- a/debian-stretch-titan/Dockerfile
+++ b/debian-stretch-titan/Dockerfile
@@ -52,6 +52,34 @@ RUN  DPKG_ARCH="$(dpkg --print-architecture)" && export $DPKG_ARCH && \
 RUN    git config --global user.email docker@dock.er && \
        git config --global user.name "Dock Er" 

+
+# clone titan.core
+RUN apt-get update && \
+    apt-get upgrade -y && \
+    DEBIAN_FRONTEND=noninteractive \
+    apt-get install -y --no-install-recommends \
+        git-buildpackage \
+        debhelper \
+        devscripts \
+        vim \
+        sudo \
+        iputils-ping \
+       less \
+       bison default-jdk flex fakeroot \
+        net-tools && \
+    apt-get clean
+ADD    debian /debian
+RUN    git clone https://gitlab.eclipse.org/eclipse/titan/titan.core.git && \
+               cp -r /debian /titan.core/ && \
+               cd /titan.core && \
+               echo "PESPIN1" && \
+               git add --all && \
+               git commit -m "TMP" && \
+               mkdir -p /foobar && \
+               gbp buildpackage -tc -uc -us --git-debian-branch=master --git-upstream-tree=master --git-ignore-new --git-export=master "--git-export-dir=/foobar"; \
+               cat /tmp/eclipse-titan*
+ADD    https://gitlab.eclipse.org/api/v4/projects/176/repository/branches/master /tmp/deps-titancore
+
 # clone osmo-ttcn3-hacks and deps, invalidate cache if deps change (OS#5017)
 RUN    git clone git://git.osmocom.org/osmo-ttcn3-hacks.git && \
        make -C /osmo-ttcn3-hacks deps

Related issues

Related to Core testing infrastructure - Feature #6187: Update titan.core to 9.0.0 in osmocom repositories Resolvedosmith09/21/2023

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)