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 29f38a0 commit 08e2161
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ USER assemblyline

# Copy MetaDefender 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
4 changes: 2 additions & 2 deletions service_manifest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MetaDefender
version: 1
version: $SERVICE_TAG
description: >
Scan your files with a multi antivirus scanning engine.
Expand Down Expand Up @@ -40,6 +40,6 @@ heuristics:
description: MetaDefender Antivirus hit.

docker_config:
image: ${REGISTRY}cccs/assemblyline-service-metadefender:latest
image: ${REGISTRY}cccs/assemblyline-service-metadefender:$SERVICE_TAG
cpu_cores: 0.25
ram_mb: 256

0 comments on commit 08e2161

Please sign in to comment.