Skip to content

Commit 63db2e4

Browse files
committed
Install wscat inside Dockerfile
1 parent a2f009a commit 63db2e4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

shutter/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ RUN echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com
5858
# promtail & rotatelogs (from apache2)
5959
RUN apt-get update && apt-get -y install promtail apache2
6060

61+
RUN apt-get update && apt-get install -y \
62+
ca-certificates \
63+
curl
64+
65+
ARG NODE_VERSION=22.14.0
66+
ARG NODE_PACKAGE=node-v$NODE_VERSION-linux-x64
67+
ARG NODE_HOME=/opt/$NODE_PACKAGE
68+
69+
ENV NODE_PATH $NODE_HOME/lib/node_modules
70+
ENV PATH $NODE_HOME/bin:$PATH
71+
72+
RUN curl https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz | tar -xzC /opt/
73+
74+
RUN npm install -g wscat
6175

6276
# Placed here to rebuild less layers
6377
ENV CHAIN_PORT=${CHAIN_PORT} \

shutter/scripts/configure_keyper.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
# shellcheck disable=SC1091
77
. "${ASSETS_DIR}/variables.env"
88

9+
NODE_VERSION=22.14.0
10+
NODE_PACKAGE=node-v$NODE_VERSION-linux-x64
11+
NODE_HOME=/opt/$NODE_PACKAGE
12+
13+
NODE_PATH=$NODE_HOME/lib/node_modules
14+
PATH=$NODE_HOME/bin:$PATH
15+
916
function test_ethereum_url() {
1017
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
1118
if [[ $RESULT =~ '"id":1' ]]; then return 0; else

0 commit comments

Comments
 (0)