-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (39 loc) · 1.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Use an official Python runtime as a parent image
FROM dockerhub.devops.telekom.de/python:3-alpine
# Set environment variables
ENV SAFESCARF_ENGAGEMENT_PERIOD=7 \
TODAY="" \
ENDDAY="" \
CI_PIPELINE_ID="" \
CI_COMMIT_DESCRIPTION="Commit description" \
CI_PROJECT_URL="https://gitlab.com/mygroup/myproject" \
SAFESCARF_ENGAGEMENT_THREAT_MODEL="true" \
SAFESCARF_ENGAGEMENT_API_TEST="true" \
SAFESCARF_ENGAGEMENT_PEN_TEST="true" \
SAFESCARF_ENGAGEMENT_CHECK_LIST="true" \
SAFESCARF_ENGAGEMENT_STATUS="Not Started" \
SAFESCARF_ENGAGEMENT_DEDUPLICATION_ON_ENGAGEMENT="false" \
SAFESCARF_ENGAGEMENT_BUILD_SERVER="null" \
SAFESCARF_ENGAGEMENT_SOURCE_CODE_MANAGEMENT_SERVER="null" \
SAFESCARF_ENGAGEMENT_ORCHESTRATION_ENGINE="null" \
SAFESCARF_SCAN_MINIMUM_SEVERITY="Info" \
SAFESCARF_SCAN_ACTIVE="true" \
SAFESCARF_SCAN_VERIFIED="true" \
SAFESCARF_SCAN_TYPE="type" \
SAFESCARF_SCAN_CLOSE_OLD_FINDINGS="true" \
SAFESCARF_SCAN_PUSH_TO_JIRA="false" \
SAFESCARF_SCAN_ENVIRONMENT="Default" \
SAFESCARF_API_TOKEN="" \
SAFESCARF_URL="" \
SAFESCARF_ENGAGEMENT_ID="" \
SAFESCARF_WORKFLOW=""
# Install any dependencies your script needs
COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
# Copy your Python scripts into the container
COPY safescarf-connector.py /app/safescarf-connector.py
COPY safescarf-upload-testing.py /app/safescarf-upload-testing.py
# Set the working directory to /app
WORKDIR /app
# Run your script when the container launches
CMD ["python", "safescarf-connector.py"]