Skip to content

Commit

Permalink
Saved old Python2 script, add dockerfile and requirements.txt for eas…
Browse files Browse the repository at this point in the history
…y pip installation
  • Loading branch information
AaronSeibert committed May 1, 2020
1 parent abc775c commit 20c4799
Show file tree
Hide file tree
Showing 4 changed files with 666 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
venv
19 changes: 19 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3

# Copy our script and make it executable
COPY ./script/LogsDownloader.py /usr/local/bin/imperva-connector.py
RUN chmod 755 /usr/local/bin/imperva-connector.py

# We need SWIG as well
RUN apt-get update
RUN apt-get install -y swig openssl python-pip build-essential python-dev libssl-dev git

# Copy requirements.txt and install with pip
COPY ./script/requirements.txt /
RUN pip install -r /requirements.txt

# Copy our settings
COPY ./config/Settings.Config /etc/incapsula/logs/config/Settings.Config

# Run our script
CMD "/usr/local/bin/imperva-connector.py"
Loading

0 comments on commit 20c4799

Please sign in to comment.