-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1300bf9
commit 9cde8c3
Showing
3 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
test/docker-in-docker/docker_build_older_enable_ip6tables.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Optional: Import test library | ||
source dev-container-features-test-lib | ||
|
||
# Definition specific tests | ||
check "docker-buildx" docker buildx version | ||
check "docker-build" docker build ./ | ||
check "docker-buildx" bash -c "docker buildx version" | ||
check "docker-buildx-path" bash -c "ls -la /usr/libexec/docker/cli-plugins/docker-buildx" | ||
ip6tablesCheck() { | ||
if command -v ip6tables > /dev/null 2>&1; then | ||
if ip6tables -L > /dev/null 2>&1; then | ||
echo "✔️ ip6tables is enabled." | ||
else | ||
echo "❌ ip6tables is disabled." | ||
fi | ||
else | ||
echo "❕ip6tables command not found. ❕" | ||
fi | ||
} | ||
|
||
check "ip6tables" ip6tablesCheck | ||
|
||
# Report result | ||
reportResults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters