Skip to content

Commit

Permalink
Patch Dockerfile and service_manifest.yml for the new service version…
Browse files Browse the repository at this point in the history
… enforcement
  • Loading branch information
cccs-sgaron committed Jun 3, 2020
1 parent 665caa3 commit c25700b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,12 @@ USER assemblyline

# Copy Suricata service code
WORKDIR /opt/al_service
COPY . .
COPY . .

# Patch version in manifest
ARG version=4.0.0.dev1
USER root
RUN sed -i -e "s/\$SERVICE_TAG/$version/g" service_manifest.yml

# Switch to assemblyline user
USER assemblyline
6 changes: 3 additions & 3 deletions service_manifest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Suricata
version: 1
version: $SERVICE_TAG
description: This service scans network capture files with signature and extract files from network capture.

accepts: network/.*
Expand Down Expand Up @@ -47,7 +47,7 @@ heuristics:
description: Suricata basic signature hit

docker_config:
image: ${REGISTRY}cccs/assemblyline-service-suricata:latest
image: ${REGISTRY}cccs/assemblyline-service-suricata:$SERVICE_TAG
cpu_cores: 1
ram_mb: 1024

Expand All @@ -57,7 +57,7 @@ update_config:
run_options:
allow_internet_access: true
command: ["python", "-m", "suricata_.suricata_updater"]
image: ${REGISTRY}cccs/assemblyline-service-suricata:latest
image: ${REGISTRY}cccs/assemblyline-service-suricata:$SERVICE_TAG
sources:
- name: emt
pattern: .*\.rules
Expand Down

0 comments on commit c25700b

Please sign in to comment.