Commit Graph

51819 Commits

Author SHA1 Message Date
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
L-Hudson 927d53239b
Update install.md
editorial crx
2019-03-06 17:01:25 -05:00
paigehargrave 500743439b
Update deploy-with-compose.md 2019-03-06 16:21:41 -05:00
Gepser Hoil a65edb5410
Showing Build Cache Information on the example output
Build Cache was added [latter](1d7ec4c7d5) so, it is missing on this documentation page.

This commit attempts to show an updated output example after running the command `docker system df` and the verbose version of the same command (`docker system df -v`).

Signed-off-by: Gepser Hoil <geharold@gmail.com>
2019-03-06 14:15:36 -06: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 25fffa2f18
Compose: put Windows Server in its own tab for installation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-06 14:01:35 +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
Sebastiaan van Stijn 8a1b16e8e0
Merge pull request #8407 from thaJeztah/cleanup_overlay_instructions
Clean up some old setup information for overlayFS
2019-03-06 11:04:20 +01:00
Alastair Smith 6590678af0 Merge branch 'published' 2019-03-05 17:26:01 -06:00
Alastair Smith a7f5b34e65 update Jenkinsfile
- echo shell commands removed
- file's now complete for our current needs
2019-03-05 17:24:53 -06:00
Alastair Smith e31204c841 update Jenkinsfile 2019-03-05 17:13:05 -06:00
Alastair Smith 4d3fe4e346 update Jenkinsfile 2019-03-05 17:12:41 -06:00
Alastair Smith 5c4b11a636 update Jenkinsfile 2019-03-05 16:53:30 -06:00
paigehargrave 8adb2d5377
Fixed syntax error for code sample 2019-03-05 17:20:39 -05:00
paigehargrave 11a6f85bb1
Updating admin password info per feedback 2019-03-05 16:01:42 -05:00
Alastair Smith e95d016a01 Merge branch 'master' of https://github.com/docker/docs-private 2019-03-05 14:29:27 -06:00
Alastair Smith 8e153c0b53 add temporary Jenkinsfile
- Jenkinsfile only contains branch logic and comments
- docker commands will be activated once beta-stage service has been added to docs swarm stack
2019-03-05 14:27:46 -06:00
paigehargrave 75be5b662f
Merge pull request #8385 from docker/kubelet-storage
Kubelet storage requirements for UCP 3.1
2019-03-05 11:50:11 -05:00
L-Hudson 2ad4167f4a
Merge pull request #8391 from plygrnd/patch-1
Update running_ssh_service.md
2019-03-05 08:19:08 -05:00
Sebastiaan van Stijn 1452039cb3
Add missing stubs for docker builder subcommands
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-05 13:51:20 +01:00
Sebastiaan van Stijn ec7e716c54
Clean up some old setup information for overlayFS
This removes the additional steps for old versions of Docker EE 17.06.
Current versions of Docker EE 17.06 no longer need these additional
steps.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-03-05 13:41:55 +01:00
paigehargrave 5d76dbc595
Merge pull request #8405 from gtardif/release_notes_2.0.3.0_mac
Release notes for 2.0.3.0 mac (Edge)
2019-03-05 05:48:58 -05:00
paigehargrave 4eda670bd7
Update edge-release-notes.md 2019-03-05 05:48:45 -05:00
paigehargrave 402711ab33
Merge pull request #8406 from gtardif/release_notes_2.0.3.0_win
Release notes for 2.0.3.0 win (Edge)
2019-03-05 05:47:55 -05:00
paigehargrave dcf37d5d09
Update edge-release-notes.md 2019-03-05 05:47:32 -05:00
Jenkins-pr-release-docs 88aab44de1 Docker for win edge relnotes 2.0.3.0
Signed-off-by: Jenkins-pr-release-docs <guillaume.tardif@docker.com>
2019-03-05 10:10:01 +00:00
Jenkins-pr-release-docs f6fc431544 Docker for mac edge relnotes 2.0.3.0
Signed-off-by: Jenkins-pr-release-docs <guillaume.tardif@docker.com>
2019-03-05 10:04:15 +00:00
Ally Smith 6b462c9794
fix yaml spacing 2019-03-04 16:02:18 -06:00
usha-mandya 4317f50fdd Addresses 8157 2019-03-04 12:55:18 -08:00
L-Hudson 71bda4770f
Merge pull request #8401 from ekitagawa/patch-19
Adding "Known Issues" section
2019-03-04 13:22:49 -05:00
Eiichi Kitagawa b6c6fb2a70
Adding "Known Issues" section
There is a known issue, and getting this fixed will have to wait for the Microsoft team.  It's good idea to mention the workaround in the mean time.
2019-03-04 10:10:35 -08:00
Alastair Smith 7c55e0b685 update Jenkinsfile 2019-03-04 12:03:18 -06:00
Alastair Smith 5054af7c53 update Jenkinsfile 2019-03-04 12:02:43 -06:00
Alastair Smith c69a30ac0a update Jenkinsfile 2019-03-04 12:01:30 -06:00
paigehargrave 4e1c973647
Update upgrade.md 2019-03-04 12:59:15 -05:00
Alastair Smith 3064785bea update Jenkinsfile 2019-03-04 11:58:48 -06:00
Alastair Smith 9630e72df9 update Jenkinsfile 2019-03-04 11:56:53 -06:00
Alastair Smith aee0abf88c update Jenkinsfile 2019-03-04 11:24:47 -06:00
Marcel Partap 580312e771
stop_signal supported with docker stack deploy
support was added nearly two years ago,
c.f. https://github.com/docker/cli/issues/370
2019-03-04 17:29:31 +01:00