Merge pull request #572 from infosiftr/break-all-the-things

Remove excessive complexity from update.sh
This commit is contained in:
Tianon Gravi 2016-05-13 13:58:39 -07:00
commit 81359de62a
120 changed files with 201 additions and 96 deletions

View File

@ -4,7 +4,7 @@ Documentation for this image is stored in the [`%%REPO%%/` directory](https://gi
## Issues
If you have any problems with or questions about this image, please contact us %%MAILING-LIST%% through a [GitHub issue](%%GITHUB-REPO%%/issues). If the issue is related to a CVE, please check for [a `cve-tracker` issue on the `official-images` repository first](https://github.com/docker-library/official-images/issues?q=label%3Acve-tracker).
If you have any problems with or questions about this image, please contact us through a [GitHub issue](%%GITHUB-REPO%%/issues). If the issue is related to a CVE, please check for [a `cve-tracker` issue on the `official-images` repository first](https://github.com/docker-library/official-images/issues?q=label%3Acve-tracker).
You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Freenode](https://freenode.net).
@ -12,4 +12,4 @@ You can also reach many of the official image maintainers via the `#docker-libra
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans %%MAILING-LIST%% through a [GitHub issue](%%GITHUB-REPO%%/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.
Before you start to code, we recommend discussing your plans through a [GitHub issue](%%GITHUB-REPO%%/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

View File

@ -39,6 +39,16 @@ script:
echo >&2 "Too long (or too many lines):$failed";
exit 1;
fi
- failed='';
for repo in */; do
if [ ! -e "$repo/github-repo" ]; then
failed+=" $repo";
fi
done;
if [ "$failed" ]; then
echo >&2 "Missing github-repo for:$failed";
exit 1;
fi
- if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
if [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then
echo >&2 'Error:'' at least one repo README.md has changed';

View File

@ -12,16 +12,23 @@ All Markdown files here are run through [tianon's fork of `markdownfmt`](https:/
- create a `README-short.txt` (required, 100 char max)
- create a `content.md` (required)
- create a `license.md` (required)
- create a `github-repo` (required)
- add a `logo.png` (recommended)
- edit `update.sh` as needed (see below)
- run `./markdownfmt.sh -l myimage` to verify that the format of your markdown files is compliant with `tianon/markdownfmt`. In case you see any file names, markdownfmt detected some issues, which might result in a failed build during continuous integration.
- optionally run `./update.sh myimage` to generate `myimage/README.md` for review. **Note:** do not actually commit the `README.md` file; it is automatically generated/committed before being uploaded to DockerHub.
Optionally:
- run `./update.sh myimage` to generate `myimage/README.md` for your review. **Note:** do not actually commit the `README.md` file; it is automatically generated/committed before being uploaded to Docker Hub.
- run `./markdownfmt.sh -l myimage` to verify whether format of your markdown files is compliant to `tianon/markdownfmt`. In case you see any file names, markdownfmt detected some issues, which might result in a failed build during continuous integration. run `./markdownfmt.sh -d myimage` to see a diff of changes required to pass.
# How do I update an image's docs
To update `README.md` for a specific image do not edit `README.md` directly. Please edit `content.md` or another appropriate file within the folder. To see the changes, run `./update.sh myimage` from the repo root, but do not add the `README.md` changes to your pull request. See also `markdownfmt.sh` point [above](#how-do-i-add-a-new-images-docs).
# What are all these files?
## `update.sh`
This is the main script used to generate the `README.md` files for each image. When a new image is added that is not under the `docker-library` namespace on GitHub, a new entry must be added to the `otherRepos` array in this script. Accepted arguments are which image(s) you want to update and no arguments to update all of them.
This is the main script used to generate the `README.md` files for each image. The generated file is committed along with the files used to generate it (see below on what customizations are available). Accepted arguments are which image(s) you want to update or no arguments to update all of them.
## `generate-repo-stub-readme.sh`
@ -82,18 +89,18 @@ This file should contain a link to the license for the main software in the imag
View [license information](http://golang.org/LICENSE) for the software contained in this image.
```
## `<image name>/github-repo`
This file should contain the URL to the GitHub repository for the Dockerfiles that become the images. The file should be in a single line ending in a newline with no extraneous whitespace. Only one GitHub repo per image repository is supported. It is used in generating links. Here is an example for `golang`:
```text
https://github.com/docker-library/golang
```
## `<image name>/user-feedback.md`
This file is an optional override of the default `user-feedback.md` for those repositories with different issue and contributing policies.
## `<image name>/mailing-list.md`
This file is snippet that gets inserted into the user feedback section to provide and extra way to get help, like a mailing list. Here is an example from the Postgres image:
```markdown
on the [mailing list](http://www.postgresql.org/community/lists/subscribe/) or
```
# Issues and Contributing
If you would like to make a new Official Image, be sure to follow the [guidelines](https://docs.docker.com/docker-hub/official_repos/) and optionally talk to officialrepos@docker.com.

1
aerospike/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/aerospike/aerospike-server.docker

View File

@ -1 +0,0 @@
on the [Aerospike Forums](https://discuss.aerospike.com) or

View File

@ -0,0 +1,15 @@
## Documentation
Documentation for this image is stored in the [`%%REPO%%/` directory](https://github.com/docker-library/docs/tree/master/%%REPO%%) of the [`docker-library/docs` GitHub repo](https://github.com/docker-library/docs). Be sure to familiarize yourself with the [repository's `README.md` file](https://github.com/docker-library/docs/blob/master/README.md) before attempting a pull request.
## Issues
If you have any problems with or questions about this image, please contact us on the [Aerospike Forums](https://discuss.aerospike.com) or through a [GitHub issue](%%GITHUB-REPO%%/issues). If the issue is related to a CVE, please check for [a `cve-tracker` issue on the `official-images` repository first](https://github.com/docker-library/official-images/issues?q=label%3Acve-tracker).
You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Freenode](https://freenode.net).
## Contributing
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans on the [Aerospike Forums](https://discuss.aerospike.com) or through a [GitHub issue](%%GITHUB-REPO%%/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

1
alpine/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/gliderlabs/docker-alpine

1
arangodb/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/arangodb/arangodb-docker

1
backdrop/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/backdrop-ops/backdrop-docker

1
bonita/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/Bonitasoft-Community/docker_bonita

View File

@ -0,0 +1 @@
https://github.com/docker-library/buildpack-deps

1
busybox/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/busybox

1
cassandra/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/cassandra

1
celery/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/celery

1
centos/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/CentOS/sig-cloud-instance-images

View File

@ -1 +0,0 @@
by submitting a ticket at [https://bugs.centos.org](https://bugs.centos.org) or

15
centos/user-feedback.md Normal file
View File

@ -0,0 +1,15 @@
## Documentation
Documentation for this image is stored in the [`%%REPO%%/` directory](https://github.com/docker-library/docs/tree/master/%%REPO%%) of the [`docker-library/docs` GitHub repo](https://github.com/docker-library/docs). Be sure to familiarize yourself with the [repository's `README.md` file](https://github.com/docker-library/docs/blob/master/README.md) before attempting a pull request.
## Issues
If you have any problems with or questions about this image, please contact us by submitting a ticket at [https://bugs.centos.org](https://bugs.centos.org) or through a [GitHub issue](%%GITHUB-REPO%%/issues). If the issue is related to a CVE, please check for [a `cve-tracker` issue on the `official-images` repository first](https://github.com/docker-library/official-images/issues?q=label%3Acve-tracker).
You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Freenode](https://freenode.net).
## Contributing
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans by submitting a ticket at [https://bugs.centos.org](https://bugs.centos.org) or through a [GitHub issue](%%GITHUB-REPO%%/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

1
chronograf/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/influxdata/chronograf-docker

1
cirros/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/ewindisch/docker-cirros

1
clojure/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/Quantisan/docker-clojure

1
consul/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/hashicorp/docker-consul

1
couchbase/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/couchbase/docker

1
couchdb/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/klaemo/docker-couchdb

1
crate/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/crate/docker-crate

1
crux/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/therealprologic/docker-crux

1
debian/github-repo vendored Normal file
View File

@ -0,0 +1 @@
https://github.com/tianon/docker-brew-debian

1
django/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/django

1
docker-dev/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker/docker

1
docker/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/docker

1
drupal/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/drupal

View File

@ -0,0 +1 @@
https://github.com/docker-library/elasticsearch

1
elixir/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/c0b/docker-elixir

1
erlang/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/c0b/docker-erlang-otp

1
fedora/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/lsm5/docker-brew-fedora

View File

@ -1 +0,0 @@
by filing a bug on [Fedora's bugzilla page](https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora) (choose `docker` as component and include details about image problems in the description) or

15
fedora/user-feedback.md Normal file
View File

@ -0,0 +1,15 @@
## Documentation
Documentation for this image is stored in the [`%%REPO%%/` directory](https://github.com/docker-library/docs/tree/master/%%REPO%%) of the [`docker-library/docs` GitHub repo](https://github.com/docker-library/docs). Be sure to familiarize yourself with the [repository's `README.md` file](https://github.com/docker-library/docs/blob/master/README.md) before attempting a pull request.
## Issues
If you have any problems with or questions about this image, please contact us by filing a bug on [Fedora's bugzilla page](https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora) (choose `docker` as component and include details about image problems in the description) or through a [GitHub issue](%%GITHUB-REPO%%/issues). If the issue is related to a CVE, please check for [a `cve-tracker` issue on the `official-images` repository first](https://github.com/docker-library/official-images/issues?q=label%3Acve-tracker).
You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Freenode](https://freenode.net).
## Contributing
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans by filing a bug on [Fedora's bugzilla page](https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora) (choose `docker` as component and include details about image problems in the description) or through a [GitHub issue](%%GITHUB-REPO%%/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

1
gazebo/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/osrf/docker_images

1
gcc/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/gcc

1
ghost/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/ghost

1
glassfish/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/aws/aws-eb-glassfish

1
golang/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/golang

1
haproxy/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/haproxy

1
haskell/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/freebroccolo/docker-haskell

1
hello-world/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/hello-world

1
hipache/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/dotcloud/hipache

1
httpd/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/httpd

1
hylang/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/hylang/hy

1
influxdb/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/influxdata/influxdb-docker

1
iojs/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/nodejs/docker-iojs

1
irssi/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/jfrazelle/irssi

1
java/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/java

1
jenkins/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/cloudbees/jenkins-ci.org-docker

1
jetty/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/appropriate/docker-jetty

1
joomla/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/joomla/docker-joomla

1
jruby/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/cpuguy83/docker-jruby

1
julia/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/julia

View File

@ -0,0 +1 @@
https://github.com/kaazing/gateway.docker

1
kapacitor/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/influxdata/kapacitor-docker

1
kibana/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/kibana

View File

@ -0,0 +1 @@
https://github.com/Lightstreamer/Docker

1
logstash/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/logstash

1
mageia/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/juanluisbaptiste/docker-brew-mageia

1
mariadb/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/mariadb

1
maven/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/carlossg/docker-maven

1
memcached/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/memcached

View File

@ -0,0 +1 @@
https://github.com/mongo-express/mongo-express-docker

1
mongo/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/mongo

1
mono/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/mono/docker

1
mysql/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/mysql

1
nats/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/nats-io/nats-docker

1
neo4j/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/neo4j/docker-neo4j

1
neurodebian/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/neurodebian/dockerfiles

1
nginx/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/nginxinc/docker-nginx

1
node/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/nodejs/docker-node

1
notary/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker/notary-official-images

1
nuxeo/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/nuxeo/docker-nuxeo

1
odoo/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/odoo/docker

1
opensuse/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/openSUSE/docker-containers-build

1
oraclelinux/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/oracle/docker

1
orientdb/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/orientechnologies/orientdb-docker

1
owncloud/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/owncloud

1
percona/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/percona

1
perl/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/Perl/docker-perl

1
photon/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/frapposelli/photon-docker-image

View File

@ -0,0 +1 @@
https://github.com/zendtech/php-zendserver-docker

1
php/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/php

1
piwik/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/piwik/docker-piwik

1
postgres/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/postgres

View File

@ -1 +0,0 @@
on the [mailing list](http://www.postgresql.org/community/lists/subscribe/) or

15
postgres/user-feedback.md Normal file
View File

@ -0,0 +1,15 @@
## Documentation
Documentation for this image is stored in the [`%%REPO%%/` directory](https://github.com/docker-library/docs/tree/master/%%REPO%%) of the [`docker-library/docs` GitHub repo](https://github.com/docker-library/docs). Be sure to familiarize yourself with the [repository's `README.md` file](https://github.com/docker-library/docs/blob/master/README.md) before attempting a pull request.
## Issues
If you have any problems with or questions about this image, please contact us on the [mailing list](http://www.postgresql.org/community/lists/subscribe/) or through a [GitHub issue](%%GITHUB-REPO%%/issues). If the issue is related to a CVE, please check for [a `cve-tracker` issue on the `official-images` repository first](https://github.com/docker-library/official-images/issues?q=label%3Acve-tracker).
You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Freenode](https://freenode.net).
## Contributing
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans on the [mailing list](http://www.postgresql.org/community/lists/subscribe/) or through a [GitHub issue](%%GITHUB-REPO%%/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

1
pypy/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/pypy

1
python/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/python

1
r-base/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/rocker-org/rocker

1
rabbitmq/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/rabbitmq

1
rails/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/rails

1
rakudo-star/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/perl6/docker

1
redis/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/redis

1
redmine/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker-library/redmine

1
registry/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/docker/docker-registry

1
rethinkdb/github-repo Normal file
View File

@ -0,0 +1 @@
https://github.com/stuartpb/rethinkdb-dockerfiles

Some files were not shown because too many files have changed in this diff Show More