Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

NO_LOGIN docs & default settings #29

Merged
merged 2 commits into from
Aug 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ The following environment variables can be set:
* `USER_PROMPT` - Sets the default action for user prompts (non-error)
* `true` - (_Default_) Prompts user for input/validation
* `false` - Skips user prompt and automatically proceeds
* `NO_LOGIN`
* `true` - Skips `docker login` for the v1 and v2 registries
* `false` - (_Default_) Prompts user to login to the v1 and v2 registries
* `V1_REPO_FILTER` - Search filter to limit the scope of the repositories to migrate (uses [grep basic regular expression interpretation](http://www.gnu.org/software/grep/manual/html_node/Basic-vs-Extended.html))
* *Note*: This only filters the repositories returned from the v1 search API, not the individual tags
* `V1_USERNAME` - Username used for `docker login` to the v1 registry
Expand Down
3 changes: 3 additions & 0 deletions migrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ initialize_migrator() {

# set default to prompt user for validation
USER_PROMPT=${USER_PROMPT:-true}

# set default to require docker login
NO_LOGIN=${NO_LOGIN:-false}
}

# verify requirements met for script to execute properly
Expand Down