Need to create the following in AWS:
- ECR Repository
- ECR Container
Currently for development, you must load the parameters to AWS. Need to create a local version for people to manually inclue params
- Clone down repo
cd
intodevelopment
- run
docker build -t golfnow-groupme-bot:selenium-dev .
- run
docker run -p 8888:8888 -v $PWD:/app -it --rm golfnow-groupme-bot:selenium-dev
- navigate to
localhost:8888
- copy the token from your terminal and paste it in your browser
- Clone down repo
cd
intodevelopment
- if you haven't built to dev container, run
docker build -t golfnow-groupme-bot:selenium-dev .
- if the dev container isn't running, run
docker run -p 8888:8888 -v $PWD:/app -it --rm golfnow-groupme-bot:selenium-dev
- update the GROUPME_BOT_NAME, REGION, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY variables in app.py
- run
docker ps
to get the container id then rundocker exec -it <container id> bash
- run
python app.py
- Clone down repo
cd
intosrc
- build image:
docker build -t golfnow-groupme-bot-lambda:0.0.1 .
- log into aws:
aws --profile golfnow-groupme-bot ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 213319972073.dkr.ecr.us-east-1.amazonaws.com
- tag image:
docker tag golfnow-groupme-bot-lambda:0.0.1 213319972073.dkr.ecr.us-east-1.amazonaws.com/golfnow-groupme-bot-lambda:0.0.1
- push image:
docker push 213319972073.dkr.ecr.us-east-1.amazonaws.com/golfnow-groupme-bot-lambda:0.0.1
to do
to do