Skip to content

Commit 7fabe8f

Browse files
authored
bump to 1.7.0 (#86)
1 parent 2631db5 commit 7fabe8f

3 files changed

Lines changed: 26 additions & 22 deletions

File tree

crowdsec/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.7.0
4+
5+
- Bump crowdsec version to 1.7.0
6+
37
## 1.6.11
48

59
- Bump crowdsec version to 1.6.11

crowdsec/Dockerfile

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ RUN apt-get install -y -q --install-recommends --no-install-suggests \
1616
vim \
1717
nano \
1818
&& if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "armv7" ]; then \
19-
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_arm"; \
19+
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_arm"; \
2020
elif [ "${BUILD_ARCH}" = "aarch64" ]; then \
21-
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_arm64"; \
21+
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_arm64"; \
2222
elif [ "${BUILD_ARCH}" = "i386" ]; then \
23-
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_386"; \
23+
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_386"; \
2424
elif [ "${BUILD_ARCH}" = "amd64" ]; then \
25-
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_amd64"; \
25+
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_amd64"; \
2626
else \
27-
exit 1; \
27+
exit 1; \
2828
fi \
2929
&& if [ "${BUILD_ARCH}" = "armhf" ]; then \
30-
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.armhf"; \
30+
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.armhf"; \
3131
elif [ "${BUILD_ARCH}" = "armv7" ]; then \
32-
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.arm"; \
32+
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.arm"; \
3333
elif [ "${BUILD_ARCH}" = "aarch64" ]; then \
34-
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.aarch64"; \
34+
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.aarch64"; \
3535
elif [ "${BUILD_ARCH}" = "i386" ] || [ "${BUILD_ARCH}" = "amd64" ]; then \
36-
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64"; \
36+
wget -q -O /usr/bin/ttyd "https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64"; \
3737
else \
38-
exit 1; \
38+
exit 1; \
3939
fi \
4040
&& chmod +x /usr/bin/yq \
4141
&& chmod +x /usr/bin/ttyd \
@@ -46,18 +46,18 @@ RUN echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/
4646
#Add alias until env variables will be supported by crowdsec.
4747
RUN echo 'alias cscli="cscli -c /config/.storage/crowdsec/config/config.yaml"' > /root/.bashrc
4848

49-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec /etc/crowdsec
50-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/var/lib/crowdsec /var/lib/crowdsec
51-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /usr/local/bin/crowdsec /usr/local/bin/crowdsec
52-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /usr/local/bin/cscli /usr/local/bin/cscli
53-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /docker_start.sh /docker_start.sh
54-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec/config.yaml /etc/crowdsec/config.yaml
49+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/etc/crowdsec /etc/crowdsec
50+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/var/lib/crowdsec /var/lib/crowdsec
51+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /usr/local/bin/crowdsec /usr/local/bin/crowdsec
52+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /usr/local/bin/cscli /usr/local/bin/cscli
53+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /docker_start.sh /docker_start.sh
54+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/etc/crowdsec/config.yaml /etc/crowdsec/config.yaml
5555
#Due to the wizard using cp -n, we have to copy the config files directly from the source as -n does not exist in busybox cp
5656
#The files are here for reference, as users will need to mount a new version to be actually able to use notifications
57-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec/notifications/email.yaml /etc/crowdsec/notifications/email.yaml
58-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec/notifications/http.yaml /etc/crowdsec/notifications/http.yaml
59-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec/notifications/slack.yaml /etc/crowdsec/notifications/slack.yaml
60-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec/notifications/splunk.yaml /etc/crowdsec/notifications/splunk.yaml
57+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/etc/crowdsec/notifications/email.yaml /etc/crowdsec/notifications/email.yaml
58+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/etc/crowdsec/notifications/http.yaml /etc/crowdsec/notifications/http.yaml
59+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/etc/crowdsec/notifications/slack.yaml /etc/crowdsec/notifications/slack.yaml
60+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /staging/etc/crowdsec/notifications/splunk.yaml /etc/crowdsec/notifications/splunk.yaml
6161
# This is an ugly workaround for an issue reported on discord
6262
# The container fails to start with the error "ln: failed to create symbolic link '/var/lib/crowdsec/data/*': File exists"
6363
# In the HA container, /staging/var/lib/crowdsec/data/ does not exist, and the crowdsec docker_start.sh script loops
@@ -68,7 +68,7 @@ COPY --from=crowdsecurity/crowdsec:v1.6.11 /staging/etc/crowdsec/notifications/s
6868
RUN mkdir -p /staging/var/lib/crowdsec/data/ && touch /staging/var/lib/crowdsec/data/crowdsec.db
6969
# workaround to avoid having build issue ("failed to create image: failed to get layer")
7070
RUN true
71-
COPY --from=crowdsecurity/crowdsec:v1.6.11 /usr/local/lib/crowdsec/plugins /usr/local/lib/crowdsec/plugins
71+
COPY --from=crowdsecurity/crowdsec:v1.7.0 /usr/local/lib/crowdsec/plugins /usr/local/lib/crowdsec/plugins
7272

7373
# Copy root filesystem
7474
COPY rootfs /

crowdsec/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Crowdsec"
22
description: "CrowdSec - the open-source and participative IPS"
33
url: "https://github.com/crowdsecurity/home-assistant-addons/blob/main/crowdsec/DOCS.md"
4-
version: "1.6.11"
4+
version: "1.7.0"
55
slug: "crowdsec"
66
init: false
77
ingress: true

0 commit comments

Comments
 (0)