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

Release suricata-threatbus Docker image together with Threat Bus #137

Merged
merged 3 commits into from
Jun 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]