Skip to content

Commit fd5411e

Browse files
committed
Fix default copied location
1 parent 1ca9fb3 commit fd5411e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

images/chromium-headful/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ RUN set -eux; \
181181
rm -rf /var/lib/apt/lists/* /var/cache/apt/
182182
RUN mkdir -p /etc/envoy/templates
183183
COPY 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
185186
COPY shared/envoy/init-envoy.sh /usr/local/bin/init-envoy.sh
186187
RUN chmod +x /usr/local/bin/init-envoy.sh
187188

images/chromium-headless/image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ RUN set -eux; \
6363
rm -rf /var/lib/apt/lists/* /var/cache/apt/
6464
RUN mkdir -p /etc/envoy/templates
6565
COPY 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
6768
COPY shared/envoy/init-envoy.sh /usr/local/bin/init-envoy.sh
6869
RUN chmod +x /usr/local/bin/init-envoy.sh
6970

shared/envoy/init-envoy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ if [[ -f /etc/envoy/templates/bootstrap.yaml && -n "${INST_NAME:-}" && -n "${MET
1111
fi
1212

1313
if $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
1920
else
21+
echo "[envoy-init] Using default configuration (template vars not provided)"
2022
cp -f /etc/envoy/default.yaml /etc/envoy/bootstrap.yaml
2123
fi
2224

0 commit comments

Comments
 (0)