From 919a9f8a0bdc11862ea357cf78c1872903b7f060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:21:04 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=93=8C=20Add=20external=20dependencie?= =?UTF-8?q?s=20to=20get=20automatic=20Dependabot=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/requirements.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docker-images/requirements.txt diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt new file mode 100644 index 0000000..756d400 --- /dev/null +++ b/docker-images/requirements.txt @@ -0,0 +1,3 @@ +"uvicorn[standard]"==0.15.0 +gunicorn==20.1.0 +starlette==0.14.2 From d47412b0e626af3295463df45de1bd2e1cdb3d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:23:23 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Use=20new=20external?= =?UTF-8?q?=20dependencies=20in=20Dockerfiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 | 8 ++++++++ docker-images/python3.9-slim.dockerfile | 8 ++++++++ docker-images/python3.9.dockerfile | 8 ++++++++ 10 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 docker-images/python3.9-alpine3.14.dockerfile create mode 100644 docker-images/python3.9-slim.dockerfile create mode 100644 docker-images/python3.9.dockerfile diff --git a/docker-images/python3.6-alpine3.8.dockerfile b/docker-images/python3.6-alpine3.8.dockerfile index d066c6c..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 starlette +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 d7c57bc..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 starlette +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 ffa7423..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 starlette +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 bd81bcb..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 starlette +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 af7a58d..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 starlette +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 2cb429b..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 starlette +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 d2607b2..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 starlette +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 new file mode 100644 index 0000000..12ae150 --- /dev/null +++ b/docker-images/python3.9-alpine3.14.dockerfile @@ -0,0 +1,8 @@ +FROM tiangolo/uvicorn-gunicorn:python3.9-alpine3.14 + +LABEL maintainer="Sebastian Ramirez " + +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 new file mode 100644 index 0000000..890e4ae --- /dev/null +++ b/docker-images/python3.9-slim.dockerfile @@ -0,0 +1,8 @@ +FROM tiangolo/uvicorn-gunicorn:python3.9-slim + +LABEL maintainer="Sebastian Ramirez " + +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 new file mode 100644 index 0000000..3ed4e5e --- /dev/null +++ b/docker-images/python3.9.dockerfile @@ -0,0 +1,8 @@ +FROM tiangolo/uvicorn-gunicorn:python3.9 + +LABEL maintainer="Sebastian Ramirez " + +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt + +COPY ./app /app From 3faa37f4c6544ed6bb309cb4baaf0b3b683287d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:24:31 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=91=B7=20Add=20Dependabot=20to=20get?= =?UTF-8?q?=20automatic=20upgrade=20PRs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/dependabot.yml 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" From 1216926c10bf9eee03b74e70e72ee4aab6f70c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:26:02 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=90=9B=20Fix=20requirements.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-images/requirements.txt b/docker-images/requirements.txt index 756d400..e94272c 100644 --- a/docker-images/requirements.txt +++ b/docker-images/requirements.txt @@ -1,3 +1,3 @@ -"uvicorn[standard]"==0.15.0 +uvicorn[standard]==0.15.0 gunicorn==20.1.0 starlette==0.14.2