From c073cb58c0fded36e50d62b1cbc0228568a4e260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:54:39 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=8C=20Add=20external=20dependencie?= =?UTF-8?q?s=20to=20make=20them=20updatable=20by=20Dependabot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-images/requirements.txt | 2 ++ 1 file changed, 2 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 00000000..0bfd1d31 --- /dev/null +++ b/docker-images/requirements.txt @@ -0,0 +1,2 @@ +uvicorn[standard]==0.15.0 +gunicorn==20.1.0 From d3c2ebd2ee5e7cf45030a83be60609018fb2d49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:55:43 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20Dockerfiles?= =?UTF-8?q?=20to=20use=20new=20external=20dependencies?= 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 | 3 ++- docker-images/python3.9-slim.dockerfile | 3 ++- docker-images/python3.9.dockerfile | 3 ++- 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/docker-images/python3.6-alpine3.8.dockerfile b/docker-images/python3.6-alpine3.8.dockerfile index b4eaaafe..24b0eb80 100644 --- a/docker-images/python3.6-alpine3.8.dockerfile +++ b/docker-images/python3.6-alpine3.8.dockerfile @@ -2,8 +2,9 @@ FROM python:3.6-alpine3.8 LABEL maintainer="Sebastian Ramirez " +COPY requirements.txt /tmp/requirements.txt RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \ - && pip install --no-cache-dir "uvicorn[standard]" gunicorn \ + && pip install --no-cache-dir -r /tmp/requirements.txt \ && apk del .build-deps gcc libc-dev make COPY ./start.sh /start.sh diff --git a/docker-images/python3.6.dockerfile b/docker-images/python3.6.dockerfile index e8290727..b778b9c1 100644 --- a/docker-images/python3.6.dockerfile +++ b/docker-images/python3.6.dockerfile @@ -2,7 +2,8 @@ FROM python:3.6 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./start.sh /start.sh RUN chmod +x /start.sh diff --git a/docker-images/python3.7-alpine3.8.dockerfile b/docker-images/python3.7-alpine3.8.dockerfile index 3831224f..ea9cc59e 100644 --- a/docker-images/python3.7-alpine3.8.dockerfile +++ b/docker-images/python3.7-alpine3.8.dockerfile @@ -2,8 +2,9 @@ FROM python:3.7-alpine3.8 LABEL maintainer="Sebastian Ramirez " +COPY requirements.txt /tmp/requirements.txt RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \ - && pip install --no-cache-dir "uvicorn[standard]" gunicorn \ + && pip install --no-cache-dir -r /tmp/requirements.txt \ && apk del .build-deps gcc libc-dev make COPY ./start.sh /start.sh diff --git a/docker-images/python3.7.dockerfile b/docker-images/python3.7.dockerfile index 29b48605..83f912e3 100644 --- a/docker-images/python3.7.dockerfile +++ b/docker-images/python3.7.dockerfile @@ -2,7 +2,8 @@ FROM python:3.7 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./start.sh /start.sh RUN chmod +x /start.sh diff --git a/docker-images/python3.8-alpine3.10.dockerfile b/docker-images/python3.8-alpine3.10.dockerfile index 504ad78c..543e4af9 100644 --- a/docker-images/python3.8-alpine3.10.dockerfile +++ b/docker-images/python3.8-alpine3.10.dockerfile @@ -2,8 +2,9 @@ FROM python:3.8-alpine3.10 LABEL maintainer="Sebastian Ramirez " +COPY requirements.txt /tmp/requirements.txt RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \ - && pip install --no-cache-dir "uvicorn[standard]" gunicorn \ + && pip install --no-cache-dir -r /tmp/requirements.txt \ && apk del .build-deps gcc libc-dev make COPY ./start.sh /start.sh diff --git a/docker-images/python3.8-slim.dockerfile b/docker-images/python3.8-slim.dockerfile index f0074391..594b2bcc 100644 --- a/docker-images/python3.8-slim.dockerfile +++ b/docker-images/python3.8-slim.dockerfile @@ -2,7 +2,8 @@ FROM python:3.8-slim LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./start.sh /start.sh RUN chmod +x /start.sh diff --git a/docker-images/python3.8.dockerfile b/docker-images/python3.8.dockerfile index 19f3d8d1..cafa28db 100644 --- a/docker-images/python3.8.dockerfile +++ b/docker-images/python3.8.dockerfile @@ -2,7 +2,8 @@ FROM python:3.8 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./start.sh /start.sh RUN chmod +x /start.sh diff --git a/docker-images/python3.9-alpine3.14.dockerfile b/docker-images/python3.9-alpine3.14.dockerfile index b7501dd1..7b54d3f3 100644 --- a/docker-images/python3.9-alpine3.14.dockerfile +++ b/docker-images/python3.9-alpine3.14.dockerfile @@ -2,8 +2,9 @@ FROM python:3.9-alpine3.14 LABEL maintainer="Sebastian Ramirez " +COPY requirements.txt /tmp/requirements.txt RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \ - && pip install --no-cache-dir "uvicorn[standard]" gunicorn \ + && pip install --no-cache-dir -r /tmp/requirements.txt \ && apk del .build-deps gcc libc-dev make COPY ./start.sh /start.sh diff --git a/docker-images/python3.9-slim.dockerfile b/docker-images/python3.9-slim.dockerfile index 4e159daa..66165993 100644 --- a/docker-images/python3.9-slim.dockerfile +++ b/docker-images/python3.9-slim.dockerfile @@ -2,7 +2,8 @@ FROM python:3.9-slim LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./start.sh /start.sh RUN chmod +x /start.sh diff --git a/docker-images/python3.9.dockerfile b/docker-images/python3.9.dockerfile index df885a35..50d62e13 100644 --- a/docker-images/python3.9.dockerfile +++ b/docker-images/python3.9.dockerfile @@ -2,7 +2,8 @@ FROM python:3.9 LABEL maintainer="Sebastian Ramirez " -RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn +COPY requirements.txt /tmp/requirements.txt +RUN pip install --no-cache-dir -r /tmp/requirements.txt COPY ./start.sh /start.sh RUN chmod +x /start.sh From 804c6bd343a90b2af56635439bd6456b343e9ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 17 Sep 2021 15:56:01 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=91=B7=20Add=20Dependabot?= 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 00000000..8447188e --- /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"