Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update e2e nodejs install method #4173

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading