You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-08-06 22:23:10 +02:00
add registry-cli
This commit is contained in:
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
|
Reference in New Issue
Block a user