GithubHelp home page GithubHelp logo

dalee / hitman Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 3.0 157 KB

Docker Private Registry web-ui. Browse and remove images from Registry V2.x. Build with Go and React.

License: Apache License 2.0

Makefile 2.38% Go 28.96% JavaScript 68.13% HTML 0.53%
docker-registry-cleanup docker-distribution docker-distribution-ui docker-distribution-cleanup docker-registry-ui

hitman's Introduction

Docker Distribution (Registry) UI

Build Status codecov Go Report Card

Web UI for Private Docker Distribution (Registry).

Features

Requirements

  • Registry 2.6+ (should be ok with > 2.3 but untested)
  • CLI access to host where Registry is running (run garbage-collect command)

Prebuilt docker image

Run somewhere on Docker enabled host:

$ docker pull dalee/hitman
$ docker run \
    -e MACARON_ENV=production \
    -e REGISTRY_URL=https://registry.example.com:5000/ \
    dalee/hitman

Put command to your favourite scheduler (cron, ci, etc..)

$ docker exec -it docker.registry \
    bin/registry garbage-collect /etc/docker/registry/config.yml

Where docker.registry is name of container running Docker Registry.

Common pitfalls

  • There is no auth, so, restrict access to UI via frontend (NGINX deny/allow for example)
  • Multiple tags could point to single digest (you can have latest and v1.0.1 tags, but they actually single image, so be careful)
  • Tag deletion will not free you hard drive space until garbage-collect command is issued
  • Depending on storage driver, you may have to manually delete empty repositories (ui will show you hint)

Licensing

Software is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Development

Setting up developer dependencies:

$ make install

You can also use yarn instead of npm:

$ yarn --pure-lockfile

Run server:

$ go run ./bin/main.go -registry-url=https://registry.example.com:5000/

Full list of commands:

  • make docker — build docker image
  • make install — install all development dependencies
  • make format-backend — gofmt sources
  • make test — test backend and frontend code
  • make test-backend — test backend sources
  • make test-frontend — test frontend sources
  • make coverage-backend ; go tool cover -html=coverage.txt — display backend coverage

Build UI (required after any jsx/css change):

$ npm run build

Point your browser to http://localhost:4000/

hitman's People

Contributors

arkady-emelyanov avatar ns3777k avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.