Skip to content

Commit

Permalink
Revert "Dockerfile: keep nghttp2 up to date. (#39694)" (#39727)
Browse files Browse the repository at this point in the history
This reverts commit 809e001.
  • Loading branch information
cmacknz authored May 27, 2024
1 parent f3bd8f2 commit 19499ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dev-tools/packaging/templates/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ RUN microdnf -y update && \
microdnf -y install findutils shadow-utils && \
microdnf clean all
{{- else }}
# Install nghttp2 to keep it up to date, it is present in the base image but at an older version.
RUN for iter in {1..10}; do \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk libcap2-bin xz-utils nghttp2 && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk libcap2-bin xz-utils && \
apt-get clean all && \
exit_code=0 && break || exit_code=$? && echo "apt-get error: retry $iter in 10s" && sleep 10; \
done; \
Expand Down Expand Up @@ -154,7 +153,7 @@ RUN chown -R {{ .user }} $NODE_PATH
USER {{ .user }}
# If this fails dump the NPM logs
RUN npm i -g --loglevel verbose --engine-strict @elastic/synthetics@stack_release || sh -c 'tail -n +1 /root/.npm/_logs/* && exit 1'
RUN chmod ug+rwX -R $NODE_PATH
RUN chmod ug+rwX -R $NODE_PATH
USER root

# Install the deps as needed by the exact version of playwright elastic synthetics uses
Expand Down

0 comments on commit 19499ae

Please sign in to comment.