Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .ci/check-metadata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -Eeuo pipefail

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."

# metadata.sh takes directories with a 'metadata.json' in them
# metadata.json is expected in every repo
# "." so that the canonical source metadata.json is checked too
./metadata.sh */ .
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ jobs:
fetch-depth: 0
- run: .ci/check-pr-no-readme.sh
if: ${{ github.event_name == 'pull_request' }}
metadata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: .ci/check-metadata.sh
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ After opening your Pull Request the changes will be checked by an automated `mar
- Create a `license.md` (required)
- Create a `maintainer.md` (required)
- Create a `github-repo` (required)
- Create a `metadata.json` (required)
- Add a `logo.png` (recommended)

Optionally:
Expand Down Expand Up @@ -128,6 +129,18 @@ The image is automatically scaled to a 120 pixel square for the top of the Docke

This file should contain a link to the maintainers of the Dockerfile.

## `metadata.json`

This file contains data about the repo for Docker Hub. The minimum file is defined below. `./metadata.sh [repo-name]` must be used to correctly format it (use `-w` to apply its suggested format changes). Only three sorted unique Docker Hub categories are allowed. `metadata.json` in the root contains the list of categories to choose from.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should link to https://docs.docker.com/docker-hub/repos/categories/ in here somewhere? (esp. since it has the descriptions for all the categories)


```json
{
"hub": {
"categories": []
}
}
```

## `README-short.txt`

This is the short description for the Docker Hub, limited to 100 characters in a single line.
Expand Down
7 changes: 7 additions & 0 deletions adminer/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions aerospike/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions almalinux/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions alpine/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions alt/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions amazoncorretto/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions amazonlinux/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions api-firewall/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"security"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"security"
"api-management"

API Management: Tools for creating, publishing, analyzing, and securing APIs.

]
}
}
7 changes: 7 additions & 0 deletions arangodb/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions archlinux/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions backdrop/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"content-management-system"
]
}
}
7 changes: 7 additions & 0 deletions bash/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"developer-tools"
]
}
}
7 changes: 7 additions & 0 deletions bonita/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions buildpack-deps/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"developer-tools"
]
}
}
7 changes: 7 additions & 0 deletions busybox/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions caddy/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"web-servers"
]
}
}
7 changes: 7 additions & 0 deletions cassandra/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
5 changes: 5 additions & 0 deletions centos/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hub": {
"categories": []
}
}
7 changes: 7 additions & 0 deletions chronograf/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"monitoring-and-observability"
]
}
}
7 changes: 7 additions & 0 deletions cirros/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions clearlinux/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions clefos/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions clojure/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions composer/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"developer-tools"
]
}
}
5 changes: 5 additions & 0 deletions consul/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hub": {
"categories": []
}
}
7 changes: 7 additions & 0 deletions convertigo/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions couchbase/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions couchdb/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions crate/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions dart/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions debian/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions docker/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"developer-tools"
]
}
}
7 changes: 7 additions & 0 deletions drupal/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions eclipse-mosquitto/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"message-queues"
]
}
}
7 changes: 7 additions & 0 deletions eclipse-temurin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
5 changes: 5 additions & 0 deletions eggdrop/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hub": {
"categories": []
}
}
7 changes: 7 additions & 0 deletions elasticsearch/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"databases-and-storage"
]
}
}
7 changes: 7 additions & 0 deletions elixir/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
7 changes: 7 additions & 0 deletions emqx/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"message-queues"
]
}
}
7 changes: 7 additions & 0 deletions erlang/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"languages-and-frameworks"
]
}
}
5 changes: 5 additions & 0 deletions express-gateway/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hub": {
"categories": []
}
}
7 changes: 7 additions & 0 deletions fedora/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"operating-systems"
]
}
}
7 changes: 7 additions & 0 deletions flink/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"data-science"
]
}
}
7 changes: 7 additions & 0 deletions fluentd/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hub": {
"categories": [
"monitoring-and-observability"
]
}
}
5 changes: 5 additions & 0 deletions friendica/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hub": {
"categories": []
}
}
Loading