forked from imperva/incapsula-logs-downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Saved old Python2 script, add dockerfile and requirements.txt for eas…
…y pip installation
- Loading branch information
1 parent
abc775c
commit 20c4799
Showing
4 changed files
with
666 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.