From 62b176e63911fdb78a72f6352c8dd0a7f2141eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 16:01:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8C=20Add=20external=20dependencies=20?= =?UTF-8?q?and=20Dependabot=20to=20get=20automatic=20upgrade=20PRs=20(#109?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 17 +++++++++++++++++ docker-images/python3.6-alpine3.8.dockerfile | 3 ++- docker-images/python3.6.dockerfile | 3 ++- docker-images/python3.7-alpine3.8.dockerfile | 3 ++- docker-images/python3.7.dockerfile | 3 ++- docker-images/python3.8-alpine3.10.dockerfile | 3 ++- docker-images/python3.8-slim.dockerfile | 3 ++- docker-images/python3.8.dockerfile | 3 ++- docker-images/python3.9-alpine3.14.dockerfile | 3 ++- docker-images/python3.9-slim.dockerfile | 3 ++- docker-images/python3.9.dockerfile | 3 ++- docker-images/requirements.txt | 3 +++ 12 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 docker-images/requirements.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8447188 --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/docker-images/python3.6-alpine3.8.dockerfile b/docker-images/python3.6-alpine3.8.dockerfile index 4ab0e6c..ec49c98 100644 --- a/docker-images/python3.6-alpine3.8.dockerfile +++ b/docker-images/python3.6-alpine3.8.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.6-alpine3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.6.dockerfile b/docker-images/python3.6.dockerfile index db40a36..6f2c076 100644 --- a/docker-images/python3.6.dockerfile +++ b/docker-images/python3.6.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.6 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.7-alpine3.8.dockerfile b/docker-images/python3.7-alpine3.8.dockerfile index ed2bc2b..9754743 100644 --- a/docker-images/python3.7-alpine3.8.dockerfile +++ b/docker-images/python3.7-alpine3.8.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.7-alpine3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index 394267d..e36083d 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.7 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8-alpine3.10.dockerfile b/docker-images/python3.8-alpine3.10.dockerfile index 312d9dc..5d73649 100644 --- a/docker-images/python3.8-alpine3.10.dockerfile +++ b/docker-images/python3.8-alpine3.10.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.8-alpine3.10 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8-slim.dockerfile b/docker-images/python3.8-slim.dockerfile index 88f9cc7..4f3a4c1 100644 --- a/docker-images/python3.8-slim.dockerfile +++ b/docker-images/python3.8-slim.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.8-slim LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index 978c293..b9c908a 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9-alpine3.14.dockerfile b/docker-images/python3.9-alpine3.14.dockerfile index 0e23d05..12ae150 100644 --- a/docker-images/python3.9-alpine3.14.dockerfile +++ b/docker-images/python3.9-alpine3.14.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.9-alpine3.14 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9-slim.dockerfile b/docker-images/python3.9-slim.dockerfile index 15a5b45..890e4ae 100644 --- a/docker-images/python3.9-slim.dockerfile +++ b/docker-images/python3.9-slim.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.9-slim LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index e426c0a..3ed4e5e 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -2,6 +2,7 @@ FROM tiangolo/uvicorn-gunicorn:python3.9 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir fastapi +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./app /app diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt new file mode 100644 index 0000000..3fb453b --- /dev/null +++ b/docker-images/requirements.txt @@ -0,0 +1,3 @@ +uvicorn[standard]==0.15.0 +gunicorn==20.1.0 +fastapi==0.68.1