Skip to content

Commit

Permalink
👷 Add Dependabot and external dependencies to get automated upgrade P…
Browse files Browse the repository at this point in the history
…Rs (#51)
  • Loading branch information
tiangolo authored Sep 14, 2021
1 parent 12e6ddd commit cb7f9c2
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# Development/testing dependencies
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
# Docker image dependencies
- package-ecosystem: "pip"
directory: "/docker-images"
schedule:
interval: "daily"
4 changes: 4 additions & 0 deletions docker-images/python2.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM tiangolo/meinheld-gunicorn:python2.7

LABEL maintainer="Sebastian Ramirez <[email protected]>"

# Install requirements
# Newer versions don't support Python 2.7 (Python 2.7 reached end of life long ago)
# So for this tag just install whatever is available for Python 2.7, don't use
# Dependabot's updated requirements
RUN pip install flask

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.6-alpine3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.6-alpine3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.6.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.6

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.7-alpine3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.7-alpine3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.7

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.8-alpine3.11.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.8-alpine3.11

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.9-alpine3.13.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.9-alpine3.13

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
3 changes: 2 additions & 1 deletion docker-images/python3.9.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM tiangolo/meinheld-gunicorn:python3.9

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install flask
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY ./app /app
1 change: 1 addition & 0 deletions docker-images/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flask==2.0.1

0 comments on commit cb7f9c2

Please sign in to comment.