-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-bake.hcl
100 lines (85 loc) · 2.44 KB
/
docker-bake.hcl
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
variable "FIVEG_MAG_MBS_VERSION" {
default = "0.1.1"
}
variable "GITHUB_REGISTRY" {
default = "ghcr.io/5g-mag"
}
variable "OPEN5GS_BRANCH" {
default = "upv-mbs"
}
variable "SRSRAN_PROJECT_BRANCH" {
default = "upv-mbs"
}
variable "SRSRAN_4G_BRANCH" {
default = "upv-mbs"
}
variable "UBUNTU_VERSION" {
default = "jammy"
}
group "default" {
targets = [
"base-mbs-open5gs", "amf_with_mbs", "smf_mb-smf", "upf_mb-upf", "test_mbs_af_as",
"base-mbs-srsran-project", "base-mbs-srsran-4g", "gnb_with_mbs", "ue_with_mbs"
]
}
target "base-mbs-open5gs" {
context = "./images/base-mbs-open5gs"
tags = ["base-mbs-open5gs:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "base-mbs-srsran-project" {
context = "./images/base-mbs-srsran-project"
tags = ["base-mbs-srsran-project:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "base-mbs-srsran-4g" {
context = "./images/base-mbs-srsran-4g"
tags = ["base-mbs-srsran-4g:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "amf_with_mbs" {
context = "./images/amf_with_mbs"
contexts = {
"base-mbs-open5gs:${FIVEG_MAG_MBS_VERSION}" = "target:base-mbs-open5gs"
}
tags = ["${GITHUB_REGISTRY}/amf_with_mbs:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "smf_mb-smf" {
context = "./images/smf_mb-smf"
contexts = {
"base-mbs-open5gs:${FIVEG_MAG_MBS_VERSION}" = "target:base-mbs-open5gs"
}
tags = ["${GITHUB_REGISTRY}/smf_mb-smf:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "upf_mb-upf" {
context = "./images/upf_mb-upf"
contexts = {
"base-mbs-open5gs:${FIVEG_MAG_MBS_VERSION}" = "target:base-mbs-open5gs"
}
tags = ["${GITHUB_REGISTRY}/upf_mb-upf:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "test_mbs_af_as" {
context = "."
dockerfile = "./images/test_mbs_af_as/Dockerfile"
tags = ["${GITHUB_REGISTRY}/test_mbs_af_as:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "gnb_with_mbs" {
context = "./images/gnb_with_mbs"
contexts = {
"base-mbs-srsran-project:${FIVEG_MAG_MBS_VERSION}" = "target:base-mbs-srsran-project"
}
tags = ["${GITHUB_REGISTRY}/gnb_with_mbs:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}
target "ue_with_mbs" {
context = "./images/ue_with_mbs"
contexts = {
"base-mbs-srsran-4g:${FIVEG_MAG_MBS_VERSION}" = "target:base-mbs-srsran-4g"
}
tags = ["${GITHUB_REGISTRY}/ue_with_mbs:${FIVEG_MAG_MBS_VERSION}"]
output = ["type=image"]
}