Closed ybyzek closed 4 years ago
Occurs because of: https://github.com/confluentinc/cp-docker-images/blob/5.3.1-post/debian/base/include/etc/confluent/docker/bash-config#L16
set -o nounset
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin
set -u nounset same as -u
-u
Treat unset variables and parameters other than the special parameters ‘@’ or ‘*’ as an error when performing parameter expansion. An error message will be written to the standard error, and a non-interactive shell will exit.
It appears that https://github.com/confluentinc/cp-docker-images/pull/761/ is incomplete. It removed the check that those variables are defined (
dub ensure
) with the intention that docker images could remove the configs:However removing those config lines results in the Connect image failing:
The reason is that the code in the kafka-connect-base image references those variables anyway, and thus will fail if they're not set: https://github.com/confluentinc/cp-docker-images/blob/5.3.1-post/debian/kafka-connect-base/include/etc/confluent/docker/configure#L36.
cc: @rmoff