Skip to content

Commit

Permalink
Merge pull request #469 from Patrowl/enhance-spf
Browse files Browse the repository at this point in the history
Enhance SPF
  • Loading branch information
sebastien-powl authored Jul 1, 2024
2 parents 22e73b1 + b07cb0e commit f6df165
Show file tree
Hide file tree
Showing 6 changed files with 915 additions and 121 deletions.
29 changes: 14 additions & 15 deletions engines/owl_dns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,32 @@ RUN mkdir -p /opt/patrowl-engines/owl_dns
RUN mkdir -p /opt/patrowl-engines/owl_dns/results
RUN mkdir -p /opt/patrowl-engines/owl_dns/external-libs

# Set the working directory to /opt/<engine_name>
WORKDIR /opt/patrowl-engines/owl_dns

# Copy the current directory contents into the container at /
COPY __init__.py .
COPY engine-owl_dns.py .
COPY owl_dns.json.sample owl_dns.json
COPY requirements.txt .
COPY README.md .
COPY VERSION .
COPY etc/ etc/
COPY modules/ modules/

WORKDIR /opt/patrowl-engines/owl_dns/external-libs
RUN git clone https://github.com/Patrowl/Sublist3r
WORKDIR /opt/patrowl-engines/owl_dns/external-libs/Sublist3r
RUN pip3 install --trusted-host pypi.python.org -r requirements.txt
WORKDIR /opt/patrowl-engines/owl_dns/external-libs
RUN git clone https://github.com/elceef/dnstwist

# Set the working directory to /opt/<engine_name>
WORKDIR /opt/patrowl-engines/owl_dns

# Install python modules for engine
WORKDIR /opt/patrowl-engines/owl_dns/
COPY requirements.txt .
RUN pip3 install --upgrade pip
RUN pip3 install --trusted-host pypi.python.org -r requirements.txt

# Copy the current directory contents into the container at /
COPY __init__.py .
COPY engine_owl_dns.py .
COPY owl_dns.json.sample owl_dns.json
COPY README.md .
COPY VERSION .
COPY etc/ etc/
COPY modules/ modules/

# TCP port exposed by the container (NAT)
EXPOSE 5006

# Run app.py when the container launches
CMD ["gunicorn", "engine-owl_dns:app", "-b", "0.0.0.0:5006", "--access-logfile", "-", "--threads", "10"]
CMD ["gunicorn", "engine_owl_dns:app", "-b", "0.0.0.0:5006", "--access-logfile", "-", "--threads", "10"]
4 changes: 2 additions & 2 deletions engines/owl_dns/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ WORKDIR /opt/patrowl-engines/owl_dns/

# Copy the current directory contents into the container at /
COPY __init__.py .
COPY engine-owl_dns.py .
COPY engine_owl_dns.py .
COPY owl_dns.json.sample owl_dns.json
COPY requirements.txt .
COPY README.md .
Expand Down Expand Up @@ -48,4 +48,4 @@ RUN pip3 install --trusted-host pypi.python.org -r requirements.txt
EXPOSE 5006

# Run app.py when the container launches
CMD ["gunicorn", "engine-owl_dns:app", "-b", "0.0.0.0:5006", "--access-logfile", "-", "--threads", "10"]
CMD ["gunicorn", "engine_owl_dns:app", "-b", "0.0.0.0:5006", "--access-logfile", "-", "--threads", "10"]
4 changes: 4 additions & 0 deletions engines/owl_dns/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys

sys.path.append(os.path.dirname(os.path.realpath(__file__)))

__title__ = "patrowl_engine_owl_dns"
__version__ = "1.5.8"
Expand Down
Loading

0 comments on commit f6df165

Please sign in to comment.