-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install npm in OpenShift CI image (#1875)
Signed-off-by: Dmytro Nochevnov <[email protected]>
- Loading branch information
1 parent
4eff7bf
commit 62b6632
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,15 @@ SHELL ["/bin/bash", "-c"] | |
# Install yq, kubectl, chectl cli used by olm/olm.sh script. | ||
# hadolint ignore=DL3041 | ||
# Install yq, kubectl, chectl cli. | ||
RUN yum install --assumeyes -d1 psmisc python3-pip httpd-tools nodejs && \ | ||
RUN yum install --assumeyes -d1 psmisc python3-pip httpd-tools nodejs npm && \ | ||
pip3 install --upgrade setuptools && \ | ||
pip3 install yq && \ | ||
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin && \ | ||
bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=next | ||
|
||
RUN yum update -y && npm install -g [email protected] npm@9 && \ | ||
echo -n "node version: "; node -v; \ | ||
echo -n "npm version: "; npm -v; \ | ||
echo -n "yarn version: "; yarn -v; \ |