-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
Alpine docker images support + dockerfile & Requirements.txt cleanup
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cortexutils | ||
git+https://github.com/PaloAltoNetworks/autofocus-client-library | ||
autofocus-client-library |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
FROM python:3 | ||
FROM python:3-alpine | ||
WORKDIR /worker | ||
COPY . Capa | ||
|
||
# Install required tools | ||
RUN apt-get update && apt-get install -y \ | ||
RUN apk add --no-cache \ | ||
curl \ | ||
jq \ | ||
unzip && \ | ||
rm -rf /var/lib/apt/lists/* | ||
unzip \ | ||
bash && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY requirements.txt Capa/ | ||
RUN test ! -e Capa/requirements.txt || pip install --no-cache-dir -r Capa/requirements.txt | ||
|
||
# Add a script to fetch the latest capa release and extract it | ||
COPY fetch_capa.sh /worker/fetch_capa.sh | ||
RUN chmod +x /worker/fetch_capa.sh && /worker/fetch_capa.sh | ||
|
||
RUN test ! -e Capa/requirements.txt || pip install --no-cache-dir -r Capa/requirements.txt | ||
ENTRYPOINT "Capa/CapaAnalyze.py" | ||
COPY . Capa/ | ||
|
||
ENTRYPOINT ["python", "Capa/CapaAnalyze.py"] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
cortexutils | ||
cyapi | ||
setuptools |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ elasticsearch | |
cortexutils | ||
pytz | ||
requests | ||
python-dateutil |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
cortexutils | ||
grr-api-client | ||
setuptools |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM python:3-alpine | ||
WORKDIR /worker | ||
|
||
# Install libmagic (development package provides libmagic.so symlink) | ||
RUN apk add --no-cache file-dev | ||
|
||
COPY requirements.txt OpenCTI/ | ||
RUN test ! -e OpenCTI/requirements.txt || pip install --no-cache-dir -r OpenCTI/requirements.txt | ||
COPY . OpenCTI/ | ||
|
||
ENTRYPOINT ["python", "OpenCTI/opencti.py"] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM python:3.9 | ||
FROM python:3-alpine | ||
|
||
WORKDIR /worker | ||
COPY . VirusTotal | ||
RUN apt update | ||
RUN apt install -y -q libimage-exiftool-perl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --no-cache-dir -r VirusTotal/requirements.txt | ||
# install runtime dependencies. | ||
RUN apk add --no-cache perl-image-exiftool file-dev | ||
|
||
COPY requirements.txt VirusTotal/ | ||
|
||
# Install Python dependencies from requirements.txt | ||
RUN test ! -e VirusTotal/requirements.txt || pip install --no-cache-dir -r VirusTotal/requirements.txt | ||
|
||
COPY . VirusTotal | ||
|
||
ENTRYPOINT VirusTotal/virustotal.py | ||
ENTRYPOINT ["python", "VirusTotal/virustotal.py"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM python:3-alpine | ||
WORKDIR /worker | ||
|
||
RUN apk add --no-cache git | ||
|
||
COPY requirements.txt Yeti/ | ||
RUN test ! -e Yeti/requirements.txt || pip install --no-cache-dir -r Yeti/requirements.txt | ||
COPY . Yeti/ | ||
|
||
ENTRYPOINT ["python", "Yeti/yeti.py"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cortexutils | ||
git+https://github.com/yeti-platform/pyeti | ||
git+https://github.com/yeti-platform/pyeti |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
cortexutils | ||
cp-mgmt-api-sdk | ||
# -e git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk#egg=cpapi cpapi | ||
git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk | ||
#git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
FROM python:3 | ||
|
||
FROM python:3-alpine | ||
WORKDIR /worker | ||
COPY . Gmail | ||
RUN pip install --no-cache-dir -r Gmail/requirements.txt | ||
ENTRYPOINT Gmail/Gmail.py | ||
|
||
# Install libmagic (development package provides libmagic.so symlink) | ||
RUN apk add --no-cache file-dev | ||
|
||
COPY requirements.txt Gmail/ | ||
RUN test ! -e Gmail/requirements.txt || pip install --no-cache-dir -r Gmail/requirements.txt | ||
COPY . Gmail/ | ||
|
||
ENTRYPOINT ["python", "Gmail/Gmail.py"] |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3-alpine | ||
|
||
WORKDIR /worker | ||
|
||
# install runtime dependencies | ||
RUN apk add --no-cache file-dev | ||
|
||
COPY requirements.txt MailIncidentStatus/ | ||
|
||
# Install Python dependencies from requirements.txt | ||
RUN test ! -e MailIncidentStatus/requirements.txt || pip install --no-cache-dir -r MailIncidentStatus/requirements.txt | ||
|
||
COPY . MailIncidentStatus | ||
|
||
ENTRYPOINT ["python", "MailIncidentStatus/mailincidentstatus.py"] |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
cortexutils | ||
requests | ||
pan-os-python | ||
thehive4py~=1.8.1 | ||
thehive4py~=1.8.1 | ||
setuptools |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
sendgrid | ||
cortexutils |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
cortexutils | ||
cortexutils | ||
requests |