feat: add git plugin for docker image deployment - #16
Open
valbertovc wants to merge 8 commits into
Open
Conversation
Replace setup.py and the standalone dokkupycli script with PEP 621 metadata and a console entry point. Align license and README metadata with PyPI guidance. Bump version to 0.4.1. Co-authored-by: Rodrigo Pinheiro Marques de Araújo <[email protected]> Co-authored-by: Cursor <[email protected]>
Drop EOL Python support metadata, add OS/Topic classifiers, simplify subprocess handling, and add CI to validate builds across supported runtimes. Bump version to 0.5.0. BREAKING CHANGE: Python 3.7–3.9 and Python 2 are no longer supported. Requires Python >= 3.10. Co-authored-by: Rodrigo Pinheiro Marques de Araújo <[email protected]> Co-authored-by: Cursor <[email protected]>
Add ssh_port to Dokku, --ssh-port CLI flag, and ssh:// git remote URLs for non-default ports. Add unittest coverage in tests/test_core.py and tests/test_cli.py. Bump version to 0.6.0. Closes fenrrir#10 Co-authored-by: Rodrigo Pinheiro Marques de Araújo <[email protected]> Co-authored-by: Cursor <[email protected]>
Introduce dokku.registry.login() and dokku.registry.set() mirroring registry:login and registry:set CLI commands, with deploy JSON support under the registry key and env-based secret resolution. Co-authored-by: Cursor <[email protected]>
Extract Registry.apply_config into plugins/registry.py and organize tests under tests/plugins/ to mirror the production package structure. Co-authored-by: Cursor <[email protected]>
Introduce app.builder.set() and builder.set deploy JSON config key, mirroring dokku builder:set for properties like selected and build-dir. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Introduce app.git.from_image() mirroring git:from-image and deployment JSON config with method image to skip git push deploy. Co-authored-by: Cursor <[email protected]>
4 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Gitnamespace onAppwithfrom_image()mirroringgit:from-imageCLI commanddeployment.method: "image"intodeploy()JSON config (skips git push)Stacked on
feat/builder-plugin(registry, builder, pyproject migration, Python 3.10+, SSH port, CI).API example
Deploy config example
{ "deployment": { "method": "image", "image": { "from": "registry.gitlab.com/group/project:tag", "force": false, "build_dir": "path/to/build", "author": {"name": "Camila", "email": "[email protected]"} } } }Test plan
python -m unittest discover -s tests -v(40 tests pass)git:from-imageagainst a real Dokku host with private registryMade with Cursor