Skip to content

Commit

Permalink
update e2e nodejs install (#4173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell authored Nov 27, 2023
1 parent 7fb1e5e commit dbc8a38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/hack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates curl git sudo \
ca-certificates curl gnupg git sudo \
&& rm -rf /var/lib/apt/lists/*

ENV INSTALL_DIR=/usr/local/bin
Expand Down
10 changes: 6 additions & 4 deletions e2e/hack/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ main() {
&& tar xzf velero.tar.gz \
&& install -m 0755 velero-*/velero $INSTALL_DIR/velero

curl -sL https://deb.nodesource.com/setup_18.x | runAsRoot bash -e \
&& runAsRoot apt-get install -y --no-install-recommends nodejs \
&& runAsRoot rm -rf /var/lib/apt/lists/* \
&& npm install --prefix $INSTALL_DIR @testim/testim-cli
runAsRoot mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | runAsRoot gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=18
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | runAsRoot tee /etc/apt/sources.list.d/nodesource.list
runAsRoot apt-get update && runAsRoot apt-get install nodejs -y
npm install --prefix $INSTALL_DIR @testim/testim-cli

rm -rf $tmpdir
}
Expand Down

0 comments on commit dbc8a38

Please sign in to comment.