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

Upgrade Node to 22. #14078

Draft
wants to merge 3 commits into
base: codebuild-image/latest
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ RUN set -ex \

#**************** NODEJS ****************************************************

ENV NODE_18_VERSION="18.15.0"
ENV NODE_VERSION="22.12.0"

RUN n $NODE_18_VERSION && npm install --save-dev -g -f grunt && npm install --save-dev -g -f grunt-cli && npm install --save-dev -g -f webpack \
RUN n $NODE_VERSION && npm install --save-dev -g -f grunt && npm install --save-dev -g -f grunt-cli && npm install --save-dev -g -f webpack \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y -qq --no-install-recommends yarn \
Expand Down Expand Up @@ -374,7 +374,7 @@ VOLUME /var/lib/docker
FROM runtimes_n_corretto AS std_v6

# Activate runtime versions specific to image version.
RUN n $NODE_18_VERSION
RUN n $NODE_VERSION
RUN pyenv global $PYTHON_38_VERSION
RUN goenv global $GOLANG_18_VERSION

Expand Down
2 changes: 1 addition & 1 deletion codebuild_specs/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ phases:
build:
commands:
# increment DEFAULT_TAG version to a unique consecutive version whenever you make changes to the dockerfile or image settings
- export DEFAULT_TAG=1.0.3
- export DEFAULT_TAG=2.0.0
- export IMAGE_TAG=${CUSTOM_TAG:=$DEFAULT_TAG}
- echo $IMAGE_TAG
- echo $PKG_BINARY_CACHE_BUCKET_NAME
Expand Down