Skip to content

Commit 7558867

Browse files
committed
2025.12.1beta
1 parent ab0016c commit 7558867

File tree

8 files changed

+37
-29
lines changed

8 files changed

+37
-29
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2025.12.1beta 2025-12-20 <code at nfrastack dot com>
2+
3+
## Changed
4+
- Package cleanup not removing all symbolic links
5+
- Binary Check for Logshipping not working due to hyphens
6+
- Fluent-bit module not executing properly
7+
18
## 2025.12.0 2025-12-19 <code at nfrastack dot com>
29

310
- Initial Tagged release

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LABEL \
2020

2121
ARG \
2222
IMAGE_BASE_MODULES="+cron,+logrotate,+msmtp,+s6overlay," \
23-
IMAGE_MODULES \
23+
IMAGE_MODULES="+fluentbit" \
2424
IMAGE_NAME \
2525
IMAGE_BASE_VERSION \
2626
IMAGE_BASE_REPO_URL \

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,20 @@ Change time and date and settings with these environment variables
164164

165165
Only valid if appropriate module has been installed within the image. See [MODULES documentation](/rootfs/container/base/modules) for more information to see other configurable options.
166166

167-
| Parameter | Description | Default | Advanced |
168-
| ------------------------------- | -------------------------------------------- | ------------ | -------- |
169-
| `CONTAINER_ENABLE_METRICS` | Enable Metrics | `TRUE` | x |
170-
| `CONTAINER_ENABLE_MONITORING` | Enable Monitoring of applications or metrics | `TRUE` | |
171-
| `CONTAINR_MONITORING_BACKEND` | What monitoring agent to use `zabbix` | `zabbix` | |
172-
| `CONTAINER_ENABLE_MESSAGING` | Enable Messaging services like SMTP | `TRUE` | |
173-
| `CONTAINER_MESSAGING_BACKEND` | Messaging Backend - presently only `msmtp` | `msmtp` | |
174-
| `CONTAINER_ENABLE_SCHEDULING` | Enable Scheduled Tasks | `TRUE` | |
175-
| `CONTAINR_SCHEDULING_BACKEND` | What scheduling tool to use `cron` | `cron` | |
176-
| `CONTAINER_ENABLE_LOGROTATE` | Enable Logrotate (if scheduling enabled) | `TRUE` | |
177-
| `CONTAINER_ENABLE_LOGSHIPPING` | Enable Log Shipping | `FALSE` | |
178-
| `CONTAINER_LOGSHIPPING_BACKEND` | Log shipping backend `fluent-bit` | `fluent-bit` | |
179-
| `CONTAINER_ENABLE_FIREWALL` | Enable Firewall Functionality | `FALSE` | |
180-
| `CONTAINER_FIREWALL_BACKEND` | What Firewall backend to use `iptables` | `iptables` | |
167+
| Parameter | Description | Default | Advanced |
168+
| ------------------------------- | -------------------------------------------- | ----------- | -------- |
169+
| `CONTAINER_ENABLE_METRICS` | Enable Metrics | `TRUE` | x |
170+
| `CONTAINER_ENABLE_MONITORING` | Enable Monitoring of applications or metrics | `TRUE` | |
171+
| `CONTAINR_MONITORING_BACKEND` | What monitoring agent to use `zabbix` | `zabbix` | |
172+
| `CONTAINER_ENABLE_MESSAGING` | Enable Messaging services like SMTP | `TRUE` | |
173+
| `CONTAINER_MESSAGING_BACKEND` | Messaging Backend - presently only `msmtp` | `msmtp` | |
174+
| `CONTAINER_ENABLE_SCHEDULING` | Enable Scheduled Tasks | `TRUE` | |
175+
| `CONTAINR_SCHEDULING_BACKEND` | What scheduling tool to use `cron` | `cron` | |
176+
| `CONTAINER_ENABLE_LOGROTATE` | Enable Logrotate (if scheduling enabled) | `TRUE` | |
177+
| `CONTAINER_ENABLE_LOGSHIPPING` | Enable Log Shipping | `FALSE` | |
178+
| `CONTAINER_LOGSHIPPING_BACKEND` | Log shipping backend `fluentbit` | `fluentbit` | |
179+
| `CONTAINER_ENABLE_FIREWALL` | Enable Firewall Functionality | `FALSE` | |
180+
| `CONTAINER_FIREWALL_BACKEND` | What Firewall backend to use `iptables` | `iptables` | |
181181

182182
#### Networking Options
183183
##### Firewall Options

rootfs/container/base/defaults/container

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CONTAINER_ENABLE_SCHEDULING=${CONTAINER_ENABLE_SCHEDULING:-"FALSE"}
1515
CONTAINER_ENABLE_SECRETS=${CONTAINER_ENABLE_SECRETS:-"FALSE"}
1616
CONTAINER_ENABLE_VPN=${CONTAINER_ENABLE_VPN:-"FALSE"}
1717
CONTAINER_FIREWALL_BACKEND=${CONTAINER_FIREWALL_BACKEND:-"iptables"}
18-
CONTAINER_LOGSHIPPING_BACKEND=${CONTAINER_LOGSHIPPING_BACKEND:-"fluent-bit"}
18+
CONTAINER_LOGSHIPPING_BACKEND=${CONTAINER_LOGSHIPPING_BACKEND:-"fluentbit"}
1919
CONTAINER_LOG_LEVEL=${CONTAINER_LOG_LEVEL:-"NOTICE"}
2020
CONTAINER_MESSAGING_BACKEND=${CONTAINER_MESSAGING_BACKEND:-"msmtp"}
2121
CONTAINER_MONITORING_BACKEND=${CONTAINER_MONITORING_BACKEND:-"zabbix"}

rootfs/container/base/functions/container/available/packages

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,6 @@ package() {
6060
;;
6161
esac
6262

63-
for symlink in \
64-
/usr/local/bin/go \
65-
/usr/local/bin/godoc \
66-
/usr/local/bin/gfmt \
67-
; do \
68-
if [ -L "${symlink}" ] && ! [ -e "${symlink}" ]; then
69-
rm -f "${symlink}"
70-
fi
71-
done
72-
7363
rm -rf \
7464
/build-assets \
7565
/etc/logrotate.d/{*,.??*} \
@@ -81,6 +71,16 @@ package() {
8171
/usr/src/{*,.??*} \
8272
/var/log/{*,.??*} \
8373
/var/tmp/{*,.??*}
74+
75+
for symlink in \
76+
/usr/local/bin/go \
77+
/usr/local/bin/godoc \
78+
/usr/local/bin/gfmt \
79+
; do \
80+
if [ -L "${symlink}" ] && ! [ -e "${symlink}" ]; then
81+
rm -f "${symlink}"
82+
fi
83+
done
8484
;;
8585
esac
8686
}

rootfs/container/base/init/init.d/05-logging

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515

1616
if var_true "${CONTAINER_ENABLE_LOGSHIPPING}" ; then
1717
if ! binary_exists $(var_value ${CONTAINER_LOGSHIPPING_BACKEND^^}_BINARY); then
18-
print_debug "Disabling Log Shipping Backend ${CONTAINER_LOGSHIPPIPNG_BACKEND} - Binary '$(echo ${CONTAINER_LOGSHIPPING_BACKEND^^}_BINARY)' not found"
18+
print_debug "Disabling Log Shipping Backend ${CONTAINER_LOGSHIPPIPNG_BACKEND^^} - Binary '$(echo ${CONTAINER_LOGSHIPPING_BACKEND^^}_BINARY)' not found"
1919
service_stop "$(basename "$0")"
2020
else
2121
call nfra_configure_logging_${CONTAINER_LOGSHIPPING_BACKEND/-/}_init

rootfs/container/base/modules/fluentbit/module

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ install() {
230230
mkdir -p /etc/fluent-bit/parsers.d
231231
mkdir -p /etc/fluent-bit/conf.d
232232
strip /usr/bin/fluent-bit
233+
ln -s /usr/bin/fluent-bit /usr/local/bin/fluentbit
233234

234235
if [ -d "$(dirname "$0")"/rootfs ]; then
235236
cp -aR "$(dirname "$0")"/rootfs/* /

rootfs/container/base/modules/fluentbit/rootfs/container/base/functions/logging/fluentbit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ EOF
183183
unset "${!LOGSHIP_@}"
184184

185185
## Defaults
186-
for default in $(find find /container/base/defaults/* /container/defaults/* /override/base/defaults* /override/defaults/* -type f ! -name *.enc* -print 2>/dev/null); do
186+
for default in $(find find /container/base/defaults/* /container/defaults/* /override/base/defaults* /override/defaults/* -type f ! -name *.enc* ! -name .*.age ! -name .nfrastack -print 2>/dev/null); do
187187
# shellcheck source=/container/defaults/
188188
source "${default}"
189189
logshipenv=$(mktemp)
@@ -477,5 +477,5 @@ EOF
477477
print_start "[logship] Starting fluent-bit ${FLUENTBIT_VERSION}"
478478
output_on
479479
liftoff
480-
silent exec ${FLUENTBIT_BINARY} -c /etc/fluent-bit/fluent-bit.conf
480+
exec ${FLUENTBIT_BINARY} -c /etc/fluent-bit/fluent-bit.conf >/dev/null 2>&1
481481
}

0 commit comments

Comments
 (0)