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

Docker support #22

Open
wants to merge 2 commits into
base: master
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
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM python:3

MAINTAINER Vagner Rodrigues Fernandes ([email protected])

WORKDIR /usr/src/app

COPY requirements.txt ./

RUN python -m pip install pip==9.0.3
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
RUN mkdir output

CMD [ "python", "./inventory.py" ]

# Usage:
# mkdir -p ~/aws-inventory/output &&
# docker run -v ~/aws-inventory/output:/usr/src/app/output \
# -e AWS_ACCESS_KEY_ID="XXX" \
# -e AWS_SECRET_ACCESS_KEY="YYY" \
# vagnerd/aws-inventory
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jupyter-linter
pylint
aws
boto3