Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #137
Browse files Browse the repository at this point in the history
Release `suricata-threatbus` Docker image together with Threat Bus
  • Loading branch information
0snap authored Jun 28, 2021
2 parents ebd1227 + f44a378 commit 26b9d36
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/python-egg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
workdir: apps/stix-shifter
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Publish suricata-threatbus Docker Image
uses: elgohr/Publish-Docker-Github-Action@3.04
with:
name: tenzir/suricata-threatbus
workdir: apps/suricata
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

egg-release:
name: Egg Release
Expand Down
6 changes: 5 additions & 1 deletion apps/suricata/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ Every entry has a category for which we use the following visual abbreviations:
- ⚡️ Breaking Changes
- 🐞 Bug Fixes

<!-- ## Unreleased -->
## Unreleased

- 🎁 We now release a pre-built Docker image for `suricata-threatbus` together
with our future Threat Bus releases.
[#137](https://github.com/tenzir/threatbus/pull/137)

## [2021.06.24]

Expand Down
19 changes: 19 additions & 0 deletions apps/suricata/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:buster-slim

RUN apt-get -qq update && apt-get -qqy install \
python3-pip software-properties-common

RUN pip3 install --upgrade pip

WORKDIR /opt/tenzir/threatbus/suricata-threatbus
COPY setup.py .
COPY README.md .
COPY suricata_threatbus suricata_threatbus
RUN python3 -m pip install .

RUN echo "Adding threatbus user" && useradd -m -d /home/threatbus --user-group threatbus
RUN chown -R threatbus .
USER threatbus:threatbus

ENTRYPOINT ["suricata-threatbus"]
CMD ["-h"]

0 comments on commit 26b9d36

Please # to comment.