From 1d0cc81e11586587f7a1cb751d8c048a02dcb93b Mon Sep 17 00:00:00 2001 From: James Berthoty Date: Thu, 5 Nov 2020 10:09:33 -0500 Subject: [PATCH] fixed dockerfile, setup.py and added test data# --- Dockerfile | 1 + data/test.csv | 14 ++++++++++++++ setup.py | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 data/test.csv diff --git a/Dockerfile b/Dockerfile index 6e84161..72a2650 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ WORKDIR /src COPY . /src/ RUN pip install . +RUN cp -R /src/riskquant/model /usr/local/lib/python3.7/site-packages/riskquant RUN python setup.py install ENTRYPOINT ["/src/build/scripts-3.7/riskquant"] diff --git a/data/test.csv b/data/test.csv new file mode 100644 index 0000000..abcab43 --- /dev/null +++ b/data/test.csv @@ -0,0 +1,14 @@ +FraudThreats,Overstated/falseemployeequalificationsorcertifications,"$247,000" +InternalRiskAreas,AWSSpecificVulnerability(e.g.S3Bucketmadepublic),"$133,000" +PersonnelThreats,PersonnelPhishing/SocialEngineeringAttack,"$101,000" +PersonnelThreats,InsiderThreatDataLeak,"$72,300" +TechnicalThreats,EscalationofPrivilege,"$72,300" +PersonnelThreats,PersonnelLabor/SkillsShortage,"$61,700" +FraudThreats,ManipulationofLiabilities/Expenses-Unrecordedvendorinvoices,"$40,400" +InternalRiskAreas,AWSSpecificVulnerability(e.g.APIGatewaypermissionsoverlybroad),"$40,000" +ResourceThreats,DisruptionofCommunicationServices,"$2,870" +Physical,EmployeeLaptopisStolen,"$1,230" +Physical,EmployeeLaptopisLost,$840 +TechnicalThreats,CredentialDiscoveryviaBruteForceorGuessing,$404 +Physical,VandalismofEmployeeHome,$143 + diff --git a/setup.py b/setup.py index 4492d28..8d4ef91 100755 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ python_requires='>=3.5, <3.8', install_requires=[ 'matplotlib', - 'numpy', + 'numpy <1.19.0, >= 1.16.0', 'scipy', # Tensorflow probability is tested and stable against Tensorflow 2.1.0 # https://github.com/tensorflow/probability/releases