@@ -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.
4747RUN 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
6868RUN 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")
7070RUN 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
7474COPY rootfs /
0 commit comments