Debugging...

Debugging...

Debugging...

Debugging...

Debugging...

Debugging...

Debugging...
This commit is contained in:
Layla 2020-10-04 18:19:53 -04:00 committed by GitHub
parent ba88fd00a7
commit 5ff6a5fc69
3 changed files with 14 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.venv
pythonenv*

View File

@ -8,9 +8,9 @@ LABEL "com.github.actions.color"="blue"
LABEL repository="https://github.com/josephbmanley/zappa-deploy-action"
LABEL maintainer="Joseph Manley <joseph@cloudsumu.com>"
RUN yum install python3 -y
RUN yum install python3 python3-pip -y
RUN pip install zappa
RUN pip3 install virtualenv
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

View File

@ -4,12 +4,21 @@ set -e
# Move to project directory
cd $1
# Config AWS profile
mkdir -p ~/.aws
echo "[default]" > ~/.aws/config
echo "region=${AWS_DEFAULT_REGION:-'us-east-1'}" >> ~/.aws/config
echo "[default]" > ~/.aws/credentials
echo "aws_access_key_id=${AWS_ACCESS_KEY_ID}" >> ~/.aws/credentials
echo "aws_secret_access_key=${AWS_SECRET_ACCESS_KEY}" >> ~/.aws/credentials
# Install virtual environment
pip install virtualenv
virtualenv .venv
source ./.venv/bin/activate
# Install requirements
pip install zappa
pip install -r requirements.txt
{