GoogleCloudPlatform / flink-on-k8s-operator

[DEPRECATED] Kubernetes operator for managing the lifecycle of Apache Flink and Beam applications.
Apache License 2.0
658 stars 266 forks source link

fix bug for ARG overload #456

Open DevineLiu opened 3 years ago

DevineLiu commented 3 years ago

executor failed running [/bin/sh -c test -n "$FLINK_VERSION"] ,because in the "FROM" stage, the arg is initialized.

DevineLiu commented 3 years ago

An ARG declared before a FROM is outside of a build stage, so it can’t be used in any instruction after a FROM. To use the default value of an ARG declared before the first FROM use an ARG instruction without a value inside of a build stage:

DevineLiu commented 3 years ago

document: https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact