Merge pull request #6164 from jamtur01/automated

Changed all references from Trusted Builds to Automated Builds
This commit is contained in:
Sven Dowideit 2014-06-03 15:06:09 -07:00
Родитель 2f514fb891 9fc8028c98
Коммит 201d20fe34
12 изменённых файлов: 36 добавлений и 31 удалений

Просмотреть файл

@ -1724,7 +1724,8 @@ func (cli *DockerCli) CmdAttach(args ...string) error {
func (cli *DockerCli) CmdSearch(args ...string) error { func (cli *DockerCli) CmdSearch(args ...string) error {
cmd := cli.Subcmd("search", "TERM", "Search the docker index for images") cmd := cli.Subcmd("search", "TERM", "Search the docker index for images")
noTrunc := cmd.Bool([]string{"#notrunc", "-no-trunc"}, false, "Don't truncate output") noTrunc := cmd.Bool([]string{"#notrunc", "-no-trunc"}, false, "Don't truncate output")
trusted := cmd.Bool([]string{"t", "#trusted", "-trusted"}, false, "Only show trusted builds") trusted := cmd.Bool([]string{"#t", "#trusted", "#-trusted"}, false, "Only show trusted builds")
automated := cmd.Bool([]string{"-automated"}, false, "Only show automated builds")
stars := cmd.Int([]string{"s", "#stars", "-stars"}, 0, "Only displays with at least xxx stars") stars := cmd.Int([]string{"s", "#stars", "-stars"}, 0, "Only displays with at least xxx stars")
if err := cmd.Parse(args); err != nil { if err := cmd.Parse(args); err != nil {
return nil return nil
@ -1747,9 +1748,9 @@ func (cli *DockerCli) CmdSearch(args ...string) error {
return err return err
} }
w := tabwriter.NewWriter(cli.out, 10, 1, 3, ' ', 0) w := tabwriter.NewWriter(cli.out, 10, 1, 3, ' ', 0)
fmt.Fprintf(w, "NAME\tDESCRIPTION\tSTARS\tOFFICIAL\tTRUSTED\n") fmt.Fprintf(w, "NAME\tDESCRIPTION\tSTARS\tOFFICIAL\tAUTOMATED\n")
for _, out := range outs.Data { for _, out := range outs.Data {
if (*trusted && !out.GetBool("is_trusted")) || (*stars > out.GetInt("star_count")) { if ((*automated || *trusted) && (!out.GetBool("is_trusted") && !out.GetBool("is_automated"))) || (*stars > out.GetInt("star_count")) {
continue continue
} }
desc := strings.Replace(out.Get("description"), "\n", " ", -1) desc := strings.Replace(out.Get("description"), "\n", " ", -1)
@ -1763,7 +1764,7 @@ func (cli *DockerCli) CmdSearch(args ...string) error {
} }
fmt.Fprint(w, "\t") fmt.Fprint(w, "\t")
if out.GetBool("is_trusted") { if out.GetBool("is_automated") || out.GetBool("is_trusted") {
fmt.Fprint(w, "[OK]") fmt.Fprint(w, "[OK]")
} }
fmt.Fprint(w, "\n") fmt.Fprint(w, "\n")

Просмотреть файл

@ -539,7 +539,7 @@ _docker_search()
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W "--no-trunc -t --trusted -s --stars" -- "$cur" ) ) COMPREPLY=( $( compgen -W "--no-trunc --automated -s --stars" -- "$cur" ) )
;; ;;
*) *)
;; ;;

Просмотреть файл

@ -229,7 +229,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from save' -a '(__fish_print
complete -c docker -f -n '__fish_docker_no_subcommand' -a search -d 'Search for an image in the docker index' complete -c docker -f -n '__fish_docker_no_subcommand' -a search -d 'Search for an image in the docker index'
complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l no-trunc -d "Don't truncate output" complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l no-trunc -d "Don't truncate output"
complete -c docker -A -f -n '__fish_seen_subcommand_from search' -s s -l stars -d 'Only displays with at least xxx stars' complete -c docker -A -f -n '__fish_seen_subcommand_from search' -s s -l stars -d 'Only displays with at least xxx stars'
complete -c docker -A -f -n '__fish_seen_subcommand_from search' -s t -l trusted -d 'Only show trusted builds' complete -c docker -A -f -n '__fish_seen_subcommand_from search' -l automated -d 'Only show automated builds'
# start # start
complete -c docker -f -n '__fish_docker_no_subcommand' -a start -d 'Start a stopped container' complete -c docker -f -n '__fish_docker_no_subcommand' -a start -d 'Start a stopped container'

Просмотреть файл

@ -5,7 +5,7 @@
docker-search - Search the docker index for images docker-search - Search the docker index for images
# SYNOPSIS # SYNOPSIS
**docker search** **--no-trunc**[=*false*] **-t**|**--trusted**[=*false*] **docker search** **--no-trunc**[=*false*] **--automated**[=*false*]
**-s**|**--stars**[=*0*] TERM **-s**|**--stars**[=*0*] TERM
# DESCRIPTION # DESCRIPTION
@ -13,7 +13,7 @@ docker-search - Search the docker index for images
Search an index for an image with that matches the term TERM. The table Search an index for an image with that matches the term TERM. The table
of images returned displays the name, description (truncated by default), of images returned displays the name, description (truncated by default),
number of stars awarded, whether the image is official, and whether it number of stars awarded, whether the image is official, and whether it
is trusted. is automated.
# OPTIONS # OPTIONS
**--no-trunc**=*true*|*false* **--no-trunc**=*true*|*false*
@ -23,8 +23,8 @@ is trusted.
Only displays with at least NUM (integer) stars. I.e. only those images Only displays with at least NUM (integer) stars. I.e. only those images
ranked >=NUM. ranked >=NUM.
**-t**, **--trusted**=*true*|*false* **--automated**=*true*|*false*
When true only show trusted builds. The default is false. When true only show automated builds. The default is false.
# EXAMPLE # EXAMPLE
@ -34,19 +34,19 @@ Search the registry for the term 'fedora' and only display those images
ranked 3 or higher: ranked 3 or higher:
$ sudo docker search -s 3 fedora $ sudo docker search -s 3 fedora
NAME DESCRIPTION STARS OFFICIAL TRUSTED NAME DESCRIPTION STARS OFFICIAL AUTOMATED
mattdm/fedora A basic Fedora image corresponding roughly... 50 mattdm/fedora A basic Fedora image corresponding roughly... 50
fedora (Semi) Official Fedora base image. 38 fedora (Semi) Official Fedora base image. 38
mattdm/fedora-small A small Fedora image on which to build. Co... 8 mattdm/fedora-small A small Fedora image on which to build. Co... 8
goldmann/wildfly A WildFly application server running on a ... 3 [OK] goldmann/wildfly A WildFly application server running on a ... 3 [OK]
## Search the registry for trusted images ## Search the registry for automated images
Search the registry for the term 'fedora' and only display trusted images Search the registry for the term 'fedora' and only display automated images
ranked 1 or higher: ranked 1 or higher:
$ sudo docker search -s 1 -t fedora $ sudo docker search -s 1 -t fedora
NAME DESCRIPTION STARS OFFICIAL TRUSTED NAME DESCRIPTION STARS OFFICIAL AUTOMATED
goldmann/wildfly A WildFly application server running on a ... 3 [OK] goldmann/wildfly A WildFly application server running on a ... 3 [OK]
tutum/fedora-20 Fedora 20 image with SSH access. For the r... 1 [OK] tutum/fedora-20 Fedora 20 image with SSH access. For the r... 1 [OK]

Просмотреть файл

@ -1,6 +1,6 @@
page_title: Automated Builds on Docker.io page_title: Automated Builds on Docker.io
page_description: Docker.io Automated Builds page_description: Docker.io Automated Builds
page_keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker.io, docs, documentation, trusted, builds, trusted builds, automated builds page_keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker.io, docs, documentation, trusted, builds, trusted builds, automated, automated builds
# Automated Builds on Docker.io # Automated Builds on Docker.io
## Automated Builds ## Automated Builds
@ -101,10 +101,9 @@ to Docker.io.
#### Creating an Automated Build #### Creating an Automated Build
You can [create a Trusted You can [create an Automated
Build](https://index.docker.io/builds/bitbucket/select/) Build](https://index.docker.io/builds/bitbucket/select/) from any of
from any of your public or private BitBucket repositories with a your public or private BitBucket repositories with a `Dockerfile`.
`Dockerfile`.
### The Dockerfile and Automated Builds ### The Dockerfile and Automated Builds
@ -162,7 +161,7 @@ payload:
"repository":{ "repository":{
"status":"Active", "status":"Active",
"description":"my docker repo that does cool things", "description":"my docker repo that does cool things",
"is_trusted":false, "is_automated":false,
"full_description":"This is my full description", "full_description":"This is my full description",
"repo_url":"https://index.docker.io/u/username/reponame/", "repo_url":"https://index.docker.io/u/username/reponame/",
"owner":"username", "owner":"username",

Просмотреть файл

@ -81,7 +81,7 @@ with a JSON payload similar to the example shown below.
"repository":{ "repository":{
"status":"Active", "status":"Active",
"description":"my docker repo that does cool things", "description":"my docker repo that does cool things",
"is_trusted":false, "is_automated":false,
"full_description":"This is my full description", "full_description":"This is my full description",
"repo_url":"https://index.docker.io/u/username/reponame/", "repo_url":"https://index.docker.io/u/username/reponame/",
"owner":"username", "owner":"username",

Просмотреть файл

@ -151,4 +151,4 @@ as daemon process(es).
- [Linking containers](/userguide/dockerlinks) - [Linking containers](/userguide/dockerlinks)
- [Cross-host linking containers](/articles/ambassador_pattern_linking/) - [Cross-host linking containers](/articles/ambassador_pattern_linking/)
- [Creating a Trusted Build](/docker-io/builds/#trusted-builds) - [Creating an Automated Build](/docker-io/builds/#automated-builds)

Просмотреть файл

@ -47,6 +47,9 @@ Build now has support for the `forcerm` parameter to always remove containers
**New!** **New!**
All the JSON keys are now in CamelCase All the JSON keys are now in CamelCase
**New!**
Trusted builds are now Automated Builds - `is_trusted` is now `is_automated`.
## v1.11 ## v1.11
### Full Documentation ### Full Documentation

Просмотреть файл

@ -1002,21 +1002,21 @@ Search for an image on [Docker.io](https://index.docker.io).
{ {
"description": "", "description": "",
"is_official": false, "is_official": false,
"is_trusted": false, "is_automated": false,
"name": "wma55/u1210sshd", "name": "wma55/u1210sshd",
"star_count": 0 "star_count": 0
}, },
{ {
"description": "", "description": "",
"is_official": false, "is_official": false,
"is_trusted": false, "is_automated": false,
"name": "jdswinbank/sshd", "name": "jdswinbank/sshd",
"star_count": 0 "star_count": 0
}, },
{ {
"description": "", "description": "",
"is_official": false, "is_official": false,
"is_trusted": false, "is_automated": false,
"name": "vgauthier/sshd", "name": "vgauthier/sshd",
"star_count": 0 "star_count": 0
} }

Просмотреть файл

@ -1124,7 +1124,7 @@ Search [Docker.io](https://index.docker.io) for images
--no-trunc=false Don't truncate output --no-trunc=false Don't truncate output
-s, --stars=0 Only displays with at least xxx stars -s, --stars=0 Only displays with at least xxx stars
-t, --trusted=false Only show trusted builds --automated=false Only show automated builds
See [*Find Public Images on Docker.io*]( See [*Find Public Images on Docker.io*](
/userguide/dockerrepos/#find-public-images-on-dockerio) for /userguide/dockerrepos/#find-public-images-on-dockerio) for

Просмотреть файл

@ -116,7 +116,7 @@ by using the `docker search` command to find all the images that contain the
term `sinatra`. term `sinatra`.
$ sudo docker search sinatra $ sudo docker search sinatra
NAME DESCRIPTION STARS OFFICIAL TRUSTED NAME DESCRIPTION STARS OFFICIAL AUTOMATED
training/sinatra Sinatra training image 0 [OK] training/sinatra Sinatra training image 0 [OK]
marceldegraaf/sinatra Sinatra test app 0 marceldegraaf/sinatra Sinatra test app 0
mattwarren/docker-sinatra-demo 0 [OK] mattwarren/docker-sinatra-demo 0 [OK]
@ -129,9 +129,11 @@ term `sinatra`.
We can see we've returned a lot of images that use the term `sinatra`. We've We can see we've returned a lot of images that use the term `sinatra`. We've
returned a list of image names, descriptions, Stars (which measure the social returned a list of image names, descriptions, Stars (which measure the social
popularity of images - if a user likes an image then they can "star" it), and popularity of images - if a user likes an image then they can "star" it), and
the Official and Trusted statuses. Official repositories are XXX and Trusted the Official and Automated build statuses. Official repositories are built and
repositories are [Trusted Build](/userguide/dockerrepos/) that allow you to maintained by the [Stackbrew](https://github.com/dotcloud/stackbrew) project,
validate the source and content of an image. and Automated repositories are [Automated Builds](
/userguide/dockerrepos/#automated-builds) that allow you to validate the source
and content of an image.
We've reviewed the images available to use and we decided to use the We've reviewed the images available to use and we decided to use the
`training/sinatra` image. So far we've seen two types of images repositories, `training/sinatra` image. So far we've seen two types of images repositories,

Просмотреть файл

@ -76,7 +76,7 @@ Go to [Managing Data in Containers](/userguide/dockervolumes).
Now we've learned a bit more about how to use Docker we're going to see Now we've learned a bit more about how to use Docker we're going to see
how to combine Docker with the services available on Docker.io including how to combine Docker with the services available on Docker.io including
Trusted Builds and private repositories. Automated Builds and private repositories.
Go to [Working with Docker.io](/userguide/dockerrepos). Go to [Working with Docker.io](/userguide/dockerrepos).