mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Add new Ruby 3.2 version of www-gitlab-com Docker image
This commit is contained in:
parent
9639313abf
commit
0401bbf92f
5 changed files with 39 additions and 9 deletions
|
|
@ -2,14 +2,11 @@
|
|||
set -xeuo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
NODE_INSTALL_VERSION=${1:-18.12.1}
|
||||
YARN_INSTALL_VERSION=${2:-1.22.19}
|
||||
|
||||
# Map MAJOR.MINOR.patch -> MAJOR.x
|
||||
NODE_MAJOR=`echo $NODE_INSTALL_VERSION | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g"`
|
||||
NODE_MAJOR=$(echo "$NODE_INSTALL_VERSION" | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g")
|
||||
|
||||
# add official debian repos for node
|
||||
curl -sS -L https://deb.nodesource.com/setup_${NODE_MAJOR} | bash -
|
||||
curl -sS -L "https://deb.nodesource.com/setup_${NODE_MAJOR}" | bash -
|
||||
|
||||
apt-get update
|
||||
|
||||
|
|
@ -18,9 +15,12 @@ curl -s -O "https://deb.nodesource.com/node_$NODE_MAJOR/pool/main/n/nodejs/$NODE
|
|||
dpkg -i "$NODE_FILE_NAME"
|
||||
rm -f "$NODE_FILE_NAME"
|
||||
|
||||
npm install --global yarn@${YARN_INSTALL_VERSION}
|
||||
npm install --global "yarn@${YARN_INSTALL_VERSION}"
|
||||
npm cache clean --force
|
||||
|
||||
apt-get autoremove -yq
|
||||
apt-get clean -yqq
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
node --version
|
||||
yarn --version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue