-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from verypossible/change-base-image-to-python
Move base image to python and setup py2 and py3
- Loading branch information
Showing
4 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,3 +87,4 @@ ENV/ | |
|
||
# Rope project settings | ||
.ropeproject | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM python:3.6.2 | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | ||
RUN apt-get install -y nodejs | ||
|
||
RUN mkdir /root/.aws | ||
|
||
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python | ||
RUN pip install \ | ||
awscli \ | ||
pep8 \ | ||
pytest \ | ||
pytest-cov \ | ||
pytest-mock \ | ||
pytest-watch \ | ||
boto3 | ||
|
||
ARG SERVERLESS_VERSION | ||
RUN npm install -g \ | ||
serverless@${SERVERLESS_VERSION} \ | ||
yarn | ||
|
||
RUN echo "alias ll='ls -alFh --color=auto'" >> /root/.bashrc | ||
RUN echo "alias l='ls -alFh --color=auto'" >> /root/.bashrc | ||
|
||
RUN mkdir /code | ||
WORKDIR /code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
NAME = verypossible/serverless | ||
VERSION = 1.19.0 | ||
|
||
.PHONY: all py2 py3 shell | ||
|
||
|
||
all : py2 py3 | ||
|
||
py2 : | ||
docker build \ | ||
-t $(NAME):$(VERSION) \ | ||
--build-arg SERVERLESS_VERSION=$(VERSION) \ | ||
. | ||
|
||
py3 : | ||
docker build \ | ||
-t $(NAME)-python3:$(VERSION) \ | ||
-f Dockerfile-python3 \ | ||
--build-arg SERVERLESS_VERSION=$(VERSION) \ | ||
. | ||
|
||
shell : | ||
docker run --rm -it $(NAME):$(VERSION) bash |