octopize.deploy_tool 3.4.0__tar.gz → 3.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/PKG-INFO +34 -1
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/README.md +33 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/pyproject.toml +1 -1
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/__init__.py +1 -1
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/checks.py +15 -3
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/configure_command.py +4 -3
- octopize_deploy_tool-3.5.0/src/octopize_avatar_deploy/application/host_paths.py +143 -0
- octopize_deploy_tool-3.5.0/src/octopize_avatar_deploy/application/image_registry_auth.py +201 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/ports.py +59 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/start_command.py +49 -1
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/__init__.py +3 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/start.py +4 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/exceptions.py +19 -0
- octopize_deploy_tool-3.5.0/src/octopize_avatar_deploy/infra/container_identity.py +64 -0
- octopize_deploy_tool-3.5.0/src/octopize_avatar_deploy/infra/container_mounts.py +56 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/docker_client.py +122 -23
- octopize_deploy_tool-3.5.0/src/octopize_avatar_deploy/infra/docker_config_reader.py +60 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/document_step_runner.py +20 -25
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/noop_docker_client.py +13 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/input_gatherer.py +30 -15
- octopize_deploy_tool-3.5.0/src/octopize_avatar_deploy/line_editing.py +56 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/fakes.py +44 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_configure_command.py +23 -28
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_install_command.py +141 -1
- octopize_deploy_tool-3.5.0/tests/unit/infra/test_container_identity.py +97 -0
- octopize_deploy_tool-3.5.0/tests/unit/infra/test_docker_config_reader.py +61 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_document_step_runner.py +33 -22
- octopize_deploy_tool-3.5.0/tests/unit/test_host_paths.py +129 -0
- octopize_deploy_tool-3.5.0/tests/unit/test_image_registry_auth.py +159 -0
- octopize_deploy_tool-3.5.0/tests/unit/test_line_editing.py +84 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_preflight_checks.py +30 -2
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_start_command.py +116 -1
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/.gitignore +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/infra/deployment/deployment-tool/src/octopize_avatar_deploy/steps/user.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/infra/deployment/deployment-tool/tests/fixtures/generate_env_output_dir_error/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/infra/deployment/deployment-tool/tests/fixtures/help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/infra/deployment/deployment-tool/tests/fixtures/missing_subcommand/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/app_root.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/_guards.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/apply_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/authentik_env.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/authentik_login.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/authentik_readiness.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/client_compatibility_report.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/install_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/migrate_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/subcommand_ports.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/authentik_migrate.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/create_self_signed_cert_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/create_self_signed_cert_task.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/create_users.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/provision_admin.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/reconcile_blueprint.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/tasks/registry.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/update_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/commands/verify_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/configure_resume_policy.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/deployment_markers.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/deployment_paths.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/diff_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/legacy_layout.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/operator_owned_files.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/polling.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/render_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/secret_files.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/stop_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/uninstall_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/application/user_config.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/authentik_migration.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/authentik_user_types.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cert_generator.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/certificate_verifier.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/_shared.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/apply.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/configure.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/diff.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/install.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/migrate.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/render.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/stop.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/tasks.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/uninstall.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/update.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli/handlers/verify.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli_dependencies.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/cli_test_harness.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/config_resolver.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/control_flags.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/defaults.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/deployment_mode.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/client_compatibility.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/configure_preset.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/deployment_item.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/deployment_item_registry.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/deployment_state.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/generation.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/placement.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/service_versions.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/validation.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/domain/version_id.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/download_templates.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/environment.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/cert_infra.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/current_version_resolver.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/env_file_reader.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/filesystem.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/filesystem_legacy_source.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/filesystem_user_config_scaffolder.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/httpx2_http_client.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/in_memory_state_repository.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/offline_http_client.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/package_defaults_source.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/package_template_provider.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/package_version_provider.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/preset_loader.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/system_clock.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/yaml_config_source.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/infra/yaml_state_repository.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/normalizers.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/output_spec.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/printer.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/public_url.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/renderer.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/resources/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/resources/config.example.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/secret_factory.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/self_signed_ssl.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/authentik.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/authentik_blueprint.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/base.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/database.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/email.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/logging.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/nginx.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/required.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/service_urls.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/storage.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/telemetry.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/steps/user.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/template_provisioning.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/.env.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/.template-version +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/_env_fragment_api.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/_env_fragment_infra.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/_env_fragment_web.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/api.env.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/compose.override.yaml.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/docker-compose.yml.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/nginx.conf.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/python_client.env.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/templates/web.env.template +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/tls_types.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/topology_urls.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/url_contract.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/verbosity.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/src/octopize_avatar_deploy/version_compat.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/TESTING.md +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/conftest.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/e2e/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/e2e/conftest.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/e2e/test_lifecycle.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/e2e/test_migrate_start_provision_verify.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/e2e/test_update_reapplies_blueprint.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/e2e/user_disable_revokes_api_key.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/apply_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/authentik_migration/licenses.csv +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/authentik_migration/organizations.csv +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/authentik_migration/users.csv +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/configure_happy_path/expected/.deployment_states/v1/deployment_state.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/configure_happy_path/input.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/configure_happy_path/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/configure_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_integration/from/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_integration/from/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_integration/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_integration/to/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_integration/to/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/diff_integration/to/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/admin_emails +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/authjwt_secret_key +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/clevercloud_sso_salt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/db_admin_password +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/db_admin_user +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/db_name +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/db_password +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/db_user +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/file_jwt_secret_key +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/organization_name +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/pepper +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/smtp_password +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/storage_admin_access_key_id +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/e2e/legacy_deployment/.secrets/storage_admin_secret_access_key +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/.permissions.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_apply_output/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/.permissions.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/install_render_output/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/migrate_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/missing_subcommand/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/non_interactive_complete/config.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/non_interactive_no_telemetry/config.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/render_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/start_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/stop_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/tasks_authentik_migrate_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/tasks_create_self_signed_cert_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/tasks_create_users_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/tasks_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/tasks_provision_admin_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/tasks_reconcile_blueprint_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/uninstall_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/base_v1/generated_files/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/.needs_blueprint_reconcile +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/.permissions.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_apply_output/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/.permissions.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_interactive_diff/expected_render_output/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/base_v1/generated_files/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/.needs_blueprint_reconcile +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/.permissions.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_apply_output/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/.env +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/.permissions.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/branding/favicon.ico +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/branding/logo.png +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/custom-templates/email_account_confirmation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/custom-templates/email_account_exists.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/custom-templates/email_account_invitation.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/custom-templates/email_forgotten_password.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/custom-templates/email_password_changed.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/custom-templates/email_password_reset.html +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/octopize-avatar-blueprint.yaml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/authentik/translations.json +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/docker-compose.yml +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/update_noninteractive_clean/expected_render_output/nginx/nginx.conf +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/fixtures/verify_help/output.txt +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/fixture_dir_comparison.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/normalization.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/printers.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/steps.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/helpers/tls_fixtures.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_authentik_migrate_task.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_cli_integration.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_client_compatibility_output.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_create_self_signed_cert_task.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_diff_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_legacy_app_root.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_migrate_first_run.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_migrate_relative_tls_paths.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_migrate_without_tls_keys.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/integration/test_update_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/test_cli_harness.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/__init__.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/conftest.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_docker_client.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_filesystem.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_filesystem_legacy_source.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_httpx2_http_client.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_preset_loader.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_yaml_config_source.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/infra/test_yaml_deployment_state_repository.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_authentik.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_authentik_blueprint.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_database.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_email.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_logging.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_nginx.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_prompt_text.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_required.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_service_urls.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_storage.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_telemetry.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/steps/test_user.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_app_root.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_apply_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_client.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_env.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_login.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_migrate_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_migrate_for_docker.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_migrate_parsers.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_migration.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_authentik_readiness.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_cert_generator.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_certificate_verifier.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_cli_verify_ssl.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_client_compatibility.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_compare_helpers.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_config_resolver.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_config_resolver_consistency.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_configure_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_create_self_signed_cert_task.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_create_users.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_deployment_item.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_diff_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_docs_command_references.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_environment.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_generation.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_generic_prompt.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_input_gatherer.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_install_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_migrate_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_normalizers.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_output_spec.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_placement.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_polling.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_printer.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_provision_admin.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_public_url.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_reconcile_blueprint.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_render_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_renderer.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_rich_implementations.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_secret_factory.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_secret_files.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_select_authentik_migrate_parser.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_service_versions.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_stop_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_task_registry.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_uninstall_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_update_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_user_config.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_validation.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_verify_command.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_version_id.py +0 -0
- {octopize_deploy_tool-3.4.0 → octopize_deploy_tool-3.5.0}/tests/unit/test_version_validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: octopize.deploy_tool
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5.0
|
|
4
4
|
Summary: Deployment configuration tool for Octopize Avatar platform
|
|
5
5
|
Project-URL: Homepage, https://octopize.io
|
|
6
6
|
Project-URL: Documentation, https://docs.octopize.io/docs/deploying/self-hosted/self_installation
|
|
@@ -522,14 +522,31 @@ docker run --rm --user "$(id -u):$(id -g)" --group-add "$(stat -c '%g' /var/run/
|
|
|
522
522
|
|
|
523
523
|
### Start
|
|
524
524
|
|
|
525
|
+
`start` pulls the images the deployment needs, and two of them are private. The
|
|
526
|
+
credentials `docker login` writes belong to the Docker _client_, so the login you did on
|
|
527
|
+
the host is invisible to the client in this container: the extra `DOCKER_CONFIG` mount
|
|
528
|
+
below is what gives them to it.
|
|
529
|
+
|
|
525
530
|
```bash
|
|
526
531
|
export CP=$(docker info -f '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}')
|
|
527
532
|
docker run --rm --user "$(id -u):$(id -g)" --group-add "$(stat -c '%g' /var/run/docker.sock)" \
|
|
528
533
|
-v "$(pwd)/avatar:/app-root" -v /var/run/docker.sock:/var/run/docker.sock \
|
|
529
534
|
-v "$(which docker):/usr/local/bin/docker:ro" -v "$CP:$CP:ro" \
|
|
535
|
+
-e DOCKER_CONFIG=/docker-config -v "$HOME/.docker:/docker-config:ro" \
|
|
530
536
|
quay.io/octopize/deploy-tool:latest start --app-root /app-root
|
|
531
537
|
```
|
|
532
538
|
|
|
539
|
+
If the host keeps its registry credentials in a credential helper — a `credsStore` entry
|
|
540
|
+
in `~/.docker/config.json` — that mount carries no usable credential, because the helper
|
|
541
|
+
is a program the container does not have. Write a configuration that holds the token
|
|
542
|
+
itself, and mount that one instead:
|
|
543
|
+
|
|
544
|
+
```bash
|
|
545
|
+
mkdir -p ~/avatar-registry-login
|
|
546
|
+
DOCKER_CONFIG=~/avatar-registry-login docker login quay.io
|
|
547
|
+
# ... -e DOCKER_CONFIG=/docker-config -v "$HOME/avatar-registry-login:/docker-config:ro"
|
|
548
|
+
```
|
|
549
|
+
|
|
533
550
|
### Stop
|
|
534
551
|
|
|
535
552
|
```bash
|
|
@@ -590,6 +607,11 @@ Notes:
|
|
|
590
607
|
by Docker Compose on the _host_, so give the host path even though you are typing it inside a
|
|
591
608
|
container. The tool detects that it is running in a container, skips the existence check for
|
|
592
609
|
those paths and prints a notice saying so.
|
|
610
|
+
- **The app root has to come from a mount.** The deployment files are read by the Docker daemon
|
|
611
|
+
on the host, and the tool works out their host path from the container's own mounts, so
|
|
612
|
+
`-v "$(pwd)/avatar:/app-root"` needs no path to match. A directory that belongs to the
|
|
613
|
+
container itself (`/tmp/avatar`, say) is reachable by nothing but the tool, and `start`
|
|
614
|
+
refuses it rather than bring up a stack that cannot read its own secrets.
|
|
593
615
|
- **Anything outside the app root needs its own mount**: `-v "$(pwd)/config:/input:ro"` with
|
|
594
616
|
`--from-config /input/config.yaml`, or `-v "$(pwd)/avatar-old:/legacy:ro"` with
|
|
595
617
|
`--from-legacy /legacy` for `migrate`. Always pass the container-side path.
|
|
@@ -654,6 +676,17 @@ under `generated_files/`. Merge them into `.deployment_states/<vX>/generated/` a
|
|
|
654
676
|
|
|
655
677
|
**`verify` reports "API key not found".** Run `tasks provision-admin` first.
|
|
656
678
|
|
|
679
|
+
**An `install` was interrupted with Ctrl+C.** Run `install` again: it reports the incomplete
|
|
680
|
+
configuration and asks `Resume the in-progress configuration (vN)?` Answering `y` continues
|
|
681
|
+
where it stopped, keeping the answers already given; answering `n` starts the questionnaire
|
|
682
|
+
again in a new version slot and leaves the interrupted one on disk. A `--non-interactive` run
|
|
683
|
+
cannot answer, so it stops instead.
|
|
684
|
+
|
|
685
|
+
**`start` reports that an image registry refused the credentials.** The credentials
|
|
686
|
+
`docker login` writes belong to the Docker client, so a `start` run from the deploy-tool
|
|
687
|
+
container does not have the ones you created on the host. The message names the mount to add —
|
|
688
|
+
see [Running via Docker](#running-via-docker).
|
|
689
|
+
|
|
657
690
|
**Something needs a closer look.** Add `--verbosity 2` for detailed progress and template output.
|
|
658
691
|
|
|
659
692
|
**Starting over.** `uninstall` is the supported teardown: it is confirmation-gated and removes
|
|
@@ -489,14 +489,31 @@ docker run --rm --user "$(id -u):$(id -g)" --group-add "$(stat -c '%g' /var/run/
|
|
|
489
489
|
|
|
490
490
|
### Start
|
|
491
491
|
|
|
492
|
+
`start` pulls the images the deployment needs, and two of them are private. The
|
|
493
|
+
credentials `docker login` writes belong to the Docker _client_, so the login you did on
|
|
494
|
+
the host is invisible to the client in this container: the extra `DOCKER_CONFIG` mount
|
|
495
|
+
below is what gives them to it.
|
|
496
|
+
|
|
492
497
|
```bash
|
|
493
498
|
export CP=$(docker info -f '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}')
|
|
494
499
|
docker run --rm --user "$(id -u):$(id -g)" --group-add "$(stat -c '%g' /var/run/docker.sock)" \
|
|
495
500
|
-v "$(pwd)/avatar:/app-root" -v /var/run/docker.sock:/var/run/docker.sock \
|
|
496
501
|
-v "$(which docker):/usr/local/bin/docker:ro" -v "$CP:$CP:ro" \
|
|
502
|
+
-e DOCKER_CONFIG=/docker-config -v "$HOME/.docker:/docker-config:ro" \
|
|
497
503
|
quay.io/octopize/deploy-tool:latest start --app-root /app-root
|
|
498
504
|
```
|
|
499
505
|
|
|
506
|
+
If the host keeps its registry credentials in a credential helper — a `credsStore` entry
|
|
507
|
+
in `~/.docker/config.json` — that mount carries no usable credential, because the helper
|
|
508
|
+
is a program the container does not have. Write a configuration that holds the token
|
|
509
|
+
itself, and mount that one instead:
|
|
510
|
+
|
|
511
|
+
```bash
|
|
512
|
+
mkdir -p ~/avatar-registry-login
|
|
513
|
+
DOCKER_CONFIG=~/avatar-registry-login docker login quay.io
|
|
514
|
+
# ... -e DOCKER_CONFIG=/docker-config -v "$HOME/avatar-registry-login:/docker-config:ro"
|
|
515
|
+
```
|
|
516
|
+
|
|
500
517
|
### Stop
|
|
501
518
|
|
|
502
519
|
```bash
|
|
@@ -557,6 +574,11 @@ Notes:
|
|
|
557
574
|
by Docker Compose on the _host_, so give the host path even though you are typing it inside a
|
|
558
575
|
container. The tool detects that it is running in a container, skips the existence check for
|
|
559
576
|
those paths and prints a notice saying so.
|
|
577
|
+
- **The app root has to come from a mount.** The deployment files are read by the Docker daemon
|
|
578
|
+
on the host, and the tool works out their host path from the container's own mounts, so
|
|
579
|
+
`-v "$(pwd)/avatar:/app-root"` needs no path to match. A directory that belongs to the
|
|
580
|
+
container itself (`/tmp/avatar`, say) is reachable by nothing but the tool, and `start`
|
|
581
|
+
refuses it rather than bring up a stack that cannot read its own secrets.
|
|
560
582
|
- **Anything outside the app root needs its own mount**: `-v "$(pwd)/config:/input:ro"` with
|
|
561
583
|
`--from-config /input/config.yaml`, or `-v "$(pwd)/avatar-old:/legacy:ro"` with
|
|
562
584
|
`--from-legacy /legacy` for `migrate`. Always pass the container-side path.
|
|
@@ -621,6 +643,17 @@ under `generated_files/`. Merge them into `.deployment_states/<vX>/generated/` a
|
|
|
621
643
|
|
|
622
644
|
**`verify` reports "API key not found".** Run `tasks provision-admin` first.
|
|
623
645
|
|
|
646
|
+
**An `install` was interrupted with Ctrl+C.** Run `install` again: it reports the incomplete
|
|
647
|
+
configuration and asks `Resume the in-progress configuration (vN)?` Answering `y` continues
|
|
648
|
+
where it stopped, keeping the answers already given; answering `n` starts the questionnaire
|
|
649
|
+
again in a new version slot and leaves the interrupted one on disk. A `--non-interactive` run
|
|
650
|
+
cannot answer, so it stops instead.
|
|
651
|
+
|
|
652
|
+
**`start` reports that an image registry refused the credentials.** The credentials
|
|
653
|
+
`docker login` writes belong to the Docker client, so a `start` run from the deploy-tool
|
|
654
|
+
container does not have the ones you created on the host. The message names the mount to add —
|
|
655
|
+
see [Running via Docker](#running-via-docker).
|
|
656
|
+
|
|
624
657
|
**Something needs a closer look.** Add `--verbosity 2` for detailed progress and template output.
|
|
625
658
|
|
|
626
659
|
**Starting over.** `uninstall` is the supported teardown: it is confirmation-gated and removes
|
|
@@ -306,7 +306,9 @@ class DeploymentStateCheck:
|
|
|
306
306
|
Handles three cases:
|
|
307
307
|
|
|
308
308
|
- **No state** — nothing to do, continue silently.
|
|
309
|
-
- **In-progress** — in interactive mode, offer to resume;
|
|
309
|
+
- **In-progress** — in interactive mode, offer to resume; a declined resume
|
|
310
|
+
continues into a new version slot, because ``install`` is the fresh-install
|
|
311
|
+
command and has no flag that could ask for one. In non-interactive mode,
|
|
310
312
|
fail by default.
|
|
311
313
|
- **Completed** — in interactive mode, warn and ask for confirmation;
|
|
312
314
|
in non-interactive mode, fail by default (destructive fresh install requires
|
|
@@ -371,11 +373,21 @@ class DeploymentStateCheck:
|
|
|
371
373
|
f"Resume the in-progress configuration ({version_label})?",
|
|
372
374
|
default=True,
|
|
373
375
|
key="preflight.deployment_state_check.resume",
|
|
376
|
+
help_text=(
|
|
377
|
+
"Yes continues the interrupted questionnaire: the steps it already "
|
|
378
|
+
f"completed are kept and only the remaining ones are asked.\n"
|
|
379
|
+
"No starts the questionnaire again from the first question, in a new "
|
|
380
|
+
f"version slot. {version_label} stays on disk and is not deployed."
|
|
381
|
+
),
|
|
374
382
|
)
|
|
375
383
|
if resume:
|
|
376
384
|
return DeploymentStateCheckResult(state="in_progress", aborted=False, resume=True)
|
|
377
|
-
|
|
378
|
-
|
|
385
|
+
|
|
386
|
+
self._printer.print(
|
|
387
|
+
f"Starting a fresh configuration in a new version slot. "
|
|
388
|
+
f"The interrupted {version_label} is kept and is not deployed."
|
|
389
|
+
)
|
|
390
|
+
return DeploymentStateCheckResult(state="in_progress", aborted=False, resume=False)
|
|
379
391
|
|
|
380
392
|
def _handle_completed(self) -> DeploymentStateCheckResult:
|
|
381
393
|
self._printer.print_warning(
|
|
@@ -195,8 +195,9 @@ class ConfigureCommand:
|
|
|
195
195
|
base_state = DeploymentStateDocument.new(metadata).with_items(preset.items)
|
|
196
196
|
|
|
197
197
|
# 4. Run the configuration pipeline.
|
|
198
|
-
#
|
|
199
|
-
#
|
|
198
|
+
# Only an interactive run is checkpointed: a non-interactive one is
|
|
199
|
+
# re-runnable from its own inputs, and a partial document it left behind
|
|
200
|
+
# would make the next install ask about a session nobody can answer for.
|
|
200
201
|
def _checkpoint(partial: DeploymentStateDocument) -> None:
|
|
201
202
|
self._repository.save(args.app_root, target.version, partial)
|
|
202
203
|
|
|
@@ -204,7 +205,7 @@ class ConfigureCommand:
|
|
|
204
205
|
app_root=args.app_root,
|
|
205
206
|
base_state=base_state,
|
|
206
207
|
interactive=args.interactive,
|
|
207
|
-
on_checkpoint=_checkpoint,
|
|
208
|
+
on_checkpoint=_checkpoint if args.interactive else None,
|
|
208
209
|
)
|
|
209
210
|
|
|
210
211
|
# 5. Persist.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"""The filesystem as the Docker daemon sees it.
|
|
2
|
+
|
|
3
|
+
The tool can run from a container, but the daemon it drives runs on the host.
|
|
4
|
+
Every path the tool hands to Compose — above all the Compose project directory,
|
|
5
|
+
which is what Compose makes the relative bind-mount and secret paths of
|
|
6
|
+
``docker-compose.yml`` absolute against — is therefore read by a process with a
|
|
7
|
+
different view of the filesystem. A path that is only valid inside the container
|
|
8
|
+
makes the daemon mount something that is not there.
|
|
9
|
+
|
|
10
|
+
The container's own mounts are the map between the two views: each one names a
|
|
11
|
+
host path and where it is mounted here. :class:`HostPathView` is that map, ready
|
|
12
|
+
to answer with the host path of anything the daemon has to reach.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
from collections.abc import Iterable
|
|
18
|
+
from dataclasses import dataclass
|
|
19
|
+
from pathlib import Path, PurePosixPath
|
|
20
|
+
from typing import Protocol
|
|
21
|
+
|
|
22
|
+
from octopize_avatar_deploy.exceptions import DockerClientError
|
|
23
|
+
|
|
24
|
+
_MSG_NOT_MOUNTED_FROM_HOST = (
|
|
25
|
+
"{path} is not part of any mount of this container, so it exists here "
|
|
26
|
+
"only.\n"
|
|
27
|
+
"Docker Compose hands the daemon the paths of the deployment files, and the "
|
|
28
|
+
"daemon runs on the host, where nothing is at that path.\n"
|
|
29
|
+
"Mount the app root from the host, and pass its path inside the container "
|
|
30
|
+
"to --app-root:\n"
|
|
31
|
+
' -v "/path/on/host/avatar:/app-root" ... --app-root /app-root'
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@dataclass(frozen=True)
|
|
36
|
+
class ContainerMount:
|
|
37
|
+
"""One mount of the running container.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
source: The path on the host, as the Docker daemon sees it.
|
|
41
|
+
destination: Where that path is mounted inside this container.
|
|
42
|
+
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
source: PurePosixPath
|
|
46
|
+
destination: PurePosixPath
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ContainerMountSource(Protocol):
|
|
50
|
+
"""Port for the mounts of the container this process runs in."""
|
|
51
|
+
|
|
52
|
+
def mounts(self) -> tuple[ContainerMount, ...]:
|
|
53
|
+
"""Return the mounts of this container.
|
|
54
|
+
|
|
55
|
+
Returns:
|
|
56
|
+
The mounts, or an empty tuple when they cannot be read at all —
|
|
57
|
+
which every caller has to read as "the mapping is unknown", not as
|
|
58
|
+
"there are none".
|
|
59
|
+
|
|
60
|
+
"""
|
|
61
|
+
...
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def to_host_path(path: PurePosixPath, mounts: Iterable[ContainerMount]) -> PurePosixPath | None:
|
|
65
|
+
"""Return the host path of *path*, or ``None`` if no mount holds it.
|
|
66
|
+
|
|
67
|
+
The most specific mount wins, so a deployment inside a directory that is
|
|
68
|
+
itself inside another mount is translated through the nearer of the two.
|
|
69
|
+
|
|
70
|
+
Args:
|
|
71
|
+
path: An absolute path as this container sees it.
|
|
72
|
+
mounts: The mounts of this container.
|
|
73
|
+
|
|
74
|
+
Returns:
|
|
75
|
+
The host path, or ``None`` when the path is under no mount — meaning it
|
|
76
|
+
lives in the container's own filesystem, where no translation exists and
|
|
77
|
+
the daemon cannot reach the files at all.
|
|
78
|
+
|
|
79
|
+
"""
|
|
80
|
+
holder: ContainerMount | None = None
|
|
81
|
+
for mount in mounts:
|
|
82
|
+
if path != mount.destination and not path.is_relative_to(mount.destination):
|
|
83
|
+
continue
|
|
84
|
+
if holder is None or len(mount.destination.parts) > len(holder.destination.parts):
|
|
85
|
+
holder = mount
|
|
86
|
+
if holder is None:
|
|
87
|
+
return None
|
|
88
|
+
return holder.source / path.relative_to(holder.destination)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class HostPathView:
|
|
92
|
+
"""Translates the paths of this process into the paths the daemon reads.
|
|
93
|
+
|
|
94
|
+
Outside a container the two views are the same and every path is returned
|
|
95
|
+
unchanged. Inside one, the container's mounts are the map.
|
|
96
|
+
|
|
97
|
+
Args:
|
|
98
|
+
mount_source: Where the mounts of this container come from.
|
|
99
|
+
in_container: Whether this process runs in a container. A ``False``
|
|
100
|
+
makes every translation the identity, and reads no mounts.
|
|
101
|
+
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
def __init__(self, mount_source: ContainerMountSource, *, in_container: bool) -> None:
|
|
105
|
+
self._mount_source = mount_source
|
|
106
|
+
self._in_container = in_container
|
|
107
|
+
self._mounts: tuple[ContainerMount, ...] | None = None
|
|
108
|
+
|
|
109
|
+
def translate(self, path: Path) -> Path:
|
|
110
|
+
"""Return *path* as the Docker daemon sees it.
|
|
111
|
+
|
|
112
|
+
When the mounts cannot be read the path is returned unchanged: an
|
|
113
|
+
unknown mapping is no reason to refuse work that may well be correct,
|
|
114
|
+
because an app root mounted at its own host path needs no translation.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
path: An absolute path as this process sees it.
|
|
118
|
+
|
|
119
|
+
Returns:
|
|
120
|
+
The path to hand to the daemon.
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
DockerClientError: If the mounts are known and none of them holds
|
|
124
|
+
*path*, so the daemon has no way to reach those files.
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
if not self._in_container:
|
|
128
|
+
return path
|
|
129
|
+
|
|
130
|
+
mounts = self._known_mounts()
|
|
131
|
+
if not mounts:
|
|
132
|
+
return path
|
|
133
|
+
|
|
134
|
+
host_path = to_host_path(PurePosixPath(path), mounts)
|
|
135
|
+
if host_path is None:
|
|
136
|
+
raise DockerClientError(_MSG_NOT_MOUNTED_FROM_HOST.format(path=path))
|
|
137
|
+
return Path(host_path)
|
|
138
|
+
|
|
139
|
+
def _known_mounts(self) -> tuple[ContainerMount, ...]:
|
|
140
|
+
"""Return the mounts, read once and kept: they cannot change under us."""
|
|
141
|
+
if self._mounts is None:
|
|
142
|
+
self._mounts = self._mount_source.mounts()
|
|
143
|
+
return self._mounts
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"""Image-pull credentials as the Docker client, not the daemon, holds them.
|
|
2
|
+
|
|
3
|
+
``docker login`` writes its credentials into the *client* configuration of the
|
|
4
|
+
user who ran it, and the client is what sends them to the registry. A pull
|
|
5
|
+
driven from the deploy-tool container therefore carries the credentials of that
|
|
6
|
+
container, not the ones the operator created on the host — so an image the host
|
|
7
|
+
can pull answers ``401 Unauthorized`` here.
|
|
8
|
+
|
|
9
|
+
This module holds what is pure about that: reading the shape of a Docker client
|
|
10
|
+
configuration, recognising an authentication failure in what Docker printed, and
|
|
11
|
+
writing the operator the way out.
|
|
12
|
+
|
|
13
|
+
"Image registry" is always spelled in full here. A bare "registry" is the
|
|
14
|
+
in-code catalog of deployment items in this tool (see ``CONTEXT.md``), which has
|
|
15
|
+
nothing to do with any of this.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
from dataclasses import dataclass
|
|
21
|
+
from pathlib import Path
|
|
22
|
+
from typing import Any
|
|
23
|
+
|
|
24
|
+
#: The image registry Docker uses when a reference names none.
|
|
25
|
+
DEFAULT_IMAGE_REGISTRY = "docker.io"
|
|
26
|
+
|
|
27
|
+
#: Fragments Docker prints when a registry refuses the credentials it was given
|
|
28
|
+
#: (or the absence of them). Lower-case; matched against lower-cased output.
|
|
29
|
+
_AUTH_FAILURE_FRAGMENTS = (
|
|
30
|
+
"401 unauthorized",
|
|
31
|
+
"unauthorized:",
|
|
32
|
+
"authentication required",
|
|
33
|
+
"no basic auth credentials",
|
|
34
|
+
"denied: requested access to the resource is denied",
|
|
35
|
+
"pull access denied",
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@dataclass(frozen=True)
|
|
40
|
+
class DockerConfigSummary:
|
|
41
|
+
"""What a Docker client configuration says about registry credentials.
|
|
42
|
+
|
|
43
|
+
Attributes:
|
|
44
|
+
path: Where the configuration was read from.
|
|
45
|
+
registries: The registries it holds a credential for directly
|
|
46
|
+
(the ``auths`` entries that carry a token).
|
|
47
|
+
credential_store: The credential helper it delegates every registry to
|
|
48
|
+
(``credsStore``), or ``None``.
|
|
49
|
+
credential_helpers: The registries it delegates to a helper of their own
|
|
50
|
+
(``credHelpers``).
|
|
51
|
+
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
path: Path
|
|
55
|
+
registries: frozenset[str]
|
|
56
|
+
credential_store: str | None
|
|
57
|
+
credential_helpers: frozenset[str]
|
|
58
|
+
|
|
59
|
+
def holds_token_for(self, registry: str) -> bool:
|
|
60
|
+
"""Return whether the configuration itself carries this registry's token."""
|
|
61
|
+
return registry in self.registries
|
|
62
|
+
|
|
63
|
+
def delegates(self, registry: str) -> bool:
|
|
64
|
+
"""Return whether this registry's credentials live in a helper program.
|
|
65
|
+
|
|
66
|
+
A helper is a separate executable. Copying the configuration into a
|
|
67
|
+
container therefore carries no credentials at all: the container has the
|
|
68
|
+
name of a program it does not have.
|
|
69
|
+
"""
|
|
70
|
+
return self.credential_store is not None or registry in self.credential_helpers
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def image_registry_of(image: str) -> str:
|
|
74
|
+
"""Return the registry an image reference points at.
|
|
75
|
+
|
|
76
|
+
Docker reads the first path segment as a registry only when it looks like a
|
|
77
|
+
host — it holds a dot or a colon, or it is ``localhost``. Everything else is
|
|
78
|
+
a repository on the default registry.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
image: An image reference, e.g. ``quay.io/octopize/avatar-web:1.2.3``.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
The registry host, or :data:`DEFAULT_IMAGE_REGISTRY`.
|
|
85
|
+
|
|
86
|
+
"""
|
|
87
|
+
head, _, rest = image.partition("/")
|
|
88
|
+
if not rest:
|
|
89
|
+
return DEFAULT_IMAGE_REGISTRY
|
|
90
|
+
if "." in head or ":" in head or head == "localhost":
|
|
91
|
+
return head
|
|
92
|
+
return DEFAULT_IMAGE_REGISTRY
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def summarize_docker_config(content: dict[str, Any], path: Path) -> DockerConfigSummary:
|
|
96
|
+
"""Summarize the credentials a parsed ``config.json`` holds.
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
content: The parsed configuration file.
|
|
100
|
+
path: Where it was read from, for the operator-facing message.
|
|
101
|
+
|
|
102
|
+
Returns:
|
|
103
|
+
A :class:`DockerConfigSummary`. An ``auths`` entry counts as a
|
|
104
|
+
credential only when it carries an ``auth`` token: ``docker login``
|
|
105
|
+
leaves an empty entry behind for a registry whose token went to a
|
|
106
|
+
helper.
|
|
107
|
+
|
|
108
|
+
"""
|
|
109
|
+
auths = content.get("auths") or {}
|
|
110
|
+
with_token = {
|
|
111
|
+
registry
|
|
112
|
+
for registry, entry in auths.items()
|
|
113
|
+
if isinstance(entry, dict) and entry.get("auth")
|
|
114
|
+
}
|
|
115
|
+
helpers = content.get("credHelpers") or {}
|
|
116
|
+
store = content.get("credsStore")
|
|
117
|
+
return DockerConfigSummary(
|
|
118
|
+
path=path,
|
|
119
|
+
registries=frozenset(with_token),
|
|
120
|
+
credential_store=str(store) if store else None,
|
|
121
|
+
credential_helpers=frozenset(helpers),
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def is_authentication_failure(output: str) -> bool:
|
|
126
|
+
"""Return whether *output* is Docker refusing a pull for lack of credentials."""
|
|
127
|
+
lowered = output.lower()
|
|
128
|
+
return any(fragment in lowered for fragment in _AUTH_FAILURE_FRAGMENTS)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def refused_pull_guidance(
|
|
132
|
+
image: str, summary: DockerConfigSummary | None, *, in_container: bool
|
|
133
|
+
) -> str:
|
|
134
|
+
"""Write the operator the reason the pull was refused, and the way out.
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
image: The image that could not be pulled.
|
|
138
|
+
summary: The Docker client configuration this process can see, or
|
|
139
|
+
``None`` when there is none.
|
|
140
|
+
in_container: Whether the tool itself runs in a container. On the host
|
|
141
|
+
there is nothing to mount and the operator simply has to log in.
|
|
142
|
+
|
|
143
|
+
Returns:
|
|
144
|
+
The message to show.
|
|
145
|
+
|
|
146
|
+
"""
|
|
147
|
+
registry = image_registry_of(image)
|
|
148
|
+
lines = [f"Not allowed to pull {image}: {registry} refused the credentials."]
|
|
149
|
+
|
|
150
|
+
if not in_container:
|
|
151
|
+
lines.append(
|
|
152
|
+
f"Log in to the registry and run the command again:\n docker login {registry}"
|
|
153
|
+
)
|
|
154
|
+
return "\n".join(lines)
|
|
155
|
+
|
|
156
|
+
lines.append(
|
|
157
|
+
"The credentials 'docker login' writes belong to the Docker client, not "
|
|
158
|
+
"to the daemon, so the login you did on the host is not visible in this "
|
|
159
|
+
"container."
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
if summary is None:
|
|
163
|
+
lines.append(
|
|
164
|
+
"This container has no Docker client configuration. Give it the one "
|
|
165
|
+
"of the host:\n"
|
|
166
|
+
' -e DOCKER_CONFIG=/docker-config -v "$HOME/.docker:/docker-config:ro"'
|
|
167
|
+
)
|
|
168
|
+
return "\n".join(lines)
|
|
169
|
+
|
|
170
|
+
if summary.delegates(registry):
|
|
171
|
+
helper = summary.credential_store or "a credential helper"
|
|
172
|
+
lines.append(
|
|
173
|
+
f"The configuration at {summary.path} sends {registry} to {helper!r}, "
|
|
174
|
+
"which is a program this container does not have, so it holds no "
|
|
175
|
+
"credentials the client can use.\n"
|
|
176
|
+
"Write a configuration that carries the token itself, then mount that "
|
|
177
|
+
"one:\n"
|
|
178
|
+
" mkdir -p ~/avatar-registry-login\n"
|
|
179
|
+
f" DOCKER_CONFIG=~/avatar-registry-login docker login {registry}\n"
|
|
180
|
+
' -e DOCKER_CONFIG=/docker-config -v "$HOME/avatar-registry-login:/docker-config:ro"'
|
|
181
|
+
)
|
|
182
|
+
return "\n".join(lines)
|
|
183
|
+
|
|
184
|
+
if not summary.holds_token_for(registry):
|
|
185
|
+
known = ", ".join(sorted(summary.registries)) or "no registry"
|
|
186
|
+
lines.append(
|
|
187
|
+
f"The configuration at {summary.path} holds a credential for {known}, "
|
|
188
|
+
f"but none for {registry}.\n"
|
|
189
|
+
f"Log in to it, and mount the configuration you logged in to:\n"
|
|
190
|
+
f" docker login {registry}\n"
|
|
191
|
+
' -e DOCKER_CONFIG=/docker-config -v "$HOME/.docker:/docker-config:ro"'
|
|
192
|
+
)
|
|
193
|
+
return "\n".join(lines)
|
|
194
|
+
|
|
195
|
+
lines.append(
|
|
196
|
+
f"The configuration at {summary.path} does hold a credential for "
|
|
197
|
+
f"{registry}, so the credential itself is refused: it may be expired, or "
|
|
198
|
+
"it may not carry read access to this image.\n"
|
|
199
|
+
f"Log in again and run the command again:\n docker login {registry}"
|
|
200
|
+
)
|
|
201
|
+
return "\n".join(lines)
|
|
@@ -14,6 +14,7 @@ from dataclasses import dataclass
|
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
from typing import Any, Protocol
|
|
16
16
|
|
|
17
|
+
from octopize_avatar_deploy.application.image_registry_auth import DockerConfigSummary
|
|
17
18
|
from octopize_avatar_deploy.domain.configure_preset import ConfigurePreset, PresetRequest
|
|
18
19
|
from octopize_avatar_deploy.domain.deployment_state import DeploymentStateDocument
|
|
19
20
|
from octopize_avatar_deploy.domain.version_id import VersionId
|
|
@@ -478,6 +479,51 @@ class DockerClient(Protocol):
|
|
|
478
479
|
"""
|
|
479
480
|
...
|
|
480
481
|
|
|
482
|
+
def compose_images(
|
|
483
|
+
self, compose_file: Path, project_directory: Path | None = None
|
|
484
|
+
) -> tuple[str, ...]:
|
|
485
|
+
"""Return the image reference of every service of a Compose project.
|
|
486
|
+
|
|
487
|
+
Equivalent to reading ``image:`` out of ``docker compose config``, so
|
|
488
|
+
the references are the resolved ones, with the variables of the
|
|
489
|
+
environment file already substituted.
|
|
490
|
+
|
|
491
|
+
Args:
|
|
492
|
+
compose_file: Path to the ``docker-compose.yml`` to read.
|
|
493
|
+
project_directory: Working directory for the Compose project.
|
|
494
|
+
|
|
495
|
+
Returns:
|
|
496
|
+
The image references, without duplicates and in a stable order.
|
|
497
|
+
|
|
498
|
+
Raises:
|
|
499
|
+
DockerClientError: If the project cannot be read.
|
|
500
|
+
|
|
501
|
+
"""
|
|
502
|
+
...
|
|
503
|
+
|
|
504
|
+
def image_exists(self, reference: str) -> bool:
|
|
505
|
+
"""Return whether an image is already present on the Docker host.
|
|
506
|
+
|
|
507
|
+
Args:
|
|
508
|
+
reference: An image reference, e.g. ``postgres:14-alpine``.
|
|
509
|
+
|
|
510
|
+
"""
|
|
511
|
+
...
|
|
512
|
+
|
|
513
|
+
def pull_image(self, reference: str) -> None:
|
|
514
|
+
"""Pull one image, reporting the progress Docker prints.
|
|
515
|
+
|
|
516
|
+
Args:
|
|
517
|
+
reference: The image reference to pull.
|
|
518
|
+
|
|
519
|
+
Raises:
|
|
520
|
+
RegistryAuthenticationError: If the registry refused the credentials
|
|
521
|
+
the pull was made with.
|
|
522
|
+
DockerClientError: If the pull failed for any other reason.
|
|
523
|
+
|
|
524
|
+
"""
|
|
525
|
+
...
|
|
526
|
+
|
|
481
527
|
def compose_exec(
|
|
482
528
|
self,
|
|
483
529
|
compose_file: Path,
|
|
@@ -508,6 +554,19 @@ class DockerClient(Protocol):
|
|
|
508
554
|
...
|
|
509
555
|
|
|
510
556
|
|
|
557
|
+
class DockerConfigSource(Protocol):
|
|
558
|
+
"""Port for the Docker client configuration this process can see.
|
|
559
|
+
|
|
560
|
+
Only ever read to explain a registry that refused a pull: what credentials
|
|
561
|
+
the *client* holds is the whole subject of that failure (see
|
|
562
|
+
:mod:`octopize_avatar_deploy.application.image_registry_auth`).
|
|
563
|
+
"""
|
|
564
|
+
|
|
565
|
+
def read(self) -> DockerConfigSummary | None:
|
|
566
|
+
"""Return what the configuration holds, or ``None`` if there is none."""
|
|
567
|
+
...
|
|
568
|
+
|
|
569
|
+
|
|
511
570
|
class DirectoryReader(Protocol):
|
|
512
571
|
"""Port for reading all files from a directory tree."""
|
|
513
572
|
|