mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-09-29 14:25:19 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
97c189b195 | ||
|
2a0159b73e | ||
|
b563c6d1a1 |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,8 +1,16 @@
|
||||
## Changelog
|
||||
|
||||
### 0.7.2 (2018-07-30)
|
||||
|
||||
* Make web root accessible w/o trailing slash when base_path is configured.
|
||||
|
||||
### 0.7.1 (2018-07-18)
|
||||
|
||||
* Fix panic when using MySQL for events storage and no table created yet.
|
||||
|
||||
### 0.7 (2018-07-04)
|
||||
|
||||
* When using MySQL for event storage, do not leak connections.
|
||||
* When using MySQL for events storage, do not leak connections.
|
||||
* Last events were not shown when viewing a repo of non-default namespace.
|
||||
* Support repos with slash in the name.
|
||||
* Enable Sonatype Nexus compatibility.
|
||||
|
@@ -77,6 +77,12 @@ You can create a table manually if you don't want to grant `CREATE` permission:
|
||||
|
||||
### Schedule a cron task for purging tags
|
||||
|
||||
To delete tags you need to enable the corresponding option in Docker Registry config. For example:
|
||||
|
||||
storage:
|
||||
delete:
|
||||
enabled: true
|
||||
|
||||
The following example shows how to run a cron task to purge tags older than X days but also keep
|
||||
at least Y tags no matter how old. Assuming container has been already running.
|
||||
|
||||
|
@@ -175,7 +175,9 @@ func (e *EventListener) getDababaseHandler() (*sql.DB, error) {
|
||||
if err != nil {
|
||||
firstRun = true
|
||||
}
|
||||
rows.Close()
|
||||
if rows != nil {
|
||||
rows.Close()
|
||||
}
|
||||
}
|
||||
|
||||
// Create table on first run.
|
||||
|
3
main.go
3
main.go
@@ -124,6 +124,9 @@ func main() {
|
||||
|
||||
// Web routes.
|
||||
e.Static(a.config.BasePath+"/static", "static")
|
||||
if a.config.BasePath != "" {
|
||||
e.GET(a.config.BasePath, a.viewRepositories)
|
||||
}
|
||||
e.GET(a.config.BasePath+"/", a.viewRepositories)
|
||||
e.GET(a.config.BasePath+"/:namespace", a.viewRepositories)
|
||||
e.GET(a.config.BasePath+"/:namespace/:repo", a.viewTags)
|
||||
|
Reference in New Issue
Block a user