66
77DockerParameters = Dict [str , Union [bool , str , List [str ]]]
88
9+ GOLANG_TAG = "1.14"
10+
911
1012def operator_params (files_to_add : List [str ]) -> DockerParameters :
1113 return {
1214 "builder" : True ,
13- "builder_image" : "golang" ,
15+ "builder_image" : f "golang: { GOLANG_TAG } " ,
1416 "base_image" : "registry.access.redhat.com/ubi8/ubi-minimal:latest" ,
1517 "files_to_add" : files_to_add ,
1618 }
@@ -19,22 +21,22 @@ def operator_params(files_to_add: List[str]) -> DockerParameters:
1921def test_runner_params (files_to_add : List [str ],) -> DockerParameters :
2022 return {
2123 "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
2325 "base_image" : "registry.access.redhat.com/ubi8/ubi-minimal:latest" ,
2426 "files_to_add" : files_to_add ,
2527 }
2628
2729
2830def e2e_params (files_to_add : List [str ]) -> DockerParameters :
2931 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
3133 "files_to_add" : files_to_add ,
3234 }
3335
3436
3537def unit_test_params (files_to_add : List [str ]) -> DockerParameters :
3638 return {
37- "base_image" : "golang" ,
39+ "base_image" : f "golang: { GOLANG_TAG } " ,
3840 "files_to_add" : files_to_add ,
3941 }
4042
0 commit comments