Commit Graph

9 Commits

Author SHA1 Message Date
Oliver Smith ba1385fe60 common/ttcn3-docker-run.sh: add TEST_NAME env var
Make it possible to run only one test by setting an environment
variable.

Change-Id: I1f45a05e089b429918096fcd64f7c02033d5a9dd
2023-10-16 08:52:37 +00:00
Pau Espin c163d5d854 Introduce debian-bullseye-titan-master
This Dockerfile allows building a given repo and branch of
titan.core.git which can then be used by any ttcn-*-test/ environment by
simply changing its Dockerfile "FROM" line from
$REGISTRY/$USER/debian-bullseye-titan to
$REGISTRY/$USER/debian-bullseye-titan-mater.

This is useful to debug or develop titan.core or test whether a given
testsuite works fine with a newer version of titan.core.

Change-Id: I19ee98a319ccad167d06c4f183fe80ecac909483
2023-03-02 12:33:15 +01:00
Oliver Smith 30b32e574a Use Osmocom OBS
Related: OS#5557
Change-Id: I880f8134e4f7e6ae4125237e6b3983c04cea9ec6
2022-06-27 16:47:56 +02:00
Oliver Smith 8200ebe0af common/Release.key: update
Looks like the key already expired again. This key is now valid until
2024-08-02 according to

$ gpg --import Release.key
$ gpp --list-keys

Key added again from:
https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_11/Release.key

Change-Id: I56a8708ae55cc4cc5928cd80bb57d63f32e22423
2022-05-30 11:26:35 +00:00
Oliver Smith 8542030008 common/Release.key: update
The current key is about to expire (2022-05-22). Update to the new one,
obtained from:
https://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_11/Release.key

Change-Id: I30d51435108c4763a92d57de223503d4ca4b0969
2022-05-19 17:04:14 +02:00
Oliver Smith 5c158b326a treewide: fix missing --rm for "docker run"
Add "--rm" to each "docker run" command, so they don't continuously fill
up disk space.

Fix this even in the pipework script. We don't use the code path there,
but by always having --rm after "docker run" (same line or next line),
a new lint script in osmo-ci I8ab9c291504475d670bdefc50c4524c5bdd4c880
can help us avoid this in the future.

In ttcn3-ggsn-test/jenkins.sh, move one existing --rm in a later line
upwards so the linter can find it.

Related: SYS#5827, OS#5099
Related: https://github.com/jpetazzo/pipework/pull/248
Change-Id: I48b01c43fedf379b8a565eaab0369806d7831bd8
2022-02-14 08:56:27 +01:00
Oliver Smith 266cb2165c common/pipework: deduplicate
Move the pipework script from several image directories to the common
dir.

Change-Id: I88ff40ca69c9ee76bef9bb8f24f66ca9d5ac751a
2022-02-14 07:46:23 +00:00
Vadim Yanitskiy ef0f49aa4b Share a single instance of Release.key between all images
This change employs the same approach as [1] for Release.key.

Change-Id: Ic51d6e6557ee0b56d21d8ff4feaf04bc02e41a2e
Related: [1] I3ec86c8610b3b43d39ea8e3da444861d317ced4e
2021-03-10 18:47:03 +01:00
Vadim Yanitskiy 085656ac45 Make respawn.sh a common part of *-build/-obs images
Maintaining several versions of the same file in different folders
is a bad idea, because at some point their content gets out of sync.
This is exactly what happened to 'respawn.sh': sleep()ing was only
implemented in 'osmo-bts-master/respawn.sh', other versions of this
file would simply ignore '$SLEEP_BEFORE_RESPAWN'.

The easiest solution would be to have all common files in a single
directory, however Docker does not allow to ADD files from outside
of the build context.  In other words, all files must be in the
same directory as the Dockerfile itself.

Modify 'make/Makefile' in order to copy the contents of common
directory to the current build context ('pre-build' target) and
remove it after building ('post-build' target).

Change-Id: I3ec86c8610b3b43d39ea8e3da444861d317ced4e
2021-03-10 18:46:29 +01:00