Skip to content
Open
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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ RUN poetry config virtualenvs.in-project true ;\
FROM base AS final

RUN mkdir /.pysnmp && chown 10001:10001 /.pysnmp
COPY manage_secrets.py /app/secrets/
RUN chown 10001:10001 /app/secrets/
RUN chown 10001:10001 /tmp
USER 10001:10001
COPY --from=builder /app/.venv /app/.venv
Expand Down
3 changes: 3 additions & 0 deletions docker_compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@ SCHEDULER_LOG_LEVEL=INFO
FLOWER_PORT=80

#Secrets
SECRET_FOLDER_PATH=
ENABLE_TRAPS_SECRETS=false
ENABLE_WORKER_POLLER_SECRETS=false
4 changes: 4 additions & 0 deletions docker_compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ services:
LOG_LEVEL: ${TRAP_LOG_LEVEL:-INFO}
SNMP_V3_SECURITY_ENGINE_ID: ${SNMP_V3_SECURITY_ENGINE_ID:-80003a8c04}
DISABLE_MONGO_DEBUG_LOGGING: ${TRAP_DISABLE_MONGO_DEBUG_LOGGING:-true}
ENABLE_TRAPS_SECRETS: ${ENABLE_TRAPS_SECRETS:-false}
image: ${SC4SNMP_IMAGE}:${SC4SNMP_TAG:-latest}
ports:
- mode: host
Expand All @@ -157,6 +158,7 @@ services:
- ${TRAPS_CONFIG_FILE_ABSOLUTE_PATH}:/app/config/config.yaml:ro
- traps-pysnmp-cache-volume:/.pysnmp/:rw
- traps-tmp:/tmp/:rw
- ${SECRET_FOLDER_PATH}:/app/secrets/tmp:ro
worker-poller:
<<: [*dns_and_networks, *dependency_and_restart_policy]
image: ${SC4SNMP_IMAGE}:${SC4SNMP_TAG:-latest}
Expand All @@ -178,10 +180,12 @@ services:
*pysnmp_debug, *ipv6]
WORKER_CONCURRENCY: ${WORKER_POLLER_CONCURRENCY:-2}
PREFETCH_COUNT: ${PREFETCH_POLLER_COUNT:-1}
ENABLE_WORKER_POLLER_SECRETS: ${ENABLE_WORKER_POLLER_SECRETS:-false}
volumes:
- ${SCHEDULER_CONFIG_FILE_ABSOLUTE_PATH}:/app/config/config.yaml:ro
- worker-poller-pysnmp-cache-volume:/.pysnmp/:rw
- worker-poller-tmp:/tmp/:rw
- ${SECRET_FOLDER_PATH}:/app/secrets/tmp:ro
worker-sender:
<<: [*dns_and_networks, *dependency_and_restart_policy]
image: ${SC4SNMP_IMAGE}:${SC4SNMP_TAG:-latest}
Expand Down
349 changes: 0 additions & 349 deletions docker_compose/manage_secrets.py

This file was deleted.

Loading
Loading