-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa976e4
commit 7dee811
Showing
15 changed files
with
231 additions
and
77 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
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 was deleted.
Oops, something went wrong.
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,20 +1,26 @@ | ||
FROM ubuntu:latest | ||
RUN apt-get update | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get install -y -q build-essential python3-pip python3-dev python3-simplejson git nano curl | ||
RUN pip3 install --upgrade virtualenv | ||
ENV TZ=Europe/Rome | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN mkdir deployment | ||
RUN virtualenv /deployment/env/ | ||
RUN /deployment/env/bin/python -m pip install --upgrade pip | ||
RUN /deployment/env/bin/pip3 install fastapi uvicorn requests jinja2 json2html clickhouse-driver | ||
RUN apt-get update && \ | ||
apt-get install -y -q build-essential python3-pip python3-dev python3-simplejson git nano curl && \ | ||
pip3 install fastapi uvicorn requests clickhouse-driver python-dateutil && \ | ||
# f5ttfs.py | ||
pip3 install flask && \ | ||
mkdir deployment | ||
|
||
WORKDIR /deployment | ||
|
||
COPY f5ttfs.py . | ||
COPY app.py . | ||
COPY nms.py . | ||
COPY bigiq.py . | ||
COPY cveDB.py . | ||
COPY f5ttCH.py . | ||
COPY utils.py . | ||
COPY startup.sh . | ||
|
||
RUN chmod +x startup.sh | ||
|
||
CMD env/bin/python3 app.py | ||
CMD ./startup.sh |
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
Oops, something went wrong.