Skip to content

Commit

Permalink
examples: Fix websocket Docker recipe (#26884)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>

Signed-off-by: phlax <phlax@users.noreply.github.com>
  • Loading branch information
phlax committed Apr 26, 2023
1 parent 0a05296 commit 9197629
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
9 changes: 8 additions & 1 deletion examples/websocket/Dockerfile-websocat
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
FROM solsson/websocat@sha256:902f0b3a263fd274fc1acf24e95c7226071075b42775894205285fd894188120
FROM debian:bullseye-slim@sha256:9404b05bd09b57c76eccc0c5505b3c88b5feccac808d9b193a4fbac87bb44745 as websocket-base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update \
&& apt-get -qq install --no-install-recommends -y ca-certificates musl wget
RUN wget -qO /usr/local/bin/websocat https://github.com/vi/websocat/releases/download/v1.11.0/websocat.x86_64-unknown-linux-musl \
&& echo 'dc5524b9f03a344b88a12c859fb02f8bb56b3373dbc43a6e0c45a2ab52b853d7 /usr/local/bin/websocat' | sha256sum -c - \
&& chmod +x /usr/local/bin/websocat
ENTRYPOINT ["websocat"]
17 changes: 7 additions & 10 deletions examples/websocket/Dockerfile-websocat-client
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM solsson/websocat@sha256:902f0b3a263fd274fc1acf24e95c7226071075b42775894205285fd894188120

FROM debian:bullseye-slim@sha256:9404b05bd09b57c76eccc0c5505b3c88b5feccac808d9b193a4fbac87bb44745 as websocket-base
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -qq update \
&& apt-get -qq install --no-install-recommends -y ca-certificates musl wget
RUN wget -qO /usr/local/bin/websocat https://github.com/vi/websocat/releases/download/v1.11.0/websocat.x86_64-unknown-linux-musl \
&& echo 'dc5524b9f03a344b88a12c859fb02f8bb56b3373dbc43a6e0c45a2ab52b853d7 /usr/local/bin/websocat' | sha256sum -c - \
&& chmod +x /usr/local/bin/websocat
ADD interact.sh /interact.sh
RUN chmod +x /interact.sh

RUN apt-get -qq update \
&& apt-get -qq install -qq --no-install-recommends -y expect \
&& apt-get -qq autoremove -y && apt-get clean \
&& rm -rf /tmp/* /var/tmp/* \
&& rm -rf /var/lib/apt/lists/*


&& apt-get -qq install --no-install-recommends -y expect
ENTRYPOINT ["/interact.sh"]

0 comments on commit 9197629

Please sign in to comment.