diff --git a/README.md b/README.md index 5082f10..59587fb 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ Get the provided `compose.yaml`. docker compose up -d ``` +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`. + # 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. diff --git a/compose.yaml b/compose.yaml index fc3a93f..117f144 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,6 +3,7 @@ name: dockup services: dockup: image: ramiuslr/dockup:latest # You should set a fixed tag + # build: . # Use this for local development setup container_name: dockup restart: always ports: diff --git a/dockup b/dockup index ba7a7b3..d058a4f 100755 --- a/dockup +++ b/dockup @@ -123,6 +123,13 @@ def get_remote_tags(images): if local_suffix and not tag.endswith(local_suffix): continue + # Skip non-production versions + if any( + bad_keyword in tag.lower() + for bad_keyword in ["test", "rc", "alpha"] + ): + continue + # Validate version structure if is_valid_semver( tag.split("-")[0]