Skip to content

Commit

Permalink
Update Pihole and Pocketbase versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonfire1119 committed Apr 7, 2024
1 parent ea4b3df commit dc04283
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ If you have a suggestion for an app, please post in the [BigBearCommunity](https

| Application | Version | Video | Docs |
| ------------------ | --------- | ----- | ------------------------------------------------------------------------------------------------------------- |
| Pihole and Unbound | 2024.02.2 | | [Documentation](https://community.bigbeartechworld.com/t/added-pihole-and-unbound-to-bigbeardockerimages/192) |
| Pocketbase | 0.22.4 | | [Documentation](https://community.bigbeartechworld.com/t/pocketbase-is-on-bigbeardockerimages/28) |
| Pihole and Unbound | 2024.03.2 | | [Documentation](https://community.bigbeartechworld.com/t/added-pihole-and-unbound-to-bigbeardockerimages/192) |
| Pocketbase | 0.22.8 | | [Documentation](https://community.bigbeartechworld.com/t/pocketbase-is-on-bigbeardockerimages/28) |

## Contributions

Expand Down
2 changes: 1 addition & 1 deletion pihole-unbound/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use pihole base image
FROM pihole/pihole:2024.02.2
FROM pihole/pihole:2024.03.2

# Set environment variables for Unbound installation
ENV DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion pihole-unbound/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.02.2
2024.03.2
2 changes: 1 addition & 1 deletion pocketbase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM alpine:3.18
RUN apk --no-cache add ca-certificates wget unzip

# Set Pocketbase version
ARG POCKETBASE_VERSION=0.22.4
ARG POCKETBASE_VERSION=0.22.8

# Detect the architecture of the building machine
ARG TARGETARCH
Expand Down
2 changes: 1 addition & 1 deletion pocketbase/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.22.4
0.22.8
53 changes: 53 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash

# Initialize counters
success_count=0
error_count=0

# Function to download the root hints file
download_root_hints() {
echo "Downloading the root hints file..."
if curl -sSL https://www.internic.net/domain/named.root -o unbound/root.hints; then
echo "Root hints file downloaded to unbound/root.hints"
((success_count++))
else
echo "Error downloading root hints file"
((error_count++))
fi
echo "------------------------"
}

# Function to test a root server
test_root_server() {
server_ip="$1"
echo "Testing $server_ip..."
if dig @"$server_ip" . NS +short; then
echo "Test successful for $server_ip"
((success_count++))
else
echo "Test failed for $server_ip"
((error_count++))
fi
echo "------------------------"
}

# Path to the root hints file
root_hints_file="unbound/root.hints"

# Check if the root hints file exists; if not, download it
if [ ! -f "$root_hints_file" ]; then
download_root_hints
fi

# Read the root hints file and extract server IPs
root_servers_from_file=($(grep -E '^[A-M]\.' "$root_hints_file" | awk '{print $NF}'))

# Test each root server
for server_ip in "${root_servers_from_file[@]}"; do
test_root_server "$server_ip"
done

# Report the progress
echo "Progress Report:"
echo "Successful operations: $success_count"
echo "Failed operations: $error_count"

0 comments on commit dc04283

Please sign in to comment.