File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,8 @@ RUN set -eux; \
181181 rm -rf /var/lib/apt/lists/* /var/cache/apt/
182182RUN mkdir -p /etc/envoy/templates
183183COPY shared/envoy/bootstrap.yaml /etc/envoy/templates/bootstrap.yaml
184- COPY shared/envoy/default.yaml /etc/envoy/default.yaml
184+ # Copy default config to bootstrap.yaml so supervisor can start envoy immediately
185+ COPY shared/envoy/default.yaml /etc/envoy/bootstrap.yaml
185186COPY shared/envoy/init-envoy.sh /usr/local/bin/init-envoy.sh
186187RUN chmod +x /usr/local/bin/init-envoy.sh
187188
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ RUN set -eux; \
6363 rm -rf /var/lib/apt/lists/* /var/cache/apt/
6464RUN mkdir -p /etc/envoy/templates
6565COPY shared/envoy/bootstrap.yaml /etc/envoy/templates/bootstrap.yaml
66- COPY shared/envoy/default.yaml /etc/envoy/default.yaml
66+ # Copy default config to bootstrap.yaml so supervisor can start envoy immediately
67+ COPY shared/envoy/default.yaml /etc/envoy/bootstrap.yaml
6768COPY shared/envoy/init-envoy.sh /usr/local/bin/init-envoy.sh
6869RUN chmod +x /usr/local/bin/init-envoy.sh
6970
Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ if [[ -f /etc/envoy/templates/bootstrap.yaml && -n "${INST_NAME:-}" && -n "${MET
1111fi
1212
1313if $render_from_template ; then
14+ echo " [envoy-init] Rendering template with INST_NAME=${INST_NAME} and METRO_NAME=${METRO_NAME} "
1415 inst_esc=$( printf ' %s' " $INST_NAME " | sed -e ' s/[\/&]/\\&/g' )
1516 metro_esc=$( printf ' %s' " $METRO_NAME " | sed -e ' s/[\/&]/\\&/g' )
1617 sed -e " s|{INSTANCE_NAME}|$inst_esc |g" \
1718 -e " s|{METRO_NAME}|$metro_esc |g" \
1819 /etc/envoy/templates/bootstrap.yaml > /etc/envoy/bootstrap.yaml
1920else
21+ echo " [envoy-init] Using default configuration (template vars not provided)"
2022 cp -f /etc/envoy/default.yaml /etc/envoy/bootstrap.yaml
2123fi
2224
You can’t perform that action at this time.
0 commit comments