Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 19ce733

Browse files
author
CI
committed
Automated update of common script sources and hash
1 parent c5a4cfe commit 19ce733

File tree

64 files changed

+437
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+437
-71
lines changed

containers/azure-ansible/.devcontainer/library-scripts/common-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
102102
libkrb5-3 \
103103
libgssapi-krb5-2 \
104104
libicu[0-9][0-9] \
105-
liblttng-ust0 \
105+
liblttng-ust[0-9] \
106106
libstdc++6 \
107107
zlib1g \
108108
locales \

containers/azure-ansible/.devcontainer/library-scripts/docker-debian.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ USE_MOBY=${5:-"true"}
1717
DOCKER_VERSION=${6:-"latest"}
1818
DOCKER_DASH_COMPOSE_VERSION=${7:-"v1"} # v1 or v2
1919
MICROSOFT_GPG_KEYS_URI="https://packages.microsoft.com/keys/microsoft.asc"
20+
DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES="buster bullseye bionic focal jammy"
21+
DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES="buster bullseye bionic focal hirsute impish jammy"
2022

2123
set -e
2224

@@ -125,6 +127,26 @@ fi
125127
# Fetch host/container arch.
126128
architecture="$(dpkg --print-architecture)"
127129

130+
# Check if distro is suppported
131+
if [ "${USE_MOBY}" = "true" ]; then
132+
# 'get_common_setting' allows attribute to be updated remotely
133+
get_common_setting DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES
134+
if [[ "${DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES}" != *"${VERSION_CODENAME}"* ]]; then
135+
err "Unsupported distribution version '${VERSION_CODENAME}'. To resolve, either: (1) set feature option '\"moby\": false' , or (2) choose a compatible OS distribution"
136+
err "Support distributions include: ${DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES}"
137+
exit 1
138+
fi
139+
echo "Distro codename '${VERSION_CODENAME}' matched filter '${DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES}'"
140+
else
141+
get_common_setting DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES
142+
if [[ "${DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES}" != *"${VERSION_CODENAME}"* ]]; then
143+
err "Unsupported distribution version '${VERSION_CODENAME}'. To resolve, please choose a compatible OS distribution"
144+
err "Support distributions include: ${DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES}"
145+
exit 1
146+
fi
147+
echo "Distro codename '${VERSION_CODENAME}' matched filter '${DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES}'"
148+
fi
149+
128150
# Set up the necessary apt repos (either Microsoft's or Docker's)
129151
if [ "${USE_MOBY}" = "true" ]; then
130152

containers/azure-ansible/.devcontainer/library-scripts/node-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ su ${USERNAME} -c "$(cat << EOF
126126
umask 0002
127127
# Do not update profile - we'll do this manually
128128
export PROFILE=/dev/null
129+
ls -lah /home/${USERNAME}/.nvs || :
129130
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
130131
source ${NVM_DIR}/nvm.sh
131132
if [ "${NODE_VERSION}" != "" ]; then

containers/azure-bicep/.devcontainer/library-scripts/common-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
102102
libkrb5-3 \
103103
libgssapi-krb5-2 \
104104
libicu[0-9][0-9] \
105-
liblttng-ust0 \
105+
liblttng-ust[0-9] \
106106
libstdc++6 \
107107
zlib1g \
108108
locales \

containers/azure-bicep/.devcontainer/library-scripts/node-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ su ${USERNAME} -c "$(cat << EOF
126126
umask 0002
127127
# Do not update profile - we'll do this manually
128128
export PROFILE=/dev/null
129+
ls -lah /home/${USERNAME}/.nvs || :
129130
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
130131
source ${NVM_DIR}/nvm.sh
131132
if [ "${NODE_VERSION}" != "" ]; then

containers/azure-cli/.devcontainer/library-scripts/common-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
102102
libkrb5-3 \
103103
libgssapi-krb5-2 \
104104
libicu[0-9][0-9] \
105-
liblttng-ust0 \
105+
liblttng-ust[0-9] \
106106
libstdc++6 \
107107
zlib1g \
108108
locales \

containers/azure-static-web-apps/.devcontainer/library-scripts/node-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ su ${USERNAME} -c "$(cat << EOF
126126
umask 0002
127127
# Do not update profile - we'll do this manually
128128
export PROFILE=/dev/null
129+
ls -lah /home/${USERNAME}/.nvs || :
129130
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
130131
source ${NVM_DIR}/nvm.sh
131132
if [ "${NODE_VERSION}" != "" ]; then

containers/azure-terraform/.devcontainer/library-scripts/common-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
102102
libkrb5-3 \
103103
libgssapi-krb5-2 \
104104
libicu[0-9][0-9] \
105-
liblttng-ust0 \
105+
liblttng-ust[0-9] \
106106
libstdc++6 \
107107
zlib1g \
108108
locales \

containers/azure-terraform/.devcontainer/library-scripts/docker-debian.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ USE_MOBY=${5:-"true"}
1717
DOCKER_VERSION=${6:-"latest"}
1818
DOCKER_DASH_COMPOSE_VERSION=${7:-"v1"} # v1 or v2
1919
MICROSOFT_GPG_KEYS_URI="https://packages.microsoft.com/keys/microsoft.asc"
20+
DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES="buster bullseye bionic focal jammy"
21+
DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES="buster bullseye bionic focal hirsute impish jammy"
2022

2123
set -e
2224

@@ -125,6 +127,26 @@ fi
125127
# Fetch host/container arch.
126128
architecture="$(dpkg --print-architecture)"
127129

130+
# Check if distro is suppported
131+
if [ "${USE_MOBY}" = "true" ]; then
132+
# 'get_common_setting' allows attribute to be updated remotely
133+
get_common_setting DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES
134+
if [[ "${DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES}" != *"${VERSION_CODENAME}"* ]]; then
135+
err "Unsupported distribution version '${VERSION_CODENAME}'. To resolve, either: (1) set feature option '\"moby\": false' , or (2) choose a compatible OS distribution"
136+
err "Support distributions include: ${DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES}"
137+
exit 1
138+
fi
139+
echo "Distro codename '${VERSION_CODENAME}' matched filter '${DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES}'"
140+
else
141+
get_common_setting DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES
142+
if [[ "${DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES}" != *"${VERSION_CODENAME}"* ]]; then
143+
err "Unsupported distribution version '${VERSION_CODENAME}'. To resolve, please choose a compatible OS distribution"
144+
err "Support distributions include: ${DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES}"
145+
exit 1
146+
fi
147+
echo "Distro codename '${VERSION_CODENAME}' matched filter '${DOCKER_LICENSED_ARCHIVE_VERSION_CODENAMES}'"
148+
fi
149+
128150
# Set up the necessary apt repos (either Microsoft's or Docker's)
129151
if [ "${USE_MOBY}" = "true" ]; then
130152

containers/azure-terraform/.devcontainer/library-scripts/node-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ su ${USERNAME} -c "$(cat << EOF
126126
umask 0002
127127
# Do not update profile - we'll do this manually
128128
export PROFILE=/dev/null
129+
ls -lah /home/${USERNAME}/.nvs || :
129130
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
130131
source ${NVM_DIR}/nvm.sh
131132
if [ "${NODE_VERSION}" != "" ]; then

0 commit comments

Comments
 (0)