6
6
7
7
DockerParameters = Dict [str , Union [bool , str , List [str ]]]
8
8
9
+ GOLANG_TAG = "1.14"
10
+
9
11
10
12
def operator_params (files_to_add : List [str ]) -> DockerParameters :
11
13
return {
12
14
"builder" : True ,
13
- "builder_image" : "golang" ,
15
+ "builder_image" : f "golang: { GOLANG_TAG } " ,
14
16
"base_image" : "registry.access.redhat.com/ubi8/ubi-minimal:latest" ,
15
17
"files_to_add" : files_to_add ,
16
18
}
@@ -19,22 +21,22 @@ def operator_params(files_to_add: List[str]) -> DockerParameters:
19
21
def test_runner_params (files_to_add : List [str ],) -> DockerParameters :
20
22
return {
21
23
"builder" : True ,
22
- "builder_image" : "golang" , # TODO: make this image smaller. There were errors using alpine
24
+ "builder_image" : f "golang: { GOLANG_TAG } " , # TODO: make this image smaller. There were errors using alpine
23
25
"base_image" : "registry.access.redhat.com/ubi8/ubi-minimal:latest" ,
24
26
"files_to_add" : files_to_add ,
25
27
}
26
28
27
29
28
30
def e2e_params (files_to_add : List [str ]) -> DockerParameters :
29
31
return {
30
- "base_image" : "golang" , # TODO: make this image smaller, error: 'exec: "gcc": executable file not found in $PATH' with golang:alpine
32
+ "base_image" : f "golang: { GOLANG_TAG } " , # TODO: make this image smaller, error: 'exec: "gcc": executable file not found in $PATH' with golang:alpine
31
33
"files_to_add" : files_to_add ,
32
34
}
33
35
34
36
35
37
def unit_test_params (files_to_add : List [str ]) -> DockerParameters :
36
38
return {
37
- "base_image" : "golang" ,
39
+ "base_image" : f "golang: { GOLANG_TAG } " ,
38
40
"files_to_add" : files_to_add ,
39
41
}
40
42
0 commit comments