-
-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into CREATE_SCAN_COMPARE
- Loading branch information
Showing
24 changed files
with
1,517 additions
and
293 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
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
FROM python:3.11.9-slim | ||
RUN apt update | ||
FROM python:3.11.10-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y gcc libssl-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install --upgrade pip poetry | ||
|
||
WORKDIR /usr/src/owaspnettacker | ||
COPY . . | ||
RUN mkdir -p .data/results | ||
RUN apt-get update | ||
RUN apt-get install -y gcc libssl-dev | ||
RUN pip3 install --upgrade poetry | ||
RUN python -m poetry install | ||
|
||
COPY nettacker nettacker | ||
COPY nettacker.py poetry.lock pyproject.toml README.md ./ | ||
|
||
RUN poetry install --no-cache --no-root --without dev --without test | ||
|
||
ENV docker_env=true | ||
|
||
CMD [ "poetry", "run", "python", "./nettacker.py" ] |
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
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
version: "3" | ||
|
||
services: | ||
nettacker: | ||
build: | ||
context: . | ||
dockerfile: "Dockerfile" | ||
command: poetry run python nettacker.py --start-api --api-host 0.0.0.0 | ||
dockerfile: Dockerfile | ||
command: poetry run python ./nettacker.py --start-api --api-host 0.0.0.0 | ||
container_name: nettacker | ||
environment: | ||
- docker_env=true | ||
ports: | ||
- 5000:5000 | ||
volumes: | ||
- ./:/usr/src/owaspnettacker | ||
environment: | ||
- docker_env=true | ||
- ./nettacker:/usr/src/owaspnettacker/nettacker |
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
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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
"""OWASP Nettacker application entry point.""" | ||
|
||
from nettacker.core.app import Nettacker | ||
from nettacker.main import run | ||
|
||
if __name__ == "__main__": | ||
app = Nettacker() | ||
app.run() | ||
run() |
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
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
Oops, something went wrong.