Debian Codegraph @

scripts/ci/images/opensuse-tw/build-images-opensuse-tw

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # SPDX-FileCopyrightText: 2026 Oak Ridge National Laboratory and Contributors
4 #
5 # SPDX-License-Identifier: Apache-2.0
6
7 # This script is used to build the openSUSE Tumbleweed images
8
9 set -xeuo pipefail
10
11 declare -r DOCKER_REPOSITORY=ghcr.io/ornladios/adios2
12 declare -u ENABLE_PUSH=
13
14 #=============================================================================
15 # Functions
16
17 # Function to build a docker image
18 function docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build().() {
19 local docker_file=$1
20 local docker_tag=$2
21 local args=(--progress=plain --rm)
22
23 if [[ -n "${ENABLE_PUSH}" ]]; then
24 args+=("--push")
25 fi
26
27 sudoscip-shell system . . sudo. docker build "${args[@]}" \
28 --file "${docker_file}" \
29 --tag "${DOCKER_REPOSITORY}:${docker_tag}-$(datescip-shell system . . date. +"%Y%m%d")" \
30 .
31 }
32
33 function usagescip-shell shell adios2 2.12.1+dfsg1-2 usage().() {
34 echoscip-shell system . . echo. "Usage: $0 [-p <PROJECT>] [-m <MILESTONE>]"
35 echoscip-shell system . . echo. " -p Push to the docker registry"
36 exit 0
37 }
38
39 #=============================================================================
40 # Main
41 while getopts "p" o; do
42 case "${o}" in
43 p) ENABLE_PUSH=true ;;
44 *) usagescip-shell shell adios2 2.12.1+dfsg1-2 usage(). ;;
45 esac
46 done
47
48 docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build(). opensuse-tw-sanitizer-base.dockerfile ci-opensuse-tw-sanitizer-base
49 docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build(). opensuse-tw-full-stack-onbuild.dockerfile ci-opensuse-tw-full-stack-onbuild
50 docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build(). opensuse-tw-asan.dockerfile ci-opensuse-tw-asan
51 docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build(). opensuse-tw-msan.dockerfile ci-opensuse-tw-msan
52 docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build(). opensuse-tw-tsan.dockerfile ci-opensuse-tw-tsan
53 docker_buildscip-shell shell adios2 2.12.1+dfsg1-2 docker_build(). opensuse-tw-ubsan.dockerfile ci-opensuse-tw-ubsan