-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync ADA code with private repo version (#9)
* sync code Signed-off-by: Julia Farias <julia.farias@ibm.com> * fix numpy version Signed-off-by: Julia Farias <julia.farias@ibm.com> * fix pandas version Signed-off-by: Julia Farias <julia.farias@ibm.com> * fix typing_extensions version Signed-off-by: Julia Farias <julia.farias@ibm.com> * remove internal content Signed-off-by: Julia Farias <julia.farias@ibm.com> --------- Signed-off-by: Julia Farias <julia.farias@ibm.com>
- Loading branch information
1 parent
1e7c7be
commit 8aadbaa
Showing
10 changed files
with
252 additions
and
63 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 |
---|---|---|
|
@@ -127,3 +127,5 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
.DS_Store | ||
models/.DS_Store |
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,112 @@ | ||
{ | ||
"exclude": { | ||
"files": "^.secrets.baseline$", | ||
"lines": null | ||
}, | ||
"generated_at": "2023-10-23T12:06:31Z", | ||
"plugins_used": [ | ||
{ | ||
"name": "AWSKeyDetector" | ||
}, | ||
{ | ||
"name": "ArtifactoryDetector" | ||
}, | ||
{ | ||
"name": "AzureStorageKeyDetector" | ||
}, | ||
{ | ||
"base64_limit": 4.5, | ||
"name": "Base64HighEntropyString" | ||
}, | ||
{ | ||
"name": "BasicAuthDetector" | ||
}, | ||
{ | ||
"name": "BoxDetector" | ||
}, | ||
{ | ||
"name": "CloudantDetector" | ||
}, | ||
{ | ||
"ghe_instance": "github.ibm.com", | ||
"name": "GheDetector" | ||
}, | ||
{ | ||
"name": "GitHubTokenDetector" | ||
}, | ||
{ | ||
"hex_limit": 3, | ||
"name": "HexHighEntropyString" | ||
}, | ||
{ | ||
"name": "IbmCloudIamDetector" | ||
}, | ||
{ | ||
"name": "IbmCosHmacDetector" | ||
}, | ||
{ | ||
"name": "JwtTokenDetector" | ||
}, | ||
{ | ||
"keyword_exclude": null, | ||
"name": "KeywordDetector" | ||
}, | ||
{ | ||
"name": "MailchimpDetector" | ||
}, | ||
{ | ||
"name": "NpmDetector" | ||
}, | ||
{ | ||
"name": "PrivateKeyDetector" | ||
}, | ||
{ | ||
"name": "SlackDetector" | ||
}, | ||
{ | ||
"name": "SoftlayerDetector" | ||
}, | ||
{ | ||
"name": "SquareOAuthDetector" | ||
}, | ||
{ | ||
"name": "StripeDetector" | ||
}, | ||
{ | ||
"name": "TwilioKeyDetector" | ||
} | ||
], | ||
"results": { | ||
"tests/test_app.py": [ | ||
{ | ||
"hashed_secret": "2d19398bd2ad12800e216c8cac4203dd927bc25d", | ||
"is_secret": false, | ||
"is_verified": false, | ||
"line_number": 55, | ||
"type": "Secret Keyword", | ||
"verified_result": null | ||
}, | ||
{ | ||
"hashed_secret": "c5ab283dcc3668bb26394c66513c98ff0c234692", | ||
"is_secret": false, | ||
"is_verified": false, | ||
"line_number": 76, | ||
"type": "Base64 High Entropy String", | ||
"verified_result": null | ||
}, | ||
{ | ||
"hashed_secret": "4d48c6376ebfec3af94c3d9a1b33f4c045e361f7", | ||
"is_secret": false, | ||
"is_verified": false, | ||
"line_number": 79, | ||
"type": "Secret Keyword", | ||
"verified_result": null | ||
} | ||
] | ||
}, | ||
"version": "0.13.1+ibm.61.dss", | ||
"word_list": { | ||
"file": null, | ||
"hash": null | ||
} | ||
} |
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,30 +1,18 @@ | ||
FROM python:3.7 | ||
|
||
ENV OPEN_JDK_VERSION 8 | ||
ENV JAVA_HOME /usr/lib/jvm/java-${OPEN_JDK_VERSION}-openjdk-amd64 | ||
|
||
RUN echo "deb http://ftp.us.debian.org/debian stretch main" >> /etc/apt/sources.list && \ | ||
apt-get update | ||
|
||
RUN echo 'deb http://ftp.debian.org/debian stretch-backports main' | tee /etc/apt/sources.list.d/stretch-backports.list | ||
FROM python:3.9 | ||
WORKDIR /app | ||
|
||
RUN apt-get update --yes && \ | ||
apt-get install --yes --no-install-recommends \ | ||
"openjdk-${OPEN_JDK_VERSION}-jre-headless" \ | ||
ca-certificates-java && \ | ||
update-ca-certificates -f && \ | ||
apt-get install --yes --no-install-recommends && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir app | ||
|
||
COPY app.py app/app.py | ||
COPY models/ app/models/ | ||
COPY app.py app.py | ||
COPY models/ models/ | ||
COPY requirements.txt requirements.txt | ||
|
||
RUN pip3 install -r requirements.txt | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 7000 | ||
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT [ "python3", "/app/app.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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[tool.poetry] | ||
name = "epm-ada" | ||
version = "1.0.0" | ||
description = "A microservice to retrieve key analytics metrics for task and DAG level from Airflow database instance." |
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,21 @@ | ||
cryptography==3.4.7 | ||
Flask==2.0.3 | ||
Flask_RESTful==0.3.9 | ||
aniso8601==9.0.1 | ||
cffi==1.15.1 | ||
click==8.1.3 | ||
cryptography==41.0.2 | ||
Flask==2.2.5 | ||
Flask-RESTful==0.3.9 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.0.2 | ||
jinjasql==0.1.8 | ||
pandas==1.0.1 | ||
psycopg2==2.7.7 | ||
MarkupSafe==2.1.2 | ||
numpy>=1.21.6 | ||
pandas>=1.3.5 | ||
psycopg2-binary==2.9.5 | ||
pycparser==2.21 | ||
python-dateutil==2.8.2 | ||
pytz==2022.7.1 | ||
six==1.16.0 | ||
Werkzeug==2.2.3 | ||
pytest-mock==3.3.1 | ||
asgiref==3.7.2 | ||
typing_extensions>=4.7.0 |
Oops, something went wrong.