From b89d180f52ec89e21ced2af835ca81f24f5d7523 Mon Sep 17 00:00:00 2001 From: Roman Vynar Date: Tue, 20 Feb 2024 16:45:51 +0200 Subject: [PATCH] Remove example/ --- example/.gitignore | 1 - example/README.md | 25 ----------- example/config/httpd.conf | 79 ---------------------------------- example/config/registry-ui.yml | 46 -------------------- example/docker-compose.yml | 31 ------------- 5 files changed, 182 deletions(-) delete mode 100644 example/.gitignore delete mode 100644 example/README.md delete mode 100644 example/config/httpd.conf delete mode 100644 example/config/registry-ui.yml delete mode 100644 example/docker-compose.yml diff --git a/example/.gitignore b/example/.gitignore deleted file mode 100644 index 249cda9..0000000 --- a/example/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/data \ No newline at end of file diff --git a/example/README.md b/example/README.md deleted file mode 100644 index b221eec..0000000 --- a/example/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# Docker Registry UI Example - -Start the local Docker Registry and UI. - -```bash -$ docker-compose up -d -``` - -As an example, push the docker-registry-ui image to the local Docker Registry. - -```bash -$ docker tag quiq/docker-registry-ui localhost/quiq/docker-registry-ui -$ docker push localhost/quiq/docker-registry-ui -The push refers to repository [localhost:5000/quiq/docker-registry-ui] -ab414a599bf8: Pushed -a8da33adf86e: Pushed -71a0e0a972a7: Pushed -96dc74eb5456: Pushed -ac362bf380d0: Pushed -04a094fe844e: Pushed -latest: digest: sha256:d88c1ca40986a358e59795992e87e364a0b3b97833aade5abcd79dda0a0477e8 size: 1571 -``` - -Then you will find the pushed repository 'quiq/docker-registry-ui' in the following URL. -http://localhost/ui/quiq/docker-registry-ui diff --git a/example/config/httpd.conf b/example/config/httpd.conf deleted file mode 100644 index 05d9e9c..0000000 --- a/example/config/httpd.conf +++ /dev/null @@ -1,79 +0,0 @@ -LoadModule mpm_event_module modules/mod_mpm_event.so -LoadModule headers_module modules/mod_headers.so - -LoadModule authn_file_module modules/mod_authn_file.so -LoadModule authn_core_module modules/mod_authn_core.so -LoadModule authz_groupfile_module modules/mod_authz_groupfile.so -LoadModule authz_user_module modules/mod_authz_user.so -LoadModule authz_core_module modules/mod_authz_core.so -LoadModule auth_basic_module modules/mod_auth_basic.so -LoadModule access_compat_module modules/mod_access_compat.so - -LoadModule log_config_module modules/mod_log_config.so - -LoadModule proxy_module modules/mod_proxy.so -LoadModule proxy_http_module modules/mod_proxy_http.so - -LoadModule unixd_module modules/mod_unixd.so - - - User daemon - Group daemon - - -ServerAdmin you@example.com - -ErrorLog /proc/self/fd/2 - -LogLevel warn - - - LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined - LogFormat "%h %l %u %t \"%r\" %>s %b" common - - - LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio - - - CustomLog /proc/self/fd/1 common - - -ServerRoot "/usr/local/apache2" - -Listen 80 - - - AllowOverride none - Require all denied - - - - - ServerName myregistrydomain.com - - Header always set "Docker-Distribution-Api-Version" "registry/2.0" - Header onsuccess set "Docker-Distribution-Api-Version" "registry/2.0" - - ProxyRequests off - ProxyPreserveHost on - - # no proxy for /error/ (Apache HTTPd errors messages) - ProxyPass /error/ ! - - ProxyPass /v2 http://registry:5000/v2 - ProxyPassReverse /v2 http://registry:5000/v2 - - - Order deny,allow - Allow from all - - - ProxyPass /ui/ http://registry-ui:8000/ui/ - ProxyPassReverse /ui/ http://registry-ui:8000/ui/ - - - Order deny,allow - Allow from all - - - \ No newline at end of file diff --git a/example/config/registry-ui.yml b/example/config/registry-ui.yml deleted file mode 100644 index 2cb042a..0000000 --- a/example/config/registry-ui.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Listen interface. -listen_addr: 0.0.0.0:8000 -# Base path of Docker Registry UI. -base_path: /ui - -# Registry URL with schema and port. -registry_url: http://registry:5000 -# Verify TLS certificate when using https. -verify_tls: true - -# Docker registry credentials. -# They need to have a full access to the registry. -# If token authentication service is enabled, it will be auto-discovered and those credentials -# will be used to obtain access tokens. -# registry_username: user -# registry_password: pass - -# Event listener token. -# The same one should be configured on Docker registry as Authorization Bearer token. -event_listener_token: token -# Retention of records to keep. -event_retention_days: 7 - -# Event listener storage. -event_database_driver: sqlite3 -event_database_location: data/registry_events.db -# event_database_driver: mysql -# event_database_location: user:password@tcp(localhost:3306)/docker_events - -# Cache refresh interval in minutes. -# How long to cache repository list and tag counts. -cache_refresh_interval: 10 - -# If users can delete tags. If set to False, then only admins listed below. -anyone_can_delete: false -# Users allowed to delete tags. -# This should be sent via X-WEBAUTH-USER header from your proxy. -admins: [] - -# Debug mode. Affects only templates. -debug: true - -# CLI options. -# How many days to keep tags but also keep the minimal count provided no matter how old. -purge_tags_keep_days: 90 -purge_tags_keep_count: 2 diff --git a/example/docker-compose.yml b/example/docker-compose.yml deleted file mode 100644 index 74c1987..0000000 --- a/example/docker-compose.yml +++ /dev/null @@ -1,31 +0,0 @@ -version: "2.3" - -services: - httpd: - image: httpd:2.4 - ports: - - "80:80" - volumes: - - "./config/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" - - registry: - image: registry:2 - ports: - - "5000" - volumes: - - "./data/registry:/var/lib/registry" - healthcheck: - test: ["CMD", "wget", "-s", "localhost:5000/v2/"] - interval: 5s - timeout: 10s - - registry-ui: - image: quiq/docker-registry-ui:latest - ports: - - "8000" - volumes: - - "./data/registry-ui:/opt/data" - - "./config/registry-ui.yml:/opt/config.yml:ro" - depends_on: - registry: - condition: service_healthy