-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching base image to ubi8-minimal #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there other files in https://github.com/kanisterio/kanister/tree/master/docker like https://github.com/kanisterio/kanister/blob/master/docker/controller/Dockerfile that we need to update as well?
@@ -1,6 +1,10 @@ | |||
FROM ARG_FROM | |||
ARG base_image=registry.access.redhat.com/ubi8/ubi-minimal:8.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we use this file anymore? Let's remove it if not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure... let me check.
make file is using package.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's part of goreleaser :(
nice catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably need a way of auto get docker files for goreleaser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do use Dockerfile.in
in k10:
636 docker_package_kanister() {
637 local image_tag=${1:?"Image tag unspecified. Pick a tag that is unique for every code change."}
638 pushd "${KANISTER_PATH}"
639 cp ${BASE_DIR}/go/bin/controller controller
640 GO111MODULE=on BIN=controller ARCH=amd64 BASEIMAGE=alpine \
641 IMAGE=${DOCKER_ECR}/kanister VERSION=${image_tag} \
642 SOURCE_BIN=controller \
643 ./build/package.sh
644 popd
-e "s|ARG_SOURCE_BIN|${SOURCE_BIN}|g" \ | ||
Dockerfile.in > .dockerfile-${ARCH} | ||
docker build -t ${IMAGE}:${VERSION} -f .dockerfile-${ARCH} . | ||
docker build ${baseimagearg:-} -t ${IMAGE}:${VERSION} -f .dockerfile-${ARCH} . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build args make way more sense. I think this pattern was something I copied from Tim Hockins. Let's switch to build args completely in a followup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me ;)
Change Overview
RedHat recently introduced Universal Base Image (UBI)
https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image
and this is now a requirement for a project to get into OpneShift marketplace
in order to make for kanister possible to be added into OpenShift marketplace
switching the base image to UBI
Pull request type
Please check the type of change your PR introduces:
Test Plan