Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/tailscale/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ install_curl() {
dnf -y install --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 curl
elif type yum > /dev/null 2>/dev/null; then
yum -y install --noplugins --setopt=install_weak_deps=0 curl
elif type apk > /dev/null 2>/dev/null; then
apk add curl
else
2> echo "Unknown platform, can not automate curl install. curl is required to download tailscale"
return 1
Expand Down
22 changes: 22 additions & 0 deletions test/tailscale/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tailscale_on_ubuntu": {
"image": "ubuntu:latest",
"features": {
"tailscale": {}
}
},
"tailscale_on_alma": {
"image": "almalinux:latest",
"features": {
"tailscale": {}
}
},
"tailscale_version": {
"image": "ubuntu:latest",
"features": {
"tailscale": {
"version": "1.80.2"
}
}
}
}
1 change: 1 addition & 0 deletions test/tailscale/tailscale_on_alma.sh
1 change: 1 addition & 0 deletions test/tailscale/tailscale_on_ubuntu.sh
1 change: 1 addition & 0 deletions test/tailscale/tailscale_version.sh
10 changes: 9 additions & 1 deletion test/tailscale/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@

set -e

tailscale version --daemon
source dev-container-features-test-lib

if [[ "$VERSION" == latest ]]; then
check "Daemon: " tailscale version --daemon
else
check "$VERSION" tailscale version --daemon
fi

reportResults