From 7a84ada939ef2608899f74305db612061214ba2b Mon Sep 17 00:00:00 2001 From: RamiusLr Date: Wed, 21 May 2025 16:32:15 +0200 Subject: [PATCH 1/2] Use python slim image --- .github/workflows/docker.yml | 2 +- Dockerfile | 9 +++++++-- dockup | 16 +++++++--------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 98e85ed..aa484b0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,7 +2,7 @@ name: ci on: push: - branches: [ "master" ] + branches: [ "*" ] tags: [ "*" ] pull_request: diff --git a/Dockerfile b/Dockerfile index 5b5206d..86b5983 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,16 @@ # Init image -FROM python:3 +FROM python:slim WORKDIR /app # Install requirements COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -RUN wget -O /usr/bin/regctl https://github.com/regclient/regclient/releases/latest/download/regctl-linux-amd64 +RUN python - < Date: Wed, 21 May 2025 16:36:49 +0200 Subject: [PATCH 2/2] Add example to readme --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 59587fb..772cd2b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,30 @@ All images are exposed to `http://0.0.0.0:8000/all` in JSON format. If you want to get only images needing update, look at `http://0.0.0.0:8000/updates`. +Here is a quick example of what you get on the `/all` endpoint (dockup don't have local tag because it is a locally built image): +```json +[ + { + "name": "dockup", + "repo": "dockup-dockup", + "local_tag": "latest", + "remote_tag": null + }, + { + "name": "wikijs-wiki-1", + "repo": "ghcr.io/requarks/wiki", + "local_tag": "2.5.307", + "remote_tag": "2.5.307" + }, + { + "name": "wikijs-db-1", + "repo": "postgres", + "local_tag": "17.4-alpine", + "remote_tag": "17.5-alpine" + } +] +``` + # Requirements This program needs [regctl](https://github.com/regclient/regclient.git). It is shipped with container image by default, however you'll need to install it by yourself if running script directly.