[why] when start containers send-internet-mail and send-mail, error message: docker: invalid publish opts format (should be name=value but got ':').
[how] add ENV vars defaults values, avoid confusion error message.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/3-code/dev-env | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/sparrow/3-code/dev-env b/sparrow/3-code/dev-env index 218b6c1..444281e 100755 --- a/sparrow/3-code/dev-env +++ b/sparrow/3-code/dev-env @@ -15,6 +15,9 @@ server_ip=$(ip route get 1.2.3.4 | awk '{print $7; exit}') : ${DOCKER_REGISTRY_PORT:=5001} : ${LOGGING_ES_HOST:=$server_ip} : ${LOGGING_ES_PORT:=9202} +: ${SEND_MAIL_PORT:=49000} +: ${LOCAL_SEND_MAIL_PORT:=11311} +: ${LOCAL_ROBOT_EMAIL_ADDRESS:=Crystal TEAM}
mkdir -p /etc/compass-ci/defaults cat > /etc/compass-ci/defaults/$server_name.yaml <<EOF @@ -32,6 +35,9 @@ DOCKER_REGISTRY_HOST: $DOCKER_REGISTRY_HOST DOCKER_REGISTRY_PORT: $DOCKER_REGISTRY_PORT LOGGING_ES_HOST: $LOGGING_ES_HOST LOGGING_ES_PORT: $LOGGING_ES_PORT +SEND_MAIL_PORT: $SEND_MAIL_PORT +LOCAL_SEND_MAIL_PORT: $LOCAL_SEND_MAIL_PORT +LOCAL_ROBOT_EMAIL_ADDRESS: $LOCAL_ROBOT_EMAIL_ADDRESS EOF
cat > /etc/profile.d/compass.sh <<EOF