Skip to content

Commit

Permalink
Update crowdsec image version to v1.6.1-2-debian and remove hub updat…
Browse files Browse the repository at this point in the history
…e and upgrade (#42)

* Update crowdsec image version to v1.6.1-2-debian
* Remove hub update and upgrade to avoid rate limit
* Update crowdsec-upgrade-hub.timer with adjusted timing settings
  • Loading branch information
stephdl authored Apr 26, 2024
1 parent 976e19c commit 3d7791d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ buildah add "${container}" ui/dist /ui
buildah config --entrypoint=/ \
--label="org.nethserver.authorizations=" \
--label="org.nethserver.rootfull=1" \
--label="org.nethserver.images=docker.io/crowdsecurity/crowdsec:v1.6.0-1-debian ${repobase}/crowdsec-firewall-bouncer:${IMAGETAG:-latest}" \
--label="org.nethserver.images=docker.io/crowdsecurity/crowdsec:v1.6.1-2-debian ${repobase}/crowdsec-firewall-bouncer:${IMAGETAG:-latest}" \
--label="org.nethserver.tcp-ports-demand=2" \
"${container}"
# Commit the image
Expand Down
3 changes: 0 additions & 3 deletions imageroot/actions/create-module/10initialize
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ systemctl enable --now "${MODULE_ID}.service"
systemctl enable --now "${MODULE_ID}-upgrade-hub.timer"

# Install default collections
podman exec -i ${MODULE_ID} cscli hub update
podman exec -i ${MODULE_ID} cscli hub upgrade

podman exec -i ${MODULE_ID} cscli collections install \
crowdsecurity/apache2 \
crowdsecurity/base-http-scenarios \
Expand Down
2 changes: 1 addition & 1 deletion imageroot/crowdsec-upgrade-hub.timer
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Timer of crowdsec hub update

[Timer]
OnActiveSec=15 minutes
OnActiveSec=4 hours
OnUnitInactiveSec=15 days

[Install]
Expand Down

0 comments on commit 3d7791d

Please sign in to comment.