Skip to content

Commit

Permalink
Automate display of urls for DDC offline install
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Fernandes committed Dec 12, 2016
1 parent 32583f3 commit 5e73d62
Show file tree
Hide file tree
Showing 10 changed files with 268 additions and 135 deletions.
26 changes: 22 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ defaults:
path: "datacenter"
values:
assignee: "joaofnfernandes"
ucp_latest_version: "2.0.1"
dtr_latest_version: "2.1.1"
- scope:
path: "docker-cloud"
values:
Expand Down Expand Up @@ -90,20 +88,40 @@ defaults:
path: "toolbox"
values:
assignee: "londoncalling"
-
scope:
path: "datacenter/dtr/2.1"
values:
product_version: "2.1"
latest_version: "2.1"
ucp_version: "2.0"
dtr_version: "2.1"
-
scope:
path: "datacenter/dtr/2.0"
values:
hide_from_sitemap: true
this_version: "2.0"
product_version: "2.0"
latest_version: "2.1"
ucp_version: "1.1"
dtr_version: "2.0"
-
scope:
path: "datacenter/ucp/2.0"
values:
product_version: "2.0"
latest_version: "2.0"
ucp_version: "2.0"
dtr_version: "2.1"
-
scope:
path: "datacenter/ucp/1.1"
values:
hide_from_sitemap: true
this_version: "1.1"
product_version: "1.1"
latest_version: "2.0"
ucp_version: "1.1"
dtr_version: "2.0"
-
scope:
path: "apidocs/v1.3.3"
Expand Down
46 changes: 46 additions & 0 deletions _data/ddc_offline_files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This contains the list of urls that you can use to download a tar file
# with all the images needed to install Docker Datacenter in an air-gapped
# environment that can't access the internet

# Used by _includes/components/ddc_url_list.html

- ucp-version: "2.0"
tar-files:
- ucp-version: "2.0.1"
dtr-version: "2.1.1"
url: https://packages.docker.com/caas/ucp-2.0.1_dtr-2.1.1.tar.gz
- ucp-version: "2.0.1"
dtr-version: "2.1.0"
url: https://packages.docker.com/caas/ucp-2.0.1_dtr-2.1.0.tar.gz
- ucp-version: "2.0.0"
dtr-version: "2.1.0"
url: https://packages.docker.com/caas/ucp-2.0.0_dtr-2.1.0.tar.gz
- ucp-version: "1.1"
tar-files:
- ucp-version: "1.1.5"
dtr-version: "2.0.4"
url: https://packages.docker.com/caas/ucp-1.1.5_dtr-2.0.4.tar.gz
- ucp-version: "1.1.4"
dtr-version: "2.0.4"
url: https://packages.docker.com/caas/ucp-1.1.4_dtr-2.0.4.tar.gz
- ucp-version: "1.1.4"
dtr-version: "2.0.3"
url: https://packages.docker.com/caas/ucp-1.1.4_dtr-2.0.3.tar.gz
- ucp-version: "1.1.3"
dtr-version: "2.0.3"
url: https://packages.docker.com/caas/ucp-1.1.3_dtr-2.0.3.tar.gz
- ucp-version: "1.1.2"
dtr-version: "2.0.3"
url: https://packages.docker.com/caas/ucp-1.1.2_dtr-2.0.3.tar.gz
- ucp-version: "1.1.2"
dtr-version: "2.0.2"
url: https://packages.docker.com/caas/ucp-1.1.2_dtr-2.0.2.tar.gz
- ucp-version: "1.1.1"
dtr-version: "2.0.2"
url: https://packages.docker.com/caas/ucp-1.1.1_dtr-2.0.2.tar.gz
- ucp-version: "1.1.1"
dtr-version: "2.0.1"
url: https://packages.docker.com/caas/ucp-1.1.1_dtr-2.0.1.tar.gz
- ucp-version: "1.1.0"
dtr-version: "2.0.0"
url: https://packages.docker.com/caas/ucp-1.1.0_dtr-2.0.0.tar.gz
18 changes: 18 additions & 0 deletions _includes/components/ddc_url_list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Start of ddc_url_list.html, displays a list of DDC tar files -->
{% for data in site.data.ddc_offline_files %}
{% if data.ucp-version == page.ucp_version %}
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="list-group center-block">
{% for tar-file in data.tar-files %}
<a href="{{ tar-file.url }}" target="_blank" class="list-group-item">
UCP {{ tar-file.ucp-version }}, DTR {{ tar-file.dtr-version }}
<span class="badge"><span class="glyphicon glyphicon-chevron-right"></span></span>
</a>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% endfor %}
<!-- End of dc_url_list.html -->
2 changes: 1 addition & 1 deletion _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<link id="mktoForms2ThemeStyle" rel="stylesheet" type="text/css" href="/css/forms2-theme-simple.css">
{% seo %}
{% if page.hide_from_sitemap %}<meta name="robots" content="noindex" />{% endif %}
{% if page.this_version and page.latest_version %}<link rel="canonical" href="https://docs.docker.com{{ page.url | replace_first: page.this_version, page.latest_version }}" />{% endif %}
{% if page.product_version and page.latest_version %}<link rel="canonical" href="https://docs.docker.com{{ page.url | replace_first: page.product_version, page.latest_version }}" />{% endif %}
</head>
<body class="html front not-logged-in no-sidebars page-node page-node- page-node-1 node-type-front-page path-docker ng-scope short retina-display all_loaded" ng-app="Docker" ng-controller="DockerController" style="">
<div class="off-canvas-wrap" data-offcanvas="" style="min-height: 548px;">
Expand Down
63 changes: 33 additions & 30 deletions datacenter/dtr/2.0/install/install-dtr-offline.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,56 @@ redirect_from:
title: Install Docker Trusted Registry offline
---

The procedure to install Docker Trusted Registry on a node is the same,
whether that node has access to the internet or not.
The procedure to install Docker Trusted Registry on a host is the same,
whether that host has access to the internet or not.

The only difference when installing DTR on an offline node, is that instead
of pulling the DTR images from Docker Hub, you use a computer that is connected
to the internet to download a single package with all DTR images. Then you
copy that package to the nodes where you’ll install DTR.
The only difference when installing on an offline host,
is that instead of pulling the UCP images from Docker Hub, you use a
computer that is connected to the internet to download a single package with
all the images. Then you copy that package to the host where you’ll install DTR.

1. Get the DTR package.
## Versions available

Use a computer with internet access to download a single package with all
Docker Datacenter components:
{% include components/ddc_url_list.html %}

```none
$ wget https://packages.docker.com/caas/ucp-1.1.4_dtr-2.0.4.tar.gz -O docker-datacenter.tar.gz
```
## Download the offline package

Use a computer with internet access to download a single package with all
Docker Datacenter components:

```bash
$ wget <package-url> -O docker-datacenter.tar.gz
```

Now that you have the package in your local machine, you can transfer it to
the machines where you want to install DTR.

2. Transfer the package to the offline node.
For each machine where you want to install DTR:

Now that you have the DTR package file, transfer it to the node where you
want to install Docker Trusted Registry. You can use the `scp` command
for this.
1. Copy the Docker Datacenter package to that machine.

```none
$ scp docker-datacenter.tag.gz $USER@$DTR_HOST:/tmp
```bash
$ scp docker-datacenter.tar.gz <user>@<host>:/tmp
```

3. Login into the host where you transferred the images.
2. Use ssh to login into the hosts where you transferred the package.

4. Load the UCP images.
3. Load the Docker Datacenter images.

Once the package is on the node where you want to install DTR, you can use
the `docker load` command, to load the images from the .tar file.
Once the package is transferred to the hosts, you can use the
`docker load` command, to load the Docker images from the tar archive:

```none
$ docker load < /tmp/docker-datacenter.tar.gz
```bash
$ docker load < docker-datacenter.tar.gz
```

5. Install DTR.
## Install DTR

Now that the offline node has all the images needed to install UCP,
you can [install DTR that host](index.md). Make sure to
also copy the images to any other nodes you want to install DTR
replicas onto.
Now that the offline hosts have all the images needed to install DTR,
you can [install DTR on that host](index.md).


## Where to go next

* [DTR architecture](../architecture.md)
* [Install DTR](index.md)
* [Install DTR](index.md)
55 changes: 30 additions & 25 deletions datacenter/dtr/2.1/guides/install/install-offline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,53 @@ keywords: docker, registry, install, offline
title: Install Docker Trusted Registry offline
---

The procedure to install Docker Trusted Registry on a node is the same,
whether that node has access to the internet or not.
The procedure to install Docker Trusted Registry on a host is the same,
whether that host has access to the internet or not.

The only difference when installing DTR on an offline node, is that instead
of pulling the DTR images from Docker Hub, you use a computer that is connected
to the internet to download a single package with all DTR images. Then you
copy that package to the nodes where you’ll install DTR.
The only difference when installing on an offline host,
is that instead of pulling the UCP images from Docker Hub, you use a
computer that is connected to the internet to download a single package with
all the images. Then you copy that package to the host where you’ll install DTR.

1. Get the DTR package.
## Versions available

Use a computer with internet access to download a single package with all
Docker Datacenter components:
{% include components/ddc_url_list.html %}

```bash
$ wget https://packages.docker.com/caas/ucp-{{ page.ucp_latest_version }}_dtr-{{ page.dtr_latest_version }}.tar.gz -O docker-datacenter.tar.gz
```
## Download the offline package

Use a computer with internet access to download a single package with all
Docker Datacenter components:

```bash
$ wget <package-url> -O docker-datacenter.tar.gz
```

Now that you have the package in your local machine, you can transfer it to
the machines where you want to install DTR.

2. Transfer the package to the offline nodes.
For each machine where you want to install DTR:

Now that you have the DTR package in your machine, you can transfer it to the
nodes that you want to install DTR. For each node run:
1. Copy the Docker Datacenter package to that machine.

```bash
$ scp docker-datacenter.tag.gz <user>@<host>:/tmp
$ scp docker-datacenter.tar.gz <user>@<host>:/tmp
```

3. Login into the nodes where you transferred the images.
2. Use ssh to login into the hosts where you transferred the package.

4. Load the images.
3. Load the Docker Datacenter images.

Once the package is on the nodes where you want to install DTR, you can use
the `docker load` command, to load the images from the .tar file. On each
node, run:
Once the package is transferred to the hosts, you can use the
`docker load` command, to load the Docker images from the tar archive:

```bash
$ docker load < /tmp/docker-datacenter.tar.gz
$ docker load < docker-datacenter.tar.gz
```

5. Install DTR.
## Install DTR

Now that the offline node has all the images needed to install DTR,
you can [install DTR that host](index.md).
Now that the offline hosts have all the images needed to install DTR,
you can [install DTR on that host](index.md).


## Where to go next
Expand Down
49 changes: 25 additions & 24 deletions datacenter/ucp/1.1/installation/install-offline.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,48 @@ is that instead of pulling the UCP images from Docker Hub, you use a
computer that is connected to the internet to download a single package with
all the images. Then you copy that package to the host where you’ll install UCP.

## Versions available

1. Get the UCP package.
{% include components/ddc_url_list.html %}

Use a computer with internet access to download a single package with all
Docker Datacenter components:
## Download the offline package

```none
$ wget https://packages.docker.com/caas/ucp-1.1.4_dtr-2.0.4.tar.gz -O docker-datacenter.tar.gz
```
Use a computer with internet access to download a single package with all
Docker Datacenter components:

```bash
$ wget <package-url> -O docker-datacenter.tar.gz
```

Now that you have the package in your local machine, you can transfer it to
the machines where you want to install UCP.

2. Transfer the package to the offline node.
For each machine that you want to manage with UCP:

Now that you have the UCP package in your machine, you can transfer it to the
host where you'll be installing Docker UCP. You can use the Secure Copy command
for this:
1. Copy the Docker Datacenter package to that machine.

```none
$ scp docker-datacenter.tar.gz $USER@$UCP_HOST:/tmp
```bash
$ scp docker-datacenter.tar.gz <user>@<host>:/tmp
```

3. Login into the host where you transferred the images.
2. Use ssh to login into the hosts where you transferred the package.

4. Load the UCP images.
3. Load the Docker Datacenter images.

Once the UCP package is transferred to the host, you can use the
`docker load` command, to load the images from the tar archive. On the host
were you are going to install UCP, run:
Once the package is transferred to the hosts, you can use the
`docker load` command, to load the Docker images from the tar archive:

```none
```bash
$ docker load < docker-datacenter.tar.gz
```
5. Check the version of your images by using `docker images` to view the tag associated with your image, usually referenced as `image:tag` in the `docker run` command.

6. Install Docker UCP.
## Install UCP

Now that the offline host has all the images needed to install UCP,
you can [install Docker UCP that host](install-production.md).
Note: When installing, make sure to include the tag to ensure you use your local image when deploying from the offline package. As an example, you would install UCP version 1.1.4 by specifying the image:tag as `docker/ucp:1.1.4` when running the install command.
Now that the offline hosts have all the images needed to install UCP,
you can [install Docker UCP on that host](install-production.md).


## Where to go next

* [Install UCP for production](install-production.md).
* [UCP system requirements](system-requirements.md)
* [UCP system requirements](system-requirements.md)
2 changes: 1 addition & 1 deletion datacenter/ucp/2.0/guides/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Use externally-signed certificates
---

By default the UCP web UI is exposed using HTTPS, to ensure all
communications between clients and the cluster are encrypted. Since UCP
communications between clients and UCP are encrypted. Since UCP
controllers use self-signed certificates for this, when a client accesses
UCP their browsers won't trust this certificate, so the browser displays a
warning message.
Expand Down
Loading

0 comments on commit 5e73d62

Please sign in to comment.