"git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "c333f12547184778e60818816d3288b0f67c21ce"
utils.sh 1.09 KB
Newer Older
songlinfeng's avatar
songlinfeng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Copyright (c) 2024, HCUOpt CORPORATION.  All rights reserved.
#

# This list represents the distribution-architecture pairs that are actually published
# to the relevant repositories. This targets forwarded to the build-all-components script
# can be overridden by specifying command line arguments.
all=(
    ubuntu18.04-amd64
    ubuntu20.04-amd64
    ubuntu22.04-amd64
    centos7-x86_64
    centos8-x86_64
    rocky8-x86_64
    rocky9-x86_64
    kylin10-x86_64
)

function get_base_image() {
    local baseimage
    case ${1} in
    ubuntu18.04-amd64)
        baseimage=${2}/ubuntu:18.04
        ;;
    ubuntu20.04-amd64)
        baseimage=${2}/ubuntu:20.04
        ;;
    ubuntu22.04-amd64)
        baseimage=${2}/ubuntu:22.04
        ;;
    centos7-x86_64)
        baseimage=${2}/centos:7
        ;;
    centos8-x86_64)
        baseimage=${2}/centos:8.4.2105
        ;;
    rocky8-x86_64)
        baseimage=${2}/rockylinux:8.6
        ;;
    rocky9-x86_64)
        baseimage=${2}/rockylinux:9.2
        ;;
    kylin10-x86_64)
        baseimage=${2}/kylin:v10-sp2
        ;;
    esac
    echo "${baseimage}"
}