Skip to content

Commit

Permalink
GH-37120: [CI][Docs] Ensure removing existing Node.js (#37121)
Browse files Browse the repository at this point in the history
### Rationale for this change

We want to use the specified Node.js and existing Node.js may be conflicted.

### What changes are included in this PR?

We remove existing Node.js explicitly before we install the specified Node.js. 

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: #37120

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored Aug 11, 2023
1 parent faf41a9 commit edf283e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/docker/linux-apt-docs.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ ENV PATH=/opt/apache-maven-${maven}/bin:$PATH
RUN mvn -version

ARG node=16
RUN wget -q -O - https://deb.nodesource.com/setup_${node}.x | bash - && \
RUN apt-get purge -y npm && \
apt-get autoremove -y --purge && \
wget -q -O - https://deb.nodesource.com/setup_${node}.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
Expand Down

0 comments on commit edf283e

Please sign in to comment.