d4rkstar commented on issue #221: URL: https://github.com/apache/openserverless/issues/221#issuecomment-5369143042
Hi @mobs75 some clarifications. The build task in [Taskfile.yml](https://github.com/apache/openserverless-operator/blob/7337d43fa7d4f16aff81c712c701805f758aa8e0/Taskfile.yml#L382) is related to kaniko build: but this is not used to build on Docker, but on k3s (and also for k3s seems not to work properly and it requires some fixes for sure). However, to build on Docker, you should user tasks with `b:` prefix from [TaskfileBuild.yml](https://github.com/apache/openserverless-operator/blob/7337d43fa7d4f16aff81c712c701805f758aa8e0/TaskfileBuild.yml#L37) If you see there is a `MY_OPERATOR_IMAGE` env that you can set to override the image. This is then passed to the build via build args: ``` build: - > docker build . -t ${MY_OPERATOR_IMAGE:-{{.OPERATOR_IMAGE}}}:{{.OPERATOR_TAG}} --build-arg OPERATOR_IMAGE_DEFAULT=${MY_OPERATOR_IMAGE:-{{.OPERATOR_IMAGE}}} --build-arg OPERATOR_TAG_DEFAULT={{.OPERATOR_TAG}} --load ``` Hope I've answered to your question -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
