File tree Expand file tree Collapse file tree 3 files changed +55
-3
lines changed Expand file tree Collapse file tree 3 files changed +55
-3
lines changed Original file line number Diff line number Diff line change 1+ name : (push-master) Update Docker Hub README
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - ' docker/README.md'
9+
10+ jobs :
11+ update-docker-hub-readme :
12+ runs-on : ubuntu-latest
13+ steps :
14+
15+ -
16+ name : Check out the repo
17+ uses : actions/checkout@v4
18+ if : ${{ github.repository_owner == 'crowdsecurity' }}
19+
20+ -
21+ name : Update docker hub README
22+ uses : peter-evans/dockerhub-description@v4
23+ if : ${{ github.repository_owner == 'crowdsecurity' }}
24+ with :
25+ username : ${{ secrets.DOCKER_USERNAME }}
26+ password : ${{ secrets.DOCKER_PASSWORD }}
27+ repository : crowdsecurity/crowdsec
28+ short-description : ${{ github.event.repository.description }}
29+ readme-filepath : " ./docker/README.md"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COPY . .
1010RUN make build DOCKER_BUILD=1
1111
1212FROM alpine:3.21
13- COPY --from=build /go/src/cs-custom-bouncer/crowdsec-custom-bouncer /usr/local/bin/ crowdsec-custom-bouncer
14- COPY --from=build /go/src/cs-custom-bouncer/config/crowdsec-custom-bouncer.yaml /etc/crowdsec/bouncers/ crowdsec-custom-bouncer.yaml
13+ COPY --from=build /go/src/cs-custom-bouncer/crowdsec-custom-bouncer /crowdsec-custom-bouncer
14+ COPY --from=build /go/src/cs-custom-bouncer/config/crowdsec-custom-bouncer.yaml /crowdsec-custom-bouncer.yaml
1515
16- ENTRYPOINT ["/usr/local/bin/ crowdsec-custom-bouncer" , "-c" , "/etc/crowdsec/bouncers /crowdsec-custom-bouncer.yaml" ]
16+ ENTRYPOINT ["/crowdsec-custom-bouncer" , "-c" , "/crowdsec-custom-bouncer.yaml" ]
Original file line number Diff line number Diff line change 1+ # Quick reference
2+
3+ CrowdSec bouncer to use custom scripts.
4+
5+ For all the options, refer to the documentation: https://docs.crowdsec.net/u/bouncers/custom/
6+
7+ To use the container image, mount your configuration and the script that will receive decision notifications.
8+
9+
10+ ``` bash
11+ $ cat config.yaml
12+ bin_path: /custom-script
13+ feed_via_stdin: true # Invokes binary once and feeds incoming decisions to it's stdin.
14+ total_retries: 3
15+ log_mode: stdout
16+ api_url: http://127.0.0.1:8080/
17+ api_key: " ......"
18+ $ docker run \
19+ --network host \
20+ -v $( pwd) /config.yaml:/crowdsec-custom-bouncer.yaml \
21+ -v $( pwd) /custom-script:/custom-script crowdsecurity/cs-custom-bouncer:latest
22+ ...
23+ ```
You can’t perform that action at this time.
0 commit comments