Added wscat tool to work with websockets

This commit is contained in:
cytopia
2022-12-26 03:12:03 +01:00
parent 06cb912d1e
commit c14d2d8881
19 changed files with 209 additions and 0 deletions

View File

@@ -589,6 +589,13 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& su -c '. /opt/nvm/nvm.sh; npm install --location=global wscat' devilbox \
&& ln -s /opt/nvm/versions/node/$(su -c '. /opt/nvm/nvm.sh; node --version' devilbox)/bin/wscat /usr/local/bin/ \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& pip install --no-cache-dir --no-compile --force-reinstall yamllint \
@@ -906,6 +913,11 @@ RUN set -eux \
&& wp --allow-root --version | grep -E '[0-9][.0-9]+' || (wp --allow-root --version; false) \
&& true
# -------------------- (npm) wscat --------------------
RUN set -eux \
&& wscat --version | grep -E '[0-9][.0-9]+' || (wscat --version; false) \
&& true
# -------------------- (pip) yamllint --------------------
RUN set -eux \
&& yamllint --version 2>&1 | grep -E '[0-9][.0-9]+' || (yamllint --version; false) \