Skip to content

Commit

Permalink
Merge branch 'main' into java/groovy_test_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale authored Jan 17, 2024
2 parents f720589 + 6c87ba7 commit 578eeba
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common-utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "common-utils",
"version": "2.3.1",
"version": "2.3.2",
"name": "Common Utilities",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/common-utils",
"description": "Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user.",
Expand Down
7 changes: 6 additions & 1 deletion src/common-utils/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ install_alpine_packages() {
libstdc++ \
krb5-libs \
libintl \
libssl1.1 \
lttng-ust \
tzdata \
userspace-rcu \
Expand All @@ -279,6 +278,12 @@ install_alpine_packages() {
shadow \
strace

# # Include libssl1.1 if available (not available for 3.19 and newer)
LIBSSL1_PKG=libssl1.1
if [[ $(apk search --no-cache -a $LIBSSL1_PKG | grep $LIBSSL1_PKG) ]]; then
apk add --no-cache $LIBSSL1_PKG
fi

# Install man pages - package name varies between 3.12 and earlier versions
if apk info man > /dev/null 2>&1; then
apk add --no-cache man man-pages
Expand Down
2 changes: 1 addition & 1 deletion src/kubectl-helm-minikube/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "kubectl-helm-minikube",
"version": "1.1.5",
"version": "1.1.6",
"name": "Kubectl, Helm, and Minikube",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/kubectl-helm-minikube",
"description": "Installs latest version of kubectl, Helm, and optionally minikube. Auto-detects latest versions and installs needed dependencies.",
Expand Down
2 changes: 1 addition & 1 deletion src/kubectl-helm-minikube/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if [ ${KUBECTL_VERSION} != "none" ]; then
kubectl completion bash > /etc/bash_completion.d/kubectl

# kubectl zsh completion
if [ -e "${USERHOME}}/.oh-my-zsh" ]; then
if [ -e "${USERHOME}/.oh-my-zsh" ]; then
mkdir -p "${USERHOME}/.oh-my-zsh/completions"
kubectl completion zsh > "${USERHOME}/.oh-my-zsh/completions/_kubectl"
chown -R "${USERNAME}" "${USERHOME}/.oh-my-zsh"
Expand Down
16 changes: 16 additions & 0 deletions test/common-utils/alpine-3-18.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

# Definition specific tests
. /etc/os-release
check "non-root user" test "$(whoami)" = "devcontainer"
check "distro" test "${ID}" = "alpine"
check "bashrc" ls /etc/bash/bashrc
check "libssl1.1 is installed" grep "libssl1.1" <(apk list --no-cache libssl1.1)

# Report result
reportResults
7 changes: 7 additions & 0 deletions test/common-utils/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@
"common-utils": {}
}
},
"alpine-3-18": {
"image": "alpine:3.18",
"remoteUser": "devcontainer",
"features": {
"common-utils": {}
}
},
"devcontainer-info": {
"build": {
"dockerfile": "Dockerfile"
Expand Down

0 comments on commit 578eeba

Please sign in to comment.