Skip to content

Commit

Permalink
Merge pull request #7 from chuckoy/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
danielwhatmuff committed Aug 2, 2017
2 parents 680685f + ec3bc78 commit 561947b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -5,7 +5,8 @@ MAINTAINER "Daniel Whatmuff" <danielwhatmuff@gmail.com>
COPY yum.conf /etc/yum.conf

RUN yum clean all && \
yum -y install python27-devel python27-virtualenv vim postgresql postgresql-devel mysql mysql-devel gcc && \
yum -y install python27-devel python27-virtualenv vim postgresql postgresql-devel mysql mysql-devel gcc lapack-devel blas-devel libyaml-devel && \
yum --enablerepo=epel -y install hdf5-devel && \
pip install -U pip && \
pip install -U zappa mysql-python

Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -8,7 +8,7 @@ Docker image for [Zappa](https://github.com/Miserlou/Zappa), based on the [Lambd

## Build the image
```bash
$ git clone git@github.com:danielwhatmuff/zappa.git && cd zappa && docker build -t zappa .
$ git clone git@github.com:danielwhatmuff/zappa.git && cd zappa && docker build -t danielwhatmuff/zappa .
```

## Build a customized image with extra build deps
Expand All @@ -26,7 +26,7 @@ $ docker pull danielwhatmuff/zappa

## Using exported AWS_DEFAULT_REGION, AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID env vars
```
$ alias zappashell='docker run -ti -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION -v $(pwd):/var/task --rm zappa bash'
$ alias zappashell='docker run -ti -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION -v $(pwd):/var/task --rm danielwhatmuff/zappa bash'
$ alias >> ~/.bash_profile
$ cd yourzappaproject
$ zappashell
Expand Down Expand Up @@ -56,7 +56,7 @@ $ export AWS_PROFILE=myprofile
```
* Mount the code and config into the container
```
$ alias zappashell='docker run -ti -e AWS_PROFILE=$AWS_PROFILE -v $(pwd):/var/task -v ~/.aws/:/root/.aws --rm zappa bash'
$ alias zappashell='docker run -ti -e AWS_PROFILE=$AWS_PROFILE -v $(pwd):/var/task -v ~/.aws/:/root/.aws --rm danielwhatmuff/zappa bash'
zappashell> source yourvirtualenv/bin/activate
zappashell> pip install -r requirements.txt
zappashell> zappa deploy
Expand Down

0 comments on commit 561947b

Please sign in to comment.