mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
add registry-cli
This commit is contained in:
parent
40cf4e8fb2
commit
0382542699
@ -146,6 +146,10 @@ A collection of delicious docker recipes.
|
||||
- [x] webhook
|
||||
- [x] webkit :beetle:
|
||||
|
||||
## Utility
|
||||
|
||||
- [x] registry-cli
|
||||
|
||||
## Media
|
||||
|
||||
- [x] aircast-arm :musical_note:
|
||||
|
21
registry-cli/Dockerfile
Normal file
21
registry-cli/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Dockerfile for registry-cli
|
||||
#
|
||||
|
||||
FROM python:3-slim-bullseye AS build
|
||||
WORKDIR /app
|
||||
ADD https://github.com/andrey-pohilko/registry-cli/raw/master/registry.py .
|
||||
ADD https://github.com/andrey-pohilko/registry-cli/raw/master/requirements-ci.txt .
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& apt install -y binutils \
|
||||
&& pip install --no-cache-dir pyinstaller \
|
||||
&& pip install --no-cache-dir -r requirements-ci.txt \
|
||||
&& pyinstaller --onefile --name=registry-cli registry.py \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM debian:bullseye
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
COPY --from=build /app/dist/registry-cli /usr/local/bin/
|
||||
ENTRYPOINT ["registry-cli"]
|
||||
CMD ["--help"]
|
11
registry-cli/README.md
Normal file
11
registry-cli/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
registry-cli
|
||||
============
|
||||
|
||||
[registry-cli][1] is a script for easy manipulation of docker-registry from command line (and from scripts)
|
||||
|
||||
```
|
||||
$ alias registry-cli='docker run --rm --net host vimagick/registry-cli -r http://127.0.0.1:5000 -l user:pass'
|
||||
$ registry-cli -i image_name --delete-by-hours $((24*30)) --dry-run
|
||||
```
|
||||
|
||||
[1]: https://github.com/andrey-pohilko/registry-cli
|
Loading…
Reference in New Issue
Block a user