File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,17 @@ set -x
121121git -C $$ {config_directories[kayobe]} submodule init
122122git -C $$ {config_directories[kayobe]} submodule update
123123
124+ # Set base image for kayobe container. Use rocky 9 for zed+ CentOS otherwise
125+ if grep -Eq " (2023|zed)" $$ {config_directories[kayobe]}/.gitreview; then
126+ export BASE_IMAGE=rockylinux:9
127+ else
128+ export BASE_IMAGE=quay.io/centos/centos:stream8
129+ fi
130+
124131if [[ " $( sudo docker image ls) " == * " kayobe" * ]]; then
125132 echo " Image already exists skipping docker build"
126133else
127- sudo DOCKER_BUILDKIT=1 docker build --network host --file $$ {config_directories[kayobe]}/.automation/docker/kayobe/Dockerfile --tag kayobe:latest $$ {config_directories[kayobe]}
134+ sudo DOCKER_BUILDKIT=1 docker build --network host --build-arg BASE_IMAGE= $$ BASE_IMAGE -- file $$ {config_directories[kayobe]}/.automation/docker/kayobe/Dockerfile --tag kayobe:latest $$ {config_directories[kayobe]}
128135fi
129136
130137set +x
You can’t perform that action at this time.
0 commit comments