Docker Library import (#3063)

* Docker Library import

* Auto-gen Samples TOC

* Modular hovers on Glossary page

* TOC sync fix
This commit is contained in:
John Mulhausen 2017-05-17 12:33:09 -07:00 committed by GitHub
parent 919bc2c388
commit 102c00e071
142 changed files with 845 additions and 12 deletions

3
.gitmodules vendored
View File

@ -11,3 +11,6 @@
url = https://github.com/go-yaml/yaml.git
branch = a5b47d31c556af34a302ce5d659e6fea44d90de0
[submodule "samples/library"]
path = samples/library
url = https://github.com/docker-library/docs.git

View File

@ -177,14 +177,13 @@ Machine: |
*Also known as : docker-machine*
namespace: |
A [Linux namespace](http://man7.org/linux/man-pages/man7/namespaces.7.html){: target="_blank" class="_"}
A [Linux namespace](http://man7.org/linux/man-pages/man7/namespaces.7.html)
is a Linux kernel feature that isolates and vitualizes system resources. Processes which restricted to
a namespace can only interact with resources or processes that are part of the same namespace. Namespaces
are an important part of Docker's isolation model. Namespaces exist for each type of
resource, including `net` (networking), `mnt` (storage), `pid` (processes), `uts` (hostname control),
and `user` (UID mapping). For more information about namespaces, see [Docker run reference](/engine/reference/run.md)
and [Introduction to user namespaces](https://success.docker.com/KBase/Introduction_to_User_Namespaces_in_Docker_Engine){ :target="_blank" class="_" }.
and [Introduction to user namespaces](https://success.docker.com/KBase/Introduction_to_User_Namespaces_in_Docker_Engine).
node: |
A [node](/engine/swarm/how-swarm-mode-works/nodes/) is a physical or virtual
machine running an instance of the Docker Engine in swarm mode.

View File

@ -1187,6 +1187,9 @@ reference:
samples:
- path: /samples/#tutorial-labs
title: Tutorial labs
- sectiontitle: Library references
section:
- generateTOC: library
- sectiontitle: Sample applications
section:
- path: /samples/

View File

@ -0,0 +1,3 @@
{% if include.tocToGenerate=="library"%}{% for thisPage in site.pages %}{% if thisPage.url contains "/samples/" and thisPage.url != "/samples/" %}
<li><a href="{{ thisPage.url}}"{% if page.url==thisPage.url %}{% assign topicFound="true" %} class="active currentPage"{% endif %}>{{ thisPage.title }}</a></li>
{% endif %}{% endfor %}{% endif %}

View File

@ -1,9 +1,10 @@
{% assign foundBranch="false" %}
{% for item in tree %}
{% if item.generateTOC %}{% include generateTOC.html tocToGenerate=item.generateTOC %}{% else %}
{% if item.sectiontitle %}{% if foundBranch=="false" %}{% capture treeString %}{{ item.section | downcase }}{% endcapture %}{% capture pageURLString %}"{{ page.url }}"{% endcapture %}{% else %}{% assign treeString="" %}{% endif %}
<li><a data-target="#item{{ forloop.index }}" data-toggle="collapse" data-parent="#stacked-menu"{% if treeString contains pageURLString %}{% assign foundBranch="true"%} aria-expanded="true"{% else %} class="collapsed" aria-expanded="false"{% endif %}>{{ item.sectiontitle }}<span class="caret arrow"></span></a>
<ul class="nav collapse{% if foundBranch == "true" %} in{% endif %}" id="#item{{ forloop.index }}" aria-expanded="{% if foundBranch == "true" %}true{% else %}false{% endif %}">{% assign tree = item.section %}{% include tree.html %}</ul>
</li>
{% else %}
<li><a href="{{ item.path }}"{% if item.path == page.url and item.nosync != true %} class="active currentPage"{% endif %}>{{ item.title }}</a></li>
{% endif %}{% endfor %}
{% endif %}{% endif %}{% endfor %}

View File

@ -33,7 +33,7 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %
display: block;
}
</style>
<script async="" defer="" src="//survey.g.doubleclick.net/async_survey?site=k6svi4faiclrdpi5eax4n23dzy"></script>
<!-- script async="" defer="" src="//survey.g.doubleclick.net/async_survey?site=k6svi4faiclrdpi5eax4n23dzy"></script -->
<script type="text/javascript">
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
analytics.load("IWj9D0UpZHZdZUZX9jl98PcpBFWBnBMy");

22
_layouts/library.html Normal file
View File

@ -0,0 +1,22 @@
---
layout: docs
toc_min: 1
noratings: true
---
{% capture fileToUse %}{% if page.file %}{{ page.file }}{% else %}README.md{% endif %}{% endcapture %}
{% capture ghrepo %}{% include_relative library/{{ page.repo }}/github-repo %}{% endcapture %}
{% capture markdowncontent %}
{% include_relative library/{{ page.repo }}/README-short.txt %}
GitHub repo: [{{ ghrepo | strip }}]({{ ghrepo | strip}}){: target="_blank"}
> **Library reference**
>
> This content is imported from
> [the official Docker Library docs](https://github.com/docker-library/docs/tree/master/{{ page.repo}}/),
> and is provided by the original uploader. You can view the Docker Store page for this repo at
> [https://store.docker.com/images/{{ page.repo }}](https://store.docker.com/images/{{ page.repo }}).
{% include_relative library/{{ page.repo }}/{{ fileToUse }} %}
{% endcapture %}
{{ markdowncontent | markdownify }}

View File

@ -23,6 +23,9 @@ like so:
To see a definition for a term, and all topics in the documentation that have
been tagged with that term, click any entry below:
{% for entry in site.data.glossary %}
- [{{ entry[0] }}](/glossary/?term={{ entry[0]}})
{% for entry in site.data.glossary %}- [{{ entry[0] }}]
{% endfor %}
{% for entry in site.data.glossary %}[{{ entry[0] }}]: /glossary/?term={{ entry[0] }}
{: class="glossLink" data-content="{{ entry[1] | markdownify | strip_html | strip | truncatewords: 50, "..."}}" data-trigger="hover" id="popoverData{{ forloop.index }}" rel="popover" data-placement="bottom" data-original-title="Definition of: {{ entry[0]}}"}
{% endfor %}

View File

@ -12,6 +12,10 @@ if (current[0]) {
current[0].scrollIntoView(true);
body[0].scrollIntoView(true);
}
// library hack
if (document.location.pathname.indexOf("/samples/") > -1){
$(".currentPage").closest("ul").addClass("in");
}
}
function highlightRightNav(heading)
@ -289,3 +293,5 @@ window.onload = function() {
$('.nav-tabs > li > a[data-group="'+ group +'"]').tab('show');
})
};
$('.glossLink').popover();

6
samples/adminer.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Adminer
keywords: library, sample, Adminer
layout: library
repo: adminer
---

6
samples/aerospike.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Aerospike
keywords: library, sample, Aerospike
layout: library
repo: aerospike
---

6
samples/alpine.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Alpine
keywords: library, sample, Alpine
layout: library
repo: alpine
---

6
samples/amazonlinux.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Amazon Linux
keywords: library, sample, Amazon Linux
layout: library
repo: amazonlinux
---

6
samples/arangodb.md Normal file
View File

@ -0,0 +1,6 @@
---
title: ArangoDB
keywords: library, sample, ArangoDB
layout: library
repo: arangodb
---

6
samples/backdrop.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Backdrop
keywords: library, sample, Backdrop
layout: library
repo: backdrop
---

6
samples/bash.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Bash
keywords: library, sample, Bash
layout: library
repo: bash
---

6
samples/bonita.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Bonita
keywords: library, sample, Bonita
layout: library
repo: bonita
---

View File

@ -0,0 +1,6 @@
---
title: buildpack-deps
keywords: library, sample, buildpack-deps
layout: library
repo: buildpack-deps
---

6
samples/busybox.md Normal file
View File

@ -0,0 +1,6 @@
---
title: BusyBox
keywords: library, sample, BusyBox
layout: library
repo: busybox
---

6
samples/cassandra.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Cassandra
keywords: library, sample, Cassandra
layout: library
repo: cassandra
---

6
samples/celery.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Celery
keywords: library, sample, Celery
layout: library
repo: celery
---

6
samples/centos.md Normal file
View File

@ -0,0 +1,6 @@
---
title: CentOS
keywords: library, sample, CentOS
layout: library
repo: centos
---

6
samples/chronograf.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Chronograf
keywords: library, sample, Chronograf
layout: library
repo: chronograf
---

6
samples/cirros.md Normal file
View File

@ -0,0 +1,6 @@
---
title: CirrOS
keywords: library, sample, CirrOS
layout: library
repo: cirros
---

6
samples/clearlinux.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Clear Linux
keywords: library, sample, Clear Linux
layout: library
repo: clearlinux
---

6
samples/clojure.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Clojure
keywords: library, sample, Clojure
layout: library
repo: clojure
---

6
samples/composer.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Composer
keywords: library, sample, Composer
layout: library
repo: composer
---

6
samples/consul.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Consul
keywords: library, sample, Consul
layout: library
repo: consul
---

6
samples/convertigo.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Convertigo
keywords: library, sample, Convertigo
layout: library
repo: convertigo
---

6
samples/couchbase.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Couchbase
keywords: library, sample, Couchbase
layout: library
repo: couchbase
---

6
samples/couchdb.md Normal file
View File

@ -0,0 +1,6 @@
---
title: CouchDB
keywords: library, sample, CouchDB
layout: library
repo: couchdb
---

6
samples/crate.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Crate
keywords: library, sample, Crate
layout: library
repo: crate
---

6
samples/crux.md Normal file
View File

@ -0,0 +1,6 @@
---
title: CRUX
keywords: library, sample, CRUX
layout: library
repo: crux
---

6
samples/debian.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Debian
keywords: library, sample, Debian
layout: library
repo: debian
---

6
samples/django.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Django
keywords: library, sample, Django
layout: library
repo: django
---

6
samples/docker.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Docker in Docker
keywords: library, sample, Docker in Docker
layout: library
repo: docker
---

6
samples/drupal.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Drupal
keywords: library, sample, Drupal
layout: library
repo: docker
---

View File

@ -0,0 +1,6 @@
---
title: Eclipse Mosquitto
keywords: library, sample, Eclipse Mosquitto
layout: library
repo: eclipse-mosquitto
---

6
samples/eggdrop.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Eggdrop
keywords: library, sample, Eggdrop
layout: library
repo: eggdrop
---

6
samples/elasticsearch.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Elasticsearch
keywords: library, sample, Elasticsearch
layout: library
repo: elasticsearch
---

6
samples/elixir.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Elixir
keywords: library, sample, Elixir
layout: library
repo: elixir
---

6
samples/erlang.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Erlang
keywords: library, sample, Erlang
layout: library
repo: erlang
---

6
samples/fedora.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Fedora
keywords: library, sample, Fedora
layout: library
repo: fedora
---

6
samples/fsharp.md Normal file
View File

@ -0,0 +1,6 @@
---
title: F#
keywords: library, sample, F#
layout: library
repo: fsharp
---

6
samples/gazebo.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Gazebo
keywords: library, sample, Gazebo
layout: library
repo: gazebo
---

6
samples/gcc.md Normal file
View File

@ -0,0 +1,6 @@
---
title: The GNU Compiler Collection (GCC)
keywords: library, sample, GNU Compiler Collection, GCC
layout: library
repo: gcc
---

6
samples/geonetwork.md Normal file
View File

@ -0,0 +1,6 @@
---
title: GeoNetwork
keywords: library, sample, GeoNetwork
layout: library
repo: geonetwork
---

6
samples/ghost.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Ghost
keywords: library, sample, Ghost
layout: library
repo: ghost
---

6
samples/golang.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Go (a.k.a., Golang)
keywords: library, sample, Go, Golang
layout: library
repo: golang
---

6
samples/gradle.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Gradle
keywords: library, sample, Gradle
layout: library
repo: gradle
---

6
samples/groovy.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Groovy
keywords: library, sample, Groovy
layout: library
repo: groovy
---

6
samples/haproxy.md Normal file
View File

@ -0,0 +1,6 @@
---
title: HAProxy
keywords: library, sample, HAProxy
layout: library
repo: haproxy
---

6
samples/haskell.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Haskell
keywords: library, sample, Haskell
layout: library
repo: haskell
---

6
samples/haxe.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Haxe
keywords: library, sample, Haxe
layout: library
repo: haxe
---

6
samples/httpd.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Apache httpd
keywords: library, sample, httpd, Apache
layout: library
repo: httpd
---

6
samples/hylang.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Hy (a.k.a., Hylang)
keywords: library, sample, Hy, Hylang
layout: library
repo: hylang
---

6
samples/ibmjava.md Normal file
View File

@ -0,0 +1,6 @@
---
title: IBM® SDK, Java™ Technology Edition
keywords: library, sample, IBM Java, Java, IBM
layout: library
repo: ibmjava
---

View File

@ -1,12 +1,7 @@
---
title: Samples
notoc: true
---
## Docker samples
The following samples were developed by Docker and the Docker community.
{% assign labsbase = "https://github.com/docker/labs/tree/master" %}
## Tutorial labs
@ -29,6 +24,17 @@ repository]({{ labsbase }}).
| [Docker Security]({{ labsbase }}/security/README.md){: target="_blank"} | How to take advantage of a Docker security features. |
| [Building a 12-factor application with Docker]({{ labsbase}}/12factor){: target="_blank"} | Use Docker to create an app that conforms to Heroku's "12 factors for cloud-native applications." |
## Library references
These docs are imported from the
[the official Docker Library docs](https://github.com/docker-library/docs/),
and help you use of some of the most popular software that has been
"Dockerized."
| Software | Description |
{% for thisPage in site.pages %}{% if thisPage.url contains "/samples/" and thisPage.url != "/samples/" %}| [{{ thisPage.title }}]({{ thisPage.url }}) | {% capture shortxt %}{% include_relative library/{{ thisPage.repo }}/README-short.txt %}{% endcapture %}{{ shortxt | strip }} |
{% endif %}{% endfor %}
## Sample applications
Run popular software using Docker.

6
samples/influxdb.md Normal file
View File

@ -0,0 +1,6 @@
---
title: InfluxDB
keywords: library, sample, InfluxDB
layout: library
repo: influxdb
---

6
samples/iojs.md Normal file
View File

@ -0,0 +1,6 @@
---
title: io.js
keywords: library, sample, io.js, npm
layout: library
repo: iojs
---

6
samples/irssi.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Irssi
keywords: library, sample, Irssi
layout: library
repo: irssi
---

6
samples/java.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Java
keywords: library, sample, Java
layout: library
repo: java
---

6
samples/jenkins.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Jenkins
keywords: library, sample, Jenkins
layout: library
repo: jenkins
---

6
samples/jetty.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Jetty
keywords: library, sample, Java, Jetty
layout: library
repo: jetty
---

6
samples/joomla.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Joomla
keywords: library, sample, Joomla
layout: library
repo: joomla
---

6
samples/jruby.md Normal file
View File

@ -0,0 +1,6 @@
---
title: JRuby
keywords: library, sample, JRuby
layout: library
repo: jruby
---

6
samples/julia.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Julia
keywords: library, sample, Julia
layout: library
repo: julia
---

View File

@ -0,0 +1,6 @@
---
title: Kaazing Gateway
keywords: library, sample, Kaazing Gateway
layout: library
repo: kaazing-gateway
---

6
samples/kapacitor.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Kapacitor
keywords: library, sample, Kapacitor
layout: library
repo: kapacitor
---

6
samples/kibana.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Kibana
keywords: library, sample, Kibana, Elasticsearch
layout: library
repo: kibana
---

6
samples/known.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Known
keywords: library, sample, Known
layout: library
repo: known
---

6
samples/kong.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Kong
keywords: library, sample, Kong
layout: library
repo: kong
---

1
samples/library Submodule

@ -0,0 +1 @@
Subproject commit 7d03e2198f07a2e95c6ab9c04d26f168dc8fa1e6

6
samples/lightstreamer.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Lightstreamer
keywords: library, sample, Lightstreamer
layout: library
repo: lightstreamer
---

6
samples/logstash.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Logstash
keywords: library, sample, Logstash
layout: library
repo: logstash
---

6
samples/mageia.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Mageia
keywords: library, sample, Mageia
layout: library
repo: mageia
---

6
samples/mariadb.md Normal file
View File

@ -0,0 +1,6 @@
---
title: MariaDB
keywords: library, sample, MariaDB
layout: library
repo: mariadb
---

6
samples/maven.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Maven
keywords: library, sample, Maven
layout: library
repo: maven
---

6
samples/memcached.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Memcached
keywords: library, sample, Memcached
layout: library
repo: memcached
---

6
samples/mongo-express.md Normal file
View File

@ -0,0 +1,6 @@
---
title: mongo-express
keywords: library, sample, mongo-express
layout: library
repo: mongo-express
---

6
samples/mongo.md Normal file
View File

@ -0,0 +1,6 @@
---
title: MongoDB
keywords: library, sample, MongoDB
layout: library
repo: mongo
---

6
samples/mono.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Mono
keywords: library, sample, Mono
layout: library
repo: mono
---

6
samples/mysql.md Normal file
View File

@ -0,0 +1,6 @@
---
title: MySQL
keywords: library, sample, MySQL
layout: library
repo: mysql
---

View File

@ -0,0 +1,6 @@
---
title: nats-streaming
keywords: library, sample, nats-streaming
layout: library
repo: nats-streaming
---

6
samples/nats.md Normal file
View File

@ -0,0 +1,6 @@
---
title: nats
keywords: library, sample, nats
layout: library
repo: nats
---

6
samples/neo4j.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Neo4j
keywords: library, sample, Neo4j
layout: library
repo: neo4j
---

6
samples/neurodebian.md Normal file
View File

@ -0,0 +1,6 @@
---
title: NeuroDebian
keywords: library, sample, NeuroDebian
layout: library
repo: neurodebian
---

6
samples/nextcloud.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Nextcloud
keywords: library, sample, Nextcloud
layout: library
repo: nextcloud
---

6
samples/nginx.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Nginx
keywords: library, sample, Nginx
layout: library
repo: nginx
---

6
samples/node.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Node.js
keywords: library, sample, Node.js
layout: library
repo: node
---

6
samples/notary.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Notary
keywords: library, sample, Notary
layout: library
repo: notary
---

6
samples/nuxeo.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Nuxeo
keywords: library, sample, Nuxeo
layout: library
repo: nuxeo
---

6
samples/odoo.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Odoo
keywords: library, sample, Odoo
layout: library
repo: odoo
---

6
samples/openjdk.md Normal file
View File

@ -0,0 +1,6 @@
---
title: OpenJDK
keywords: library, sample, OpenJDK
layout: library
repo: openjdk
---

6
samples/opensuse.md Normal file
View File

@ -0,0 +1,6 @@
---
title: openSUSE
keywords: library, sample, openSUSE
layout: library
repo: opensuse
---

6
samples/oraclelinux.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Oracle Linux
keywords: library, sample, Oracle Linux
layout: library
repo: oraclelinux
---

6
samples/orientdb.md Normal file
View File

@ -0,0 +1,6 @@
---
title: OrientDB
keywords: library, sample, OrientDB
layout: library
repo: orientdb
---

6
samples/owncloud.md Normal file
View File

@ -0,0 +1,6 @@
---
title: ownCloud
keywords: library, sample, ownCloud
layout: library
repo: owncloud
---

6
samples/percona.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Percona
keywords: library, sample, Percona
layout: library
repo: percona
---

6
samples/perl.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Perl
keywords: library, sample, Perl
layout: library
repo: perl
---

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