Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usyd jqia9055 lucas patch 1 #6

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions cfn/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,5 @@
{
"ParameterKey": "GitHubRepo",
"ParameterValue": "codepipeline-ecr-build-sf-execution"
},
{
"ParameterKey": "GitHubBranch",
"ParameterValue": "master"
},
{
"ParameterKey": "GitHubToken",
"ParameterValue": ""
},
{
"ParameterKey": "GitHubUser",
"ParameterValue": ""
},
{
"ParameterKey": "MlOpsStepFunctionArn",
"ParameterValue": ""
}
]
}
]
7 changes: 6 additions & 1 deletion container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@

FROM public.ecr.aws/lts/ubuntu:20.04

# check python version
RUN echo 'testing'

RUN apt-get -y update && apt-get install -y --no-install-recommends \
wget \
python \
nginx \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*

RUN echo 'testing1'
RUN python --version

# Here we get all python packages.
# There's substantial overlap between scipy and numpy that we eliminate by
# linking them together. Likewise, pip leaves the install caches populated which uses
# a significant amount of space. These optimizations save a fair amount of space in the
# image, which reduces start up time.
RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && python get-pip.py && \
pip install numpy==1.16.2 scipy==1.2.1 scikit-learn==0.20.2 pandas flask gevent gunicorn && \
pip install --no-cache-dir -r requirements.txt && \
(cd /usr/local/lib/python2.7/dist-packages/scipy/.libs; rm *; ln ../../numpy/.libs/* .) && \
rm -rf /root/.cache

Expand Down
7 changes: 7 additions & 0 deletions container/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
numpy==1.16.2
scipy==1.2.1
scikit-learn==0.20.2
pandas
flask
gevent==1.5.0
gunicorn
8 changes: 8 additions & 0 deletions container/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

asd
commit
committed
testingForCommit
testing the 1st step in StepFuncton
test full workflow in AWS
removed send email to accept or reject