-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install Python and Node.js in the UBI containers using pyenv and fnm (#…
…326) We don't have the full matrix of versions available for the UBI containers because we are installing from the UBI software catalog. This is problematic now that we want the default to be Nodejs 22 and Python 3.13, neither of which is available. Instead of installing from pre-built packages, use fnm and pyenv to install the versions, similar to what we do for the kitchen-sink image. Fixes #327
- Loading branch information
Showing
8 changed files
with
52 additions
and
71 deletions.
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
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
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
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
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 |
---|---|---|
|
@@ -15,18 +15,22 @@ ARG LANGUAGE_VERSION | |
LABEL org.opencontainers.image.description="Pulumi CLI container for nodejs" | ||
WORKDIR /pulumi/projects | ||
|
||
COPY dnf/nodejs.module /etc/dnf/modules.d/nodejs.module | ||
RUN sed -i s"/__LANGUAGE_VERSION_PLACEHOLDER__/${LANGUAGE_VERSION}/g" /etc/dnf/modules.d/nodejs.module | ||
RUN cat /etc/dnf/modules.d/nodejs.module | ||
|
||
RUN microdnf install -y \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
nodejs \ | ||
tar && \ | ||
npm install -g [email protected] && \ | ||
npm install -g corepack && \ | ||
tar \ | ||
unzip | ||
|
||
# Install nodejs using fnm | ||
RUN curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "/usr/local/share/fnm" --skip-shell && \ | ||
ln -s /usr/local/share/fnm/fnm /usr/local/bin/fnm | ||
ENV FNM_COREPACK_ENABLED="true" | ||
ENV FNM_DIR=/usr/local/share/fnm | ||
RUN fnm install ${LANGUAGE_VERSION} && \ | ||
fnm alias ${LANGUAGE_VERSION} default | ||
ENV PATH=/usr/local/share/fnm/aliases/default/bin:$PATH | ||
RUN npm install -g corepack && \ | ||
corepack install -g yarn@1 | ||
|
||
# Uses the workdir, copies from pulumi interim container | ||
|
This file was deleted.
Oops, something went wrong.
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
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