Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ functions:
working_dir: mongodb-kubernetes-operator/scripts/ci
command: go run download.go
env:
URL: https://github.com/operator-framework/operator-sdk/releases/download/v0.15.1/operator-sdk-v0.15.1-x86_64-linux-gnu
URL: https://github.com/operator-framework/operator-sdk/releases/download/v0.18.2/operator-sdk-v0.18.2-x86_64-linux-gnu
FILENAME: operator-sdk
DIR: ${workdir}/bin

Expand Down
10 changes: 6 additions & 4 deletions scripts/dev/dockerfile_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

DockerParameters = Dict[str, Union[bool, str, List[str]]]

GOLANG_TAG = "1.14"


def operator_params(files_to_add: List[str]) -> DockerParameters:
return {
"builder": True,
"builder_image": "golang",
"builder_image": f"golang:{GOLANG_TAG}",
"base_image": "registry.access.redhat.com/ubi8/ubi-minimal:latest",
"files_to_add": files_to_add,
}
Expand All @@ -19,22 +21,22 @@ def operator_params(files_to_add: List[str]) -> DockerParameters:
def test_runner_params(files_to_add: List[str],) -> DockerParameters:
return {
"builder": True,
"builder_image": "golang", # TODO: make this image smaller. There were errors using alpine
"builder_image": f"golang:{GOLANG_TAG}", # TODO: make this image smaller. There were errors using alpine
"base_image": "registry.access.redhat.com/ubi8/ubi-minimal:latest",
"files_to_add": files_to_add,
}


def e2e_params(files_to_add: List[str]) -> DockerParameters:
return {
"base_image": "golang", # TODO: make this image smaller, error: 'exec: "gcc": executable file not found in $PATH' with golang:alpine
"base_image": f"golang:{GOLANG_TAG}", # TODO: make this image smaller, error: 'exec: "gcc": executable file not found in $PATH' with golang:alpine
"files_to_add": files_to_add,
}


def unit_test_params(files_to_add: List[str]) -> DockerParameters:
return {
"base_image": "golang",
"base_image": f"golang:{GOLANG_TAG}",
"files_to_add": files_to_add,
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/dev/templates/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM {{base_image}}
{% block packages -%}
{% endblock -%}

ENV OPERATOR_SDK_VERSION v0.17.0
ENV OPERATOR_SDK_VERSION v0.18.2
ENV GO111MODULE=on
ENV GOPATH ""

Expand Down