-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #423
- Loading branch information
Showing
166 changed files
with
5,734 additions
and
3,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
exasol_integration_test_docker_environment/cli/commands/health.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 41 additions & 20 deletions
61
exasol_integration_test_docker_environment/cli/options/build_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,48 @@ | ||
import click | ||
|
||
from exasol_integration_test_docker_environment.cli.options.system_options import tempory_base_directory_option, \ | ||
output_directory_option | ||
from exasol_integration_test_docker_environment.cli.options.system_options import ( | ||
output_directory_option, | ||
tempory_base_directory_option, | ||
) | ||
|
||
build_options = [ | ||
click.option('--force-rebuild/--no-force-rebuild', default=False, | ||
help="Forces the system to complete rebuild all stages down to the stages " | ||
"specified with the options --force-rebuild-from."), | ||
click.option('--force-rebuild-from', multiple=True, type=str, | ||
help="If the option --force-rebuild is given, " | ||
"this options specifies for which stages and dependent stages system will force a rebuild. " | ||
"The option can be repeated with different stages. " | ||
"The system will than force the rebuild of these stages and their. dependet stages." | ||
), | ||
click.option('--force-pull/--no-force-pull', default=False, | ||
help="Forces the system to pull all stages if available, otherwise it rebuilds a stage."), | ||
click.option( | ||
"--force-rebuild/--no-force-rebuild", | ||
default=False, | ||
help="Forces the system to complete rebuild all stages down to the stages " | ||
"specified with the options --force-rebuild-from.", | ||
), | ||
click.option( | ||
"--force-rebuild-from", | ||
multiple=True, | ||
type=str, | ||
help="If the option --force-rebuild is given, " | ||
"this options specifies for which stages and dependent stages system will force a rebuild. " | ||
"The option can be repeated with different stages. " | ||
"The system will than force the rebuild of these stages and their. dependet stages.", | ||
), | ||
click.option( | ||
"--force-pull/--no-force-pull", | ||
default=False, | ||
help="Forces the system to pull all stages if available, otherwise it rebuilds a stage.", | ||
), | ||
output_directory_option, | ||
tempory_base_directory_option, | ||
click.option('--log-build-context-content/--no-log-build-context-content', | ||
default=False, | ||
help="For Debugging: Logs the files and directories in the build context of a stage"), | ||
click.option('--cache-directory', default=None, type=click.Path(file_okay=False, dir_okay=True, exists=False), | ||
help="Directory from where saved docker images can be loaded"), | ||
click.option('--build-name', default=None, type=str, | ||
help="Name of the build. For example: Repository + CI Build Number"), | ||
click.option( | ||
"--log-build-context-content/--no-log-build-context-content", | ||
default=False, | ||
help="For Debugging: Logs the files and directories in the build context of a stage", | ||
), | ||
click.option( | ||
"--cache-directory", | ||
default=None, | ||
type=click.Path(file_okay=False, dir_okay=True, exists=False), | ||
help="Directory from where saved docker images can be loaded", | ||
), | ||
click.option( | ||
"--build-name", | ||
default=None, | ||
type=str, | ||
help="Name of the build. For example: Repository + CI Build Number", | ||
), | ||
] |
122 changes: 76 additions & 46 deletions
122
exasol_integration_test_docker_environment/cli/options/docker_repository_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,84 @@ | ||
import click | ||
|
||
DEFAULT_DOCKER_REPOSITORY_NAME = 'exasol/script-language-container' | ||
DEFAULT_DOCKER_REPOSITORY_NAME = "exasol/script-language-container" | ||
|
||
docker_repository_options = [ | ||
click.option('--source-docker-repository-name', type=str, | ||
default=DEFAULT_DOCKER_REPOSITORY_NAME, | ||
show_default=True, | ||
help="Name of the docker repository for pulling cached stages. " | ||
"The repository name may contain the URL of the docker registry, " | ||
"the username and the actual repository name. " | ||
"A common structure is <docker-registry-url>/<username>/<repository-name>"), | ||
click.option('--source-docker-tag-prefix', type=str, | ||
default="", | ||
show_default=True, | ||
help="Prefix for the tags which are used for pulling of cached stages"), | ||
click.option('--source-docker-username', type=str, | ||
help="Username for the docker registry from where the system pulls cached stages.", | ||
required=False), | ||
click.option('--source-docker-password', type=str, | ||
help="Password for the docker registry from where the system pulls cached stages. " | ||
"Without password option the system prompts for the password."), | ||
click.option('--target-docker-repository-name', type=str, | ||
default=DEFAULT_DOCKER_REPOSITORY_NAME, | ||
show_default=True, | ||
help="Name of the docker repository for naming and pushing images of stages. " | ||
"The repository name may contain the URL of the docker registry, " | ||
"the username and the actual repository name. " | ||
"A common structure is <docker-registry-url>/<username>/<repository-name>"), | ||
click.option('--target-docker-tag-prefix', type=str, | ||
default="", | ||
show_default=True, | ||
help="Prefix for the tags which are used for naming and pushing of stages"), | ||
click.option('--target-docker-username', type=str, | ||
help="Username for the docker registry where the system pushes images of stages.", | ||
required=False), | ||
click.option('--target-docker-password', type=str, | ||
help="Password for the docker registry where the system pushes images of stages. " | ||
"Without password option the system prompts for the password."), | ||
click.option( | ||
"--source-docker-repository-name", | ||
type=str, | ||
default=DEFAULT_DOCKER_REPOSITORY_NAME, | ||
show_default=True, | ||
help="Name of the docker repository for pulling cached stages. " | ||
"The repository name may contain the URL of the docker registry, " | ||
"the username and the actual repository name. " | ||
"A common structure is <docker-registry-url>/<username>/<repository-name>", | ||
), | ||
click.option( | ||
"--source-docker-tag-prefix", | ||
type=str, | ||
default="", | ||
show_default=True, | ||
help="Prefix for the tags which are used for pulling of cached stages", | ||
), | ||
click.option( | ||
"--source-docker-username", | ||
type=str, | ||
help="Username for the docker registry from where the system pulls cached stages.", | ||
required=False, | ||
), | ||
click.option( | ||
"--source-docker-password", | ||
type=str, | ||
help="Password for the docker registry from where the system pulls cached stages. " | ||
"Without password option the system prompts for the password.", | ||
), | ||
click.option( | ||
"--target-docker-repository-name", | ||
type=str, | ||
default=DEFAULT_DOCKER_REPOSITORY_NAME, | ||
show_default=True, | ||
help="Name of the docker repository for naming and pushing images of stages. " | ||
"The repository name may contain the URL of the docker registry, " | ||
"the username and the actual repository name. " | ||
"A common structure is <docker-registry-url>/<username>/<repository-name>", | ||
), | ||
click.option( | ||
"--target-docker-tag-prefix", | ||
type=str, | ||
default="", | ||
show_default=True, | ||
help="Prefix for the tags which are used for naming and pushing of stages", | ||
), | ||
click.option( | ||
"--target-docker-username", | ||
type=str, | ||
help="Username for the docker registry where the system pushes images of stages.", | ||
required=False, | ||
), | ||
click.option( | ||
"--target-docker-password", | ||
type=str, | ||
help="Password for the docker registry where the system pushes images of stages. " | ||
"Without password option the system prompts for the password.", | ||
), | ||
] | ||
|
||
simple_docker_repository_options = [ | ||
click.option('--docker-repository-name', type=str, | ||
default=DEFAULT_DOCKER_REPOSITORY_NAME, | ||
show_default=True, | ||
help="Name of the docker repository for naming images. " | ||
"The repository name may contain the URL of the docker registry, " | ||
"the username and the actual repository name. " | ||
"A common structure is <docker-registry-url>/<username>/<repository-name>"), | ||
click.option('--docker-tag-prefix', type=str, | ||
default="", | ||
show_default=True, | ||
help="Prefix for the tags of the images"), | ||
click.option( | ||
"--docker-repository-name", | ||
type=str, | ||
default=DEFAULT_DOCKER_REPOSITORY_NAME, | ||
show_default=True, | ||
help="Name of the docker repository for naming images. " | ||
"The repository name may contain the URL of the docker registry, " | ||
"the username and the actual repository name. " | ||
"A common structure is <docker-registry-url>/<username>/<repository-name>", | ||
), | ||
click.option( | ||
"--docker-tag-prefix", | ||
type=str, | ||
default="", | ||
show_default=True, | ||
help="Prefix for the tags of the images", | ||
), | ||
] |
17 changes: 11 additions & 6 deletions
17
exasol_integration_test_docker_environment/cli/options/push_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import click | ||
|
||
push_options = [ | ||
click.option('--force-push/--no-force-push', default=False, | ||
help="Forces the system to overwrite existing images in registry for build steps that run"), | ||
click.option('--push-all/--no-push-all', default=False, | ||
help="Forces the system to push all images of build-steps that are specified by the goals") | ||
|
||
] | ||
click.option( | ||
"--force-push/--no-force-push", | ||
default=False, | ||
help="Forces the system to overwrite existing images in registry for build steps that run", | ||
), | ||
click.option( | ||
"--push-all/--no-push-all", | ||
default=False, | ||
help="Forces the system to push all images of build-steps that are specified by the goals", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.