Commit Graph

51619 Commits

Author SHA1 Message Date
Maria Bermudez 633a180605
Merge pull request #8417 from remear/patch-1
Fix spelling Docker Hub Automated Testing page
2019-03-11 10:19:18 -07:00
Maria Bermudez d6246402aa
Remove extra space 2019-03-11 10:18:55 -07:00
paigehargrave 19ba94a608
Merge pull request #8274 from docker/ucp-admin-password
Admin password update when in debug mode
2019-03-11 10:18:24 -07:00
Maria Bermudez 98c2d2555a
Include note around debugging mode 2019-03-11 10:15:09 -07:00
paigehargrave 1ddb03ac67
Merge pull request #8433 from ollypom/dctpatch
Configuring Docker client for Trust Patch
2019-03-11 10:03:56 -07:00
Maria Bermudez ef9779fe27
Update trust_delegation.md 2019-03-11 10:02:11 -07:00
paigehargrave 0f66bebe29
Merge pull request #8427 from trapier/engine-rn-deprecate-dm-version-recorrect
engine rn: recorrect EE version in dm deprecation
2019-03-11 07:17:24 -07:00
L-Hudson a1ec36d825
Merge pull request #8428 from thaJeztah/remove_old_docker_reference
remove references to obsolete versions, and rewrite stdin section
2019-03-11 09:01:44 -04:00
paigehargrave 934d1a4891
Merge pull request #8423 from darwin-traver/patch-22
Updated the UCP GUI prompts
2019-03-10 12:09:04 -07:00
paigehargrave 4ce4467564
Wording updates based on UI 2019-03-10 15:07:09 -04:00
paigehargrave dca80dc057
Updated based on Maria's testing 2019-03-10 14:45:54 -04:00
ollypom ed7513b2ef
Docker Client Registry URL patch 2019-03-09 19:53:07 +00:00
Maria Bermudez e0807ed29c
Merge pull request #8426 from ollypom/contenttrustpatch
Updated Content Trust Docs
2019-03-08 15:49:51 -08:00
Maria Bermudez f9c29e2125
Editorial review 2019-03-08 15:49:29 -08:00
Maria Bermudez 8aaeac0244
Merge pull request #8424 from thaJeztah/fix_best_practice_example
Fix incorrect example in "dockerfile best practices"
2019-03-08 13:57:14 -08:00
Maria Bermudez 379b192896
Merge pull request #8430 from bermudezmt/revert-the-revert
Brings back unmerged content due to previous revert
2019-03-08 13:56:09 -08:00
Maria Bermudez ccbb5e2630 Revert "Revert "Merge branch 'master' of github.com:docker/docker.github.io""
This reverts commit 4b5fbbdbc9.
2019-03-08 10:53:00 -08:00
Maria Bermudez adeba07213
Merge pull request #8421 from ssewell/patch-1
Fixed minor typo
2019-03-08 09:35:19 -08:00
paigehargrave 27d211b81a
Merge pull request #8384 from bermudezmt/dtr-nfs-updates
Addresses 8370
2019-03-08 09:33:27 -08:00
Maria Bermudez faf1e52357 Incorporated technical feedback
Update based on session with Ada and Ryan

Discourage use of NFS storage URL flag

Additional section on storage backend switch

Discourage NFS storage URL option for now

Polish on necessary storage backend updates

Final technical edits

Fix crud on DTR release notes page

Update note on storage links
2019-03-08 09:29:51 -08:00
Sebastiaan van Stijn c6af9fd588
Fix incorrect example in "dockerfile best practices"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-08 18:06:52 +01:00
Maria Bermudez c32fc64258
Merge pull request #8420 from thaJeztah/dockerfile_fixes
Dockerfile follow-up fixes and improvements
2019-03-08 08:52:53 -08:00
Sebastiaan van Stijn 195c6983df
touch-up Markdown formatting and highlighting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-08 17:37:23 +01:00
Trapier Marshall cc054162d2 ee engine rn: correct EE version in dm deprecation
Engine deprecation notice at engine/deprecated indicates dm deprecated in 18.09.0, which was released with EE 2.1.  Make it so in EE engine release notes.

(cherry picked from commit f0639301f4)
2019-03-08 11:37:09 -05:00
ollypom 9a00acab84
Using Docker Trust with a Notary Server with Auth 2019-03-08 16:23:06 +00:00
ollypom eb68c3d408
Added Docker Pull to the content trust verification process 2019-03-08 16:11:02 +00:00
Sebastiaan van Stijn 8e71348370
remove references to obsolete versions, and rewrite stdin section
This removes references to obsolete versions of Docker, and rewrites
the section on building from a Dockerfile piped through `stdin`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-08 17:04:39 +01:00
Darwin Traver 757150ba54
Updated the UCP GUI prompts
Updated the UCP GUI prompts for 'Grant Creation' to reflect the current version of UCP terminology
2019-03-07 15:33:10 -05:00
Maria Bermudez 2ee6341348
Merge pull request #8419 from thaJeztah/fix_liquid_warnings_on_dtr
Fix liquid warnings on DTR troubleshooting page
2019-03-07 10:07:28 -08:00
Shane Sewell 6a6fc45959
Fixed minor typo 2019-03-07 11:08:18 -06:00
Sebastiaan van Stijn 573af666e4
Move fetching "library samples" to a separate stage
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-07 16:27:20 +01:00
Sebastiaan van Stijn 7868538ad7
Fix liquid warnings on DTR troubleshooting page
Fix a warning during build of the documentation:

```
Liquid Warning: Liquid syntax error (line 64): [:dot, "."] is not a valid expression in "{{.Name}}" in datacenter/dtr/2.5/guides/admin/monitor-and-troubleshoot/troubleshoot-dtr.md
Liquid Warning: Liquid syntax error (line 64): [:dot, "."] is not a valid expression in "{{.Name}}" in ee/dtr/admin/monitor-and-troubleshoot/troubleshoot-dtr.md
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-07 15:34:16 +01:00
Sebastiaan van Stijn d2504d31dc
Reorder fetching of upstream-resources
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-07 15:31:51 +01:00
Sebastiaan van Stijn f297c554b6
Remove remaining "edge" docs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-07 15:29:06 +01:00
Sebastiaan van Stijn 0785a8513e
Make wget less noisy when fetching upstream resources
Add a `--quiet` flag to suppress progress output;

```
--2019-03-07 14:02:43--  https://raw.githubusercontent.com/docker/docker-ce/17.12/components/engine/api/swagger.yaml
Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 343126 (335K) [text/plain]
Saving to: './engine/api/v1.35/swagger.yaml'

     0K .......... .......... .......... .......... .......... 14% 2.97M 0s
    50K .......... .......... .......... .......... .......... 29% 6.10M 0s
   100K .......... .......... .......... .......... .......... 44% 6.22M 0s
   150K .......... .......... .......... .......... .......... 59% 6.32M 0s
   200K .......... .......... .......... .......... .......... 74% 6.15M 0s
   250K .......... .......... .......... .......... .......... 89% 6.11M 0s
   300K .......... .......... .......... .....                100% 6.82M=0.06s

2019-03-07 14:02:44 (5.37 MB/s) - './engine/api/v1.35/swagger.yaml' saved [343126/343126]
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-07 15:27:06 +01:00
Sebastiaan van Stijn c7b9a54df9
Dockerfile: fix missing "boilerplate.txt" in build-stage
Although the docs still rendered ok, some pieces were missing
when generating the "samples", which resulted in warnings during
build:

```
Adding front-matter to ./_samples/library/rethinkdb/README.md ...
cat: can't open './_samples/boilerplate.txt': No such file or directory
Adding front-matter to ./_samples/library/tomcat/README.md ...
cat: can't open './_samples/boilerplate.txt': No such file or directory
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-07 15:15:13 +01:00
Ben Mills 9457d7d5bb
Fix spelling Docker Hub Automated Testing page 2019-03-06 21:45:06 -07:00
Maria Bermudez 5d111f85dc
Merge pull request #8413 from thaJeztah/optimize_dockerfile
Dockerfile: optimize for caching
2019-03-06 20:19:56 -08:00
Maria Bermudez 6479270f39 Revert "Update restore-from-backup.md"
This reverts commit ef8f6af3bb.
2019-03-06 15:09:16 -08:00
Maria Bermudez ef8f6af3bb
Update restore-from-backup.md 2019-03-06 14:53:00 -08:00
L-Hudson 2ed35707f7
Merge pull request #8408 from thaJeztah/add_missing_stub_for_builder_prune
Add missing stubs for docker builder subcommands
2019-03-06 17:08:55 -05:00
Maria Bermudez a6aa08dde9
Merge pull request #8411 from thaJeztah/improve_compose_install_docs
Clarify that compose installation is for stable release
2019-03-06 10:12:59 -08:00
Maria Bermudez 1e513418ca
Capitalize product name 2019-03-06 10:10:38 -08:00
Sebastiaan van Stijn 7729a83889
Dockerfile: optimize for caching
The implementation of the Dockerfile first copied the current
version of the documentation, to be followed by fetching upstream
resources, and adding the archived documentation.

As a result, the build-cache was "busted" on every change that was
made locally, causing a full rebuild of both "fetching upstream resources",
building the reference documentation, and generating the archived
versions of the documentation.

With the changes made to the "fetch-upstream-resources.sh" script,
it's now possible to build those docs in advance (in a separate build-
stage), and append the pre-built docs _after_ the current version
of the documentation was built.

This patch updates the Dockerfile to build reference-docs and
archived docs in separate build-stages, optimizing the build for
caching (wich the assumption that no changes are made in upstream
resources between builds). Not only caused this builds to take longer
than needed, but each rebuild also caused new "dangling" images to
be created (in case of the "classic" builder), or new build-caches
to be created (when using BuildKit).

Note that when _deploying_ the documentation, no caching should be
used (to enforce a full rebuild of the documentation, and guarantee
that reference-docs are "fresh").

Before this change, rebuilding the documentation (after a previous
build, so with cache present) took ~185 seconds;

```
docker build -t docs .

[+] Building 184.7s (26/26) FINISHED

 => [builder 2/5] COPY . md_source                                                                                                                                                                                                    2.8s
 => [builder 3/5] RUN bash ./md_source/_scripts/fetch-upstream-resources.sh md_source                                                                                                                                                52.7s
 => [builder 4/5] RUN jekyll build -s md_source -d /usr/share/nginx/html --config md_source/_config.yml                                                                                                                             113.0s
 => [builder 5/5] RUN find /usr/share/nginx/html -type f -name '*.html' | grep -vE "v[0-9]+\." | while read i; do sed -i 's#href="https://docs.docker.com/#href="/#g' "$i"; done                                                      4.4s
 => CACHED [stage-1 2/8] COPY --from=docs/docker.github.io:nginx-onbuild /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf                                                                                                0.0s
 => CACHED [stage-1 3/8] COPY --from=docs/docker.github.io:v17.03 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                         0.0s
 => CACHED [stage-1 4/8] COPY --from=docs/docker.github.io:v17.06 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                         0.0s
 => CACHED [stage-1 5/8] COPY --from=docs/docker.github.io:v17.09 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                         0.0s
 => CACHED [stage-1 6/8] COPY --from=docs/docker.github.io:v17.12 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                         0.0s
 => CACHED [stage-1 7/8] COPY --from=docs/docker.github.io:v18.03 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                         0.0s
 => [stage-1 8/8] COPY --from=builder /usr/share/nginx/html /usr/share/nginx/html                                                                                                                                                     3.7s
 => exporting to image                                                                                                                                                                                                                5.1s
 => => exporting layers                                                                                                                                                                                                               5.1s
 => => writing image sha256:70f77631001bd0271455f893b87dd75a1fd6f5db84a00feb8afe5ddf5a697d7d                                                                                                                                          0.0s
 => => naming to docker.io/library/docs                                                                                                                                                                                               0.0s
```

After this change, archives and reference-docs are using the build-cache,
and building was reduced to ~126 seconds (most of that taken by Jekyll to
generate the static HTML);

```
docker build -t docs .

+] Building 126.4s (30/30) FINISHED
...
 => CACHED [upstream-resources 1/4] COPY ./_scripts/fetch-upstream-resources.sh ./_scripts/                                                                                                                                           0.0s
 => CACHED [upstream-resources 2/4] COPY ./_config.yml .                                                                                                                                                                              0.0s
 => CACHED [upstream-resources 3/4] COPY ./_data/toc.yaml ./_data/                                                                                                                                                                    0.0s
 => CACHED [upstream-resources 4/4] RUN bash ./_scripts/fetch-upstream-resources.sh .                                                                                                                                                 0.0s
 => [current 2/4] COPY --from=upstream-resources /usr/src/app/md_source/. ./                                                                                                                                                          1.5s
 => [current 3/4] RUN jekyll build -d /usr/share/nginx/html                                                                                                                                                                         108.9s
 => [current 4/4] RUN find /usr/share/nginx/html -type f -name '*.html' | grep -vE "v[0-9]+\." | while read i; do sed -i 's#href="https://docs.docker.com/#href="/#g' "$i"; done                                                      4.8s
 => CACHED [deploybase 2/2] COPY --from=docs/docker.github.io:nginx-onbuild /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf                                                                                             0.0s
 => CACHED [archives 1/5] COPY --from=docs/docker.github.io:v17.03 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                        0.0s
 => CACHED [archives 2/5] COPY --from=docs/docker.github.io:v17.06 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                        0.0s
 => CACHED [archives 3/5] COPY --from=docs/docker.github.io:v17.09 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                        0.0s
 => CACHED [archives 4/5] COPY --from=docs/docker.github.io:v17.12 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                        0.0s
 => CACHED [archives 5/5] COPY --from=docs/docker.github.io:v18.03 /usr/share/nginx/html /usr/share/nginx/html                                                                                                                        0.0s
 => [deploy 1/1] COPY --from=current /usr/share/nginx/html /usr/share/nginx/html                                                                                                                                                      4.1s
 => exporting to image                                                                                                                                                                                                                1.9s
 => => exporting layers                                                                                                                                                                                                               1.9s
 => => writing image sha256:e76359b937fb4d956fb17e889a7333687929d4c9ae093909fe5630a8f3e4de64                                                                                                                                          0.0s
 => => naming to docker.io/library/docs                                                                                                                                                                                               0.0s
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 16:38:38 +01:00
Sebastiaan van Stijn f98576eaa2
Dockerfile: use ARG to configure engine and distribution branches
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 15:15:14 +01:00
Sebastiaan van Stijn 5d8ce076f7
Dockerfile: remove use of $SOURCE env-var
This variable is no longer needed, as the scripts are
always executed relative to the current directory (`.`).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 15:10:07 +01:00
Sebastiaan van Stijn d386c4cd2c
Dockerfile: use WORKDIR to simplify steps
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 15:02:29 +01:00
Sebastiaan van Stijn 3f165c6d32
fetch-upstream-resources: use wget --directory-prefix
When using Gnu Wget, the `--directory-prefix` option automatically
creates the specified path if it doesn't exist.

Note that this does not work when using the busybox version
of Wget (but we're not using that in our Dockerfile).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 14:46:20 +01:00
Sebastiaan van Stijn f3feee5375
fetch-upstream-resources: fix invalid exit-code
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 14:36:59 +01:00
Sebastiaan van Stijn f6ed1b7725
Clarify that compose installation is for stable release
This patch updates the compose installation instruction to
be more clear about the default instructions installing
the current stable release.

Inline nodes about installing different versions has been
reduced, and the "Master builds" section has been renamed
to "Install pre-release builds", to capture installing either
"master" builds, or pre-releases (release-candidates) from
GitHub.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 13:21:54 +01:00