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

Commit f78722d

Browse files
author
CI
committed
Automated update for script library changes
1 parent 253314b commit f78722d

File tree

96 files changed

+693
-458
lines changed

Some content is hidden

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

96 files changed

+693
-458
lines changed

container-templates/docker-compose/.devcontainer/library-scripts/common-debian.sh

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
7878
package_list="apt-utils \
7979
openssh-client \
8080
gnupg2 \
81+
dirmngr \
8182
iproute2 \
8283
procps \
8384
lsof \

container-templates/dockerfile/.devcontainer/library-scripts/common-debian.sh

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
7878
package_list="apt-utils \
7979
openssh-client \
8080
gnupg2 \
81+
dirmngr \
8182
iproute2 \
8283
procps \
8384
lsof \

containers/alpine/.devcontainer/library-scripts/common-alpine.sh

100644100755
File mode changed.

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

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export DEBIAN_FRONTEND=noninteractive
5858
architecture="$(dpkg --print-architecture)"
5959
if [ "${architecture}" = "amd64" ]; then
6060
# Install dependencies
61-
check_packages apt-transport-https curl ca-certificates gnupg2
61+
check_packages apt-transport-https curl ca-certificates gnupg2 dirmngr
6262
# Import key safely (new 'signed-by' method rather than deprecated apt-key approach) and install
6363
. /etc/os-release
6464
get_common_setting MICROSOFT_GPG_KEYS_URI

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

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
7878
package_list="apt-utils \
7979
openssh-client \
8080
gnupg2 \
81+
dirmngr \
8182
iproute2 \
8283
procps \
8384
lsof \

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

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ check_packages() {
7878
export DEBIAN_FRONTEND=noninteractive
7979

8080
# Install dependencies
81-
check_packages apt-transport-https curl ca-certificates gnupg2
81+
check_packages apt-transport-https curl ca-certificates gnupg2 dirmngr
8282

8383
# Install Docker / Moby CLI if not already installed
84+
architecture="$(dpkg --print-architecture)"
8485
if type docker > /dev/null 2>&1; then
8586
echo "Docker / Moby CLI already installed."
8687
else
@@ -90,9 +91,10 @@ else
9091
# Import key safely (new 'signed-by' method rather than deprecated apt-key approach) and install
9192
get_common_setting MICROSOFT_GPG_KEYS_URI
9293
curl -sSL ${MICROSOFT_GPG_KEYS_URI} | gpg --dearmor > /usr/share/keyrings/microsoft-archive-keyring.gpg
93-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/microsoft-${ID}-${VERSION_CODENAME}-prod ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/microsoft.list
94+
echo "deb [arch=${architecture} signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/microsoft-${ID}-${VERSION_CODENAME}-prod ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/microsoft.list
9495
apt-get update
95-
apt-get -y install --no-install-recommends moby-cli moby-buildx moby-compose
96+
apt-get -y install --no-install-recommends moby-cli moby-buildx moby-engine
97+
apt-get -y install --no-install-recommends moby-compose || echo "(*) Package moby-compose (Docker Compose v2) not available for ${VERSION_CODENAME} ${architecture}. Skipping."
9698
else
9799
# Import key safely (new 'signed-by' method rather than deprecated apt-key approach) and install
98100
curl -fsSL https://download.docker.com/linux/${ID}/gpg | gpg --dearmor > /usr/share/keyrings/docker-archive-keyring.gpg

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

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ fi
4848
updaterc() {
4949
if [ "${UPDATE_RC}" = "true" ]; then
5050
echo "Updating /etc/bash.bashrc and /etc/zsh/zshrc..."
51-
echo -e "$1" >> /etc/bash.bashrc
52-
if [ -f "/etc/zsh/zshrc" ]; then
51+
if [[ "$(cat /etc/bash.bashrc)" != *"$1"* ]]; then
52+
echo -e "$1" >> /etc/bash.bashrc
53+
fi
54+
if [ -f "/etc/zsh/zshrc" ] && [[ "$(cat /etc/zsh/zshrc)" != *"$1"* ]]; then
5355
echo -e "$1" >> /etc/zsh/zshrc
5456
fi
5557
fi
@@ -78,7 +80,7 @@ check_packages() {
7880
export DEBIAN_FRONTEND=noninteractive
7981

8082
# Install dependencies
81-
check_packages apt-transport-https curl ca-certificates tar gnupg2
83+
check_packages apt-transport-https curl ca-certificates tar gnupg2 dirmngr
8284

8385
# Install yarn
8486
if type yarn > /dev/null 2>&1; then

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

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export DEBIAN_FRONTEND=noninteractive
5858
architecture="$(dpkg --print-architecture)"
5959
if [ "${architecture}" = "amd64" ]; then
6060
# Install dependencies
61-
check_packages apt-transport-https curl ca-certificates gnupg2
61+
check_packages apt-transport-https curl ca-certificates gnupg2 dirmngr
6262
# Import key safely (new 'signed-by' method rather than deprecated apt-key approach) and install
6363
. /etc/os-release
6464
get_common_setting MICROSOFT_GPG_KEYS_URI

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

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
7878
package_list="apt-utils \
7979
openssh-client \
8080
gnupg2 \
81+
dirmngr \
8182
iproute2 \
8283
procps \
8384
lsof \

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

100644100755
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ fi
4848
updaterc() {
4949
if [ "${UPDATE_RC}" = "true" ]; then
5050
echo "Updating /etc/bash.bashrc and /etc/zsh/zshrc..."
51-
echo -e "$1" >> /etc/bash.bashrc
52-
if [ -f "/etc/zsh/zshrc" ]; then
51+
if [[ "$(cat /etc/bash.bashrc)" != *"$1"* ]]; then
52+
echo -e "$1" >> /etc/bash.bashrc
53+
fi
54+
if [ -f "/etc/zsh/zshrc" ] && [[ "$(cat /etc/zsh/zshrc)" != *"$1"* ]]; then
5355
echo -e "$1" >> /etc/zsh/zshrc
5456
fi
5557
fi
@@ -78,7 +80,7 @@ check_packages() {
7880
export DEBIAN_FRONTEND=noninteractive
7981

8082
# Install dependencies
81-
check_packages apt-transport-https curl ca-certificates tar gnupg2
83+
check_packages apt-transport-https curl ca-certificates tar gnupg2 dirmngr
8284

8385
# Install yarn
8486
if type yarn > /dev/null 2>&1; then

0 commit comments

Comments
 (0)