edge-containers-cli 4.1.1b0__tar.gz → 4.2.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.
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.copier-answers.yml +2 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.devcontainer/devcontainer.json +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/CONTRIBUTING.md +1 -1
- edge_containers_cli-4.2.0/.github/ISSUE_TEMPLATE/bug_report.md +21 -0
- edge_containers_cli-4.2.0/.github/ISSUE_TEMPLATE/issue.md +13 -0
- edge_containers_cli-4.2.0/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +8 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/pages/index.html +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/pages/make_switcher.py +7 -3
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/_pypi.yml +0 -5
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/_release.yml +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/ci.yml +0 -9
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.gitignore +1 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.pre-commit-config.yaml +1 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.vscode/extensions.json +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.vscode/launch.json +6 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.vscode/settings.json +2 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.vscode/tasks.json +1 -1
- edge_containers_cli-4.2.0/Dockerfile +13 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/PKG-INFO +1 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/README.md +0 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/explanations/decisions.rst +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/make-release.rst +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/images/dls-logo.svg +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/pyproject.toml +18 -10
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/_version.py +2 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/autocomplete.py +2 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cli.py +6 -6
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/argo_commands.py +8 -8
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/commands.py +3 -3
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/demo_commands.py +2 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/k8s_commands.py +4 -4
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/monitor.py +3 -3
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/monitor.tcss +1 -1
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/PKG-INFO +1 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/SOURCES.txt +3 -2
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/argocd.yaml +4 -4
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/test_argocd.py +12 -12
- edge_containers_cli-4.1.1b0/.github/workflows/_container.yml +0 -51
- edge_containers_cli-4.1.1b0/Dockerfile +0 -29
- edge_containers_cli-4.1.1b0/catalog-info.yaml +0 -10
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/actions/install_requirements/action.yml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/dependabot.yml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/_check.yml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/_dist.yml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/_test.yml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/.github/workflows/_tox.yml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/LICENSE +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/conf.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/explanations/decisions/0001-record-architecture-decisions.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/explanations/decisions/0002-switched-to-pip-skeleton.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/build-docs.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/contribute.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/lint.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/pin-requirements.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/run-tests.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/static-analysis.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/test-container.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/update-tools.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/index.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/reference/standards.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/tutorials/dev-install.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/genindex.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/images/dls-favicon.ico +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/index.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/explanations/docs-structure.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/how-to/run-container.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/index.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/reference/api.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/tutorials/installation.rst +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/setup.cfg +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/__init__.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/__main__.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/backend.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/__init__.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/helm.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/definitions.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/git.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/globals.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/logging.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/shell.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/utils.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/dependency_links.txt +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/entry_points.txt +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/requires.txt +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/top_level.txt +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/__init__.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/conftest.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-deployment/apps/values.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-01/Chart.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-01/config/ioc.db +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-01/config/ioc.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-01/templates/configmap.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-01/values.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-02/Chart.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/bl01t-ea-test-02/values.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/dls-aravis/Chart.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/dls-aravis/config/ioc.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/dls-aravis/templates/configmap.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/dls-aravis/values.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/bl01t-services/services/values.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/cli.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/k8s.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/data/yaml.yaml +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/test_cli.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/test_demo.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/test_k8s.py +0 -0
- {edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/tests/test_unit.py +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# Changes here will be overwritten by Copier
|
|
2
|
-
_commit:
|
|
2
|
+
_commit: 2.3.0
|
|
3
3
|
_src_path: gh:DiamondLightSource/python-copier-template
|
|
4
4
|
author_email: giles.knap@gmail.com
|
|
5
5
|
author_name: Giles Knap
|
|
6
|
-
component_owner: group:default/sscc
|
|
7
6
|
description: CLI for deploying and managing epics containers IOCs and services
|
|
8
7
|
distribution_name: edge-containers-cli
|
|
9
8
|
docker: false
|
|
@@ -11,5 +10,6 @@ docs_type: README
|
|
|
11
10
|
git_platform: github.com
|
|
12
11
|
github_org: epics-containers
|
|
13
12
|
package_name: edge_containers_cli
|
|
13
|
+
pypi: true
|
|
14
14
|
repo_name: edge-containers-cli
|
|
15
15
|
type_checker: pyright
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind",
|
|
44
44
|
// After the container is created, install the python project in editable form
|
|
45
45
|
"postCreateCommand": "pip install $([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e '.[dev]' && pre-commit install"
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -24,4 +24,4 @@ It is recommended that developers use a [vscode devcontainer](https://code.visua
|
|
|
24
24
|
|
|
25
25
|
This project was created using the [Diamond Light Source Copier Template](https://github.com/DiamondLightSource/python-copier-template) for Python projects.
|
|
26
26
|
|
|
27
|
-
For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/
|
|
27
|
+
For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/2.3.0/how-to.html).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: The template to use for reporting bugs and usability issues
|
|
4
|
+
title: " "
|
|
5
|
+
labels: 'bug'
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Describe the bug, including a clear and concise description of the expected behavior, the actual behavior and the context in which you encountered it (ideally include details of your environment).
|
|
11
|
+
|
|
12
|
+
## Steps To Reproduce
|
|
13
|
+
Steps to reproduce the behavior:
|
|
14
|
+
1. Go to '...'
|
|
15
|
+
2. Click on '....'
|
|
16
|
+
3. Scroll down to '....'
|
|
17
|
+
4. See error
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Acceptance Criteria
|
|
21
|
+
- Specific criteria that will be used to judge if the issue is fixed
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Issue
|
|
3
|
+
about: The standard template to use for feature requests, design discussions and tasks
|
|
4
|
+
title: " "
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
A brief description of the issue, including specific stakeholders and the business case where appropriate
|
|
11
|
+
|
|
12
|
+
## Acceptance Criteria
|
|
13
|
+
- Specific criteria that will be used to judge if the issue is fixed
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
"""Make switcher.json to allow docs to switch between different versions."""
|
|
2
|
+
|
|
1
3
|
import json
|
|
2
4
|
import logging
|
|
3
5
|
from argparse import ArgumentParser
|
|
4
6
|
from pathlib import Path
|
|
5
7
|
from subprocess import CalledProcessError, check_output
|
|
6
|
-
from typing import Optional
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
def report_output(stdout: bytes, label: str) -> list[str]:
|
|
11
|
+
"""Print and return something received frm stdout."""
|
|
10
12
|
ret = stdout.decode().strip().split("\n")
|
|
11
13
|
print(f"{label}: {ret}")
|
|
12
14
|
return ret
|
|
@@ -24,7 +26,7 @@ def get_sorted_tags_list() -> list[str]:
|
|
|
24
26
|
return report_output(stdout, "Tags list")
|
|
25
27
|
|
|
26
28
|
|
|
27
|
-
def get_versions(ref: str, add:
|
|
29
|
+
def get_versions(ref: str, add: str | None) -> list[str]:
|
|
28
30
|
"""Generate the file containing the list of all GitHub Pages builds."""
|
|
29
31
|
# Get the directories (i.e. builds) from the GitHub Pages branch
|
|
30
32
|
try:
|
|
@@ -53,7 +55,8 @@ def get_versions(ref: str, add: Optional[str]) -> list[str]:
|
|
|
53
55
|
return versions
|
|
54
56
|
|
|
55
57
|
|
|
56
|
-
def write_json(path: Path, repository: str, versions: str):
|
|
58
|
+
def write_json(path: Path, repository: str, versions: list[str]):
|
|
59
|
+
"""Write the JSON switcher to path."""
|
|
57
60
|
org, repo_name = repository.split("/")
|
|
58
61
|
struct = [
|
|
59
62
|
{"version": version, "url": f"https://{org}.github.io/{repo_name}/{version}/"}
|
|
@@ -65,6 +68,7 @@ def write_json(path: Path, repository: str, versions: str):
|
|
|
65
68
|
|
|
66
69
|
|
|
67
70
|
def main(args=None):
|
|
71
|
+
"""Parse args and write switcher."""
|
|
68
72
|
parser = ArgumentParser(
|
|
69
73
|
description="Make a versions.json file from gh-pages directories"
|
|
70
74
|
)
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
on:
|
|
2
2
|
workflow_call:
|
|
3
|
-
secrets:
|
|
4
|
-
PYPI_TOKEN:
|
|
5
|
-
required: true
|
|
6
3
|
|
|
7
4
|
jobs:
|
|
8
5
|
upload:
|
|
@@ -18,5 +15,3 @@ jobs:
|
|
|
18
15
|
|
|
19
16
|
- name: Publish to PyPI using trusted publishing
|
|
20
17
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
21
|
-
with:
|
|
22
|
-
password: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
- name: Create GitHub Release
|
|
24
24
|
# We pin to the SHA, not the tag, for security reasons.
|
|
25
25
|
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
|
|
26
|
-
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 #
|
|
26
|
+
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
|
|
27
27
|
with:
|
|
28
28
|
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
|
|
29
29
|
files: "*"
|
|
@@ -34,13 +34,6 @@ jobs:
|
|
|
34
34
|
secrets:
|
|
35
35
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
36
36
|
|
|
37
|
-
container:
|
|
38
|
-
needs: check
|
|
39
|
-
if: needs.check.outputs.branch-pr == ''
|
|
40
|
-
uses: ./.github/workflows/_container.yml
|
|
41
|
-
permissions:
|
|
42
|
-
packages: write
|
|
43
|
-
|
|
44
37
|
dist:
|
|
45
38
|
needs: check
|
|
46
39
|
if: needs.check.outputs.branch-pr == ''
|
|
@@ -52,8 +45,6 @@ jobs:
|
|
|
52
45
|
uses: ./.github/workflows/_pypi.yml
|
|
53
46
|
permissions:
|
|
54
47
|
id-token: write
|
|
55
|
-
secrets:
|
|
56
|
-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
57
48
|
|
|
58
49
|
release:
|
|
59
50
|
if: github.ref_type == 'tag'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"configurations": [
|
|
7
7
|
{
|
|
8
8
|
"name": "Debug Unit Test",
|
|
9
|
-
"type": "
|
|
9
|
+
"type": "debugpy",
|
|
10
10
|
"request": "launch",
|
|
11
11
|
"justMyCode": false,
|
|
12
12
|
"program": "${file}",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"debug-test"
|
|
15
15
|
],
|
|
16
16
|
"console": "integratedTerminal",
|
|
17
|
+
"env": {
|
|
18
|
+
// Enable break on exception when debugging tests (see: tests/conftest.py)
|
|
19
|
+
"PYTEST_RAISE": "1",
|
|
20
|
+
},
|
|
17
21
|
}
|
|
18
22
|
]
|
|
19
|
-
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# The devcontainer should use the developer target and run as root with podman
|
|
2
|
+
# or docker with user namespaces.
|
|
3
|
+
ARG PYTHON_VERSION=3.11
|
|
4
|
+
FROM python:${PYTHON_VERSION} as developer
|
|
5
|
+
|
|
6
|
+
# Add any system dependencies for the developer/build environment here
|
|
7
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
8
|
+
graphviz \
|
|
9
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
10
|
+
|
|
11
|
+
# Set up a virtual environment and put it in PATH
|
|
12
|
+
RUN python -m venv /venv
|
|
13
|
+
ENV PATH=/venv/bin:$PATH
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: edge-containers-cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.2.0
|
|
4
4
|
Summary: CLI for deploying and managing epics containers IOCs and services
|
|
5
5
|
Author-email: Giles Knap <giles.knap@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -258,4 +258,3 @@ and perform the following::
|
|
|
258
258
|
|
|
259
259
|
pip install edge-containers-cli
|
|
260
260
|
ec --version
|
|
261
|
-
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/make-release.rst
RENAMED
|
@@ -13,4 +13,4 @@ To make a new release, please follow this checklist:
|
|
|
13
13
|
Note that tagging and pushing to the main branch has the same effect except that
|
|
14
14
|
you will not get the option to edit the release notes.
|
|
15
15
|
|
|
16
|
-
.. _release: https://github.com/epics-containers/edge-containers-cli/releases
|
|
16
|
+
.. _release: https://github.com/epics-containers/edge-containers-cli/releases
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<path id="path2859" d="m156.09 651.68-0.30524-2.1354c1.4474 0.12317 2.8387 0.4409 4.1468 0.93101l-2.4011 1.8011c-0.67345 0.5049-1.3214 0.23639-1.4405-0.5967" fill="#fddd04" />
|
|
9
9
|
<path id="path2861" d="m148.46 656.04-7.3723 0.918c1.3908-2.2598 3.3397-4.1371 5.6539-5.4455l2.3151 3.0873c0.5049 0.67295 0.23639 1.3212-0.5967 1.4402" fill="#fddd04" />
|
|
10
10
|
</g>
|
|
11
|
-
</svg>
|
|
11
|
+
</svg>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=64", "setuptools_scm[toml]>=
|
|
2
|
+
requires = ["setuptools>=64", "setuptools_scm[toml]>=8"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
@@ -54,9 +54,10 @@ name = "Giles Knap"
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
[tool.setuptools_scm]
|
|
57
|
-
|
|
57
|
+
version_file = "src/edge_containers_cli/_version.py"
|
|
58
58
|
|
|
59
59
|
[tool.pyright]
|
|
60
|
+
typeCheckingMode = "standard"
|
|
60
61
|
reportMissingImports = false # Ignore missing stubs in imported modules
|
|
61
62
|
|
|
62
63
|
[tool.pytest.ini_options]
|
|
@@ -100,7 +101,7 @@ allowlist_externals =
|
|
|
100
101
|
pre-commit
|
|
101
102
|
pyright
|
|
102
103
|
commands =
|
|
103
|
-
pre-commit: pre-commit run --all-files {posargs}
|
|
104
|
+
pre-commit: pre-commit run --all-files --show-diff-on-failure {posargs}
|
|
104
105
|
type-checking: pyright src tests {posargs}
|
|
105
106
|
tests: pytest --cov=edge_containers_cli --cov-report term --cov-report xml:cov.xml {posargs}
|
|
106
107
|
"""
|
|
@@ -115,11 +116,18 @@ lint.ignore = [
|
|
|
115
116
|
"UP007", # Do not complain about Optional[] (TODO: remove once typer is patched)
|
|
116
117
|
]
|
|
117
118
|
lint.select = [
|
|
118
|
-
"B",
|
|
119
|
-
"C4",
|
|
120
|
-
"E",
|
|
121
|
-
"F",
|
|
122
|
-
"W",
|
|
123
|
-
"I",
|
|
124
|
-
"UP",
|
|
119
|
+
"B", # flake8-bugbear - https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
|
|
120
|
+
"C4", # flake8-comprehensions - https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
|
|
121
|
+
"E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e
|
|
122
|
+
"F", # pyflakes rules - https://docs.astral.sh/ruff/rules/#pyflakes-f
|
|
123
|
+
"W", # pycodestyle warnings - https://docs.astral.sh/ruff/rules/#warning-w
|
|
124
|
+
"I", # isort - https://docs.astral.sh/ruff/rules/#isort-i
|
|
125
|
+
"UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up
|
|
126
|
+
"SLF", # self - https://docs.astral.sh/ruff/settings/#lintflake8-self
|
|
125
127
|
]
|
|
128
|
+
|
|
129
|
+
[tool.ruff.lint.per-file-ignores]
|
|
130
|
+
# By default, private member access is allowed in tests
|
|
131
|
+
# See https://github.com/DiamondLightSource/python-copier-template/issues/154
|
|
132
|
+
# Remove this line to forbid private member access in tests
|
|
133
|
+
"tests/**/*" = ["SLF001"]
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/autocomplete.py
RENAMED
|
@@ -81,7 +81,7 @@ def force_plain_completion() -> list[str]:
|
|
|
81
81
|
def running_svc(ctx: typer.Context) -> list[str]:
|
|
82
82
|
autocomplete_backend_init(ctx)
|
|
83
83
|
try:
|
|
84
|
-
return ec_backend.commands._running_services()
|
|
84
|
+
return ec_backend.commands._running_services() # noqa: SLF001
|
|
85
85
|
except (CommandError, ShellError) as e:
|
|
86
86
|
typer.echo(f"\n{e}", nl=False, err=True)
|
|
87
87
|
return []
|
|
@@ -90,7 +90,7 @@ def running_svc(ctx: typer.Context) -> list[str]:
|
|
|
90
90
|
def all_svc(ctx: typer.Context) -> list[str]:
|
|
91
91
|
autocomplete_backend_init(ctx)
|
|
92
92
|
try:
|
|
93
|
-
return ec_backend.commands._all_services()
|
|
93
|
+
return ec_backend.commands._all_services() # noqa: SLF001
|
|
94
94
|
except (CommandError, ShellError) as e:
|
|
95
95
|
typer.echo(f"\n{e}", nl=False, err=True)
|
|
96
96
|
return []
|
|
@@ -234,13 +234,13 @@ def start(
|
|
|
234
234
|
service_name: str = typer.Argument(
|
|
235
235
|
..., help="Name of the service container to start", autocompletion=all_svc
|
|
236
236
|
),
|
|
237
|
-
|
|
237
|
+
commit: bool = typer.Option(False, help="Commits the values to the git repo"),
|
|
238
238
|
):
|
|
239
239
|
"""Start a service"""
|
|
240
240
|
try:
|
|
241
|
-
backend.commands.start(service_name,
|
|
241
|
+
backend.commands.start(service_name, commit)
|
|
242
242
|
except GitError as e:
|
|
243
|
-
msg = f"{str(e)} - Try 'ec start <service> --
|
|
243
|
+
msg = f"{str(e)} - Commit failed. Try 'ec start <service> --no-commit to set values without updating git"
|
|
244
244
|
raise GitError(msg) from e
|
|
245
245
|
|
|
246
246
|
|
|
@@ -251,13 +251,13 @@ def stop(
|
|
|
251
251
|
help="Name of the service container to stop",
|
|
252
252
|
autocompletion=running_svc,
|
|
253
253
|
),
|
|
254
|
-
|
|
254
|
+
commit: bool = typer.Option(False, help="Commits the values to the git repo"),
|
|
255
255
|
):
|
|
256
256
|
"""Stop a service"""
|
|
257
257
|
try:
|
|
258
|
-
backend.commands.stop(service_name,
|
|
258
|
+
backend.commands.stop(service_name, commit)
|
|
259
259
|
except GitError as e:
|
|
260
|
-
msg = f"{str(e)} - Try ec stop <service> --
|
|
260
|
+
msg = f"{str(e)} - Commit failed. Try ec stop <service> --no-commit to set values without updating git"
|
|
261
261
|
raise GitError(msg) from e
|
|
262
262
|
|
|
263
263
|
|
|
@@ -84,19 +84,19 @@ class ArgoCommands(Commands):
|
|
|
84
84
|
)
|
|
85
85
|
shell.run_command(cmd, skip_on_dryrun=True)
|
|
86
86
|
|
|
87
|
-
def start(self, service_name,
|
|
87
|
+
def start(self, service_name, commit):
|
|
88
88
|
self._check_service(service_name)
|
|
89
|
-
if
|
|
90
|
-
patch_value(self.target, f"ec_services.{service_name}.enabled", True)
|
|
91
|
-
else:
|
|
89
|
+
if commit:
|
|
92
90
|
push_value(self.target, f"ec_services.{service_name}.enabled", True)
|
|
91
|
+
else:
|
|
92
|
+
patch_value(self.target, f"ec_services.{service_name}.enabled", True)
|
|
93
93
|
|
|
94
|
-
def stop(self, service_name,
|
|
94
|
+
def stop(self, service_name, commit):
|
|
95
95
|
self._check_service(service_name)
|
|
96
|
-
if
|
|
97
|
-
patch_value(self.target, f"ec_services.{service_name}.enabled", False)
|
|
98
|
-
else:
|
|
96
|
+
if commit:
|
|
99
97
|
push_value(self.target, f"ec_services.{service_name}.enabled", False)
|
|
98
|
+
else:
|
|
99
|
+
patch_value(self.target, f"ec_services.{service_name}.enabled", False)
|
|
100
100
|
|
|
101
101
|
def _get_logs(self, service_name, prev) -> str:
|
|
102
102
|
namespace, app = extract_ns_app(self.target)
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/commands.py
RENAMED
|
@@ -39,7 +39,7 @@ class Commands(ABC):
|
|
|
39
39
|
Methods not exposed to the CLI should be private
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
|
-
params_opt_out: dict[str, list[str]] = {}
|
|
42
|
+
params_opt_out: dict[str, list[str]] = {} # Optionally drop parameters from the CLI
|
|
43
43
|
|
|
44
44
|
def __init__(self, ctx: ECContext):
|
|
45
45
|
self._target = ctx.target
|
|
@@ -103,11 +103,11 @@ class Commands(ABC):
|
|
|
103
103
|
raise NotImplementedError
|
|
104
104
|
|
|
105
105
|
@abstractmethod
|
|
106
|
-
def start(self, service_name: str,
|
|
106
|
+
def start(self, service_name: str, commit: bool) -> None:
|
|
107
107
|
raise NotImplementedError
|
|
108
108
|
|
|
109
109
|
@abstractmethod
|
|
110
|
-
def stop(self, service_name: str,
|
|
110
|
+
def stop(self, service_name: str, commit: bool) -> None:
|
|
111
111
|
raise NotImplementedError
|
|
112
112
|
|
|
113
113
|
def template(self, svc_instance: Path, args: str) -> None:
|
|
@@ -87,7 +87,7 @@ class DemoCommands(Commands):
|
|
|
87
87
|
self.start(service_name, False)
|
|
88
88
|
|
|
89
89
|
@demo_message
|
|
90
|
-
def start(self, service_name,
|
|
90
|
+
def start(self, service_name, commit):
|
|
91
91
|
self._check_service(service_name)
|
|
92
92
|
time.sleep(DELAY)
|
|
93
93
|
self._stateDF = self._stateDF.with_columns(
|
|
@@ -98,7 +98,7 @@ class DemoCommands(Commands):
|
|
|
98
98
|
)
|
|
99
99
|
|
|
100
100
|
@demo_message
|
|
101
|
-
def stop(self, service_name,
|
|
101
|
+
def stop(self, service_name, commit):
|
|
102
102
|
self._check_service(service_name)
|
|
103
103
|
time.sleep(DELAY)
|
|
104
104
|
self._stateDF = self._stateDF.with_columns(
|
|
@@ -24,8 +24,8 @@ class K8sCommands(Commands):
|
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
26
|
params_opt_out = {
|
|
27
|
-
"stop": ["
|
|
28
|
-
"start": ["
|
|
27
|
+
"stop": ["commit"],
|
|
28
|
+
"start": ["commit"],
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
def __init__(
|
|
@@ -89,14 +89,14 @@ class K8sCommands(Commands):
|
|
|
89
89
|
f"kubectl delete -n {self.target} {pod_name}", skip_on_dryrun=True
|
|
90
90
|
)
|
|
91
91
|
|
|
92
|
-
def start(self, service_name,
|
|
92
|
+
def start(self, service_name, commit):
|
|
93
93
|
self._check_service(service_name)
|
|
94
94
|
shell.run_command(
|
|
95
95
|
f"kubectl scale -n {self.target} statefulset {service_name} --replicas=1",
|
|
96
96
|
skip_on_dryrun=True,
|
|
97
97
|
)
|
|
98
98
|
|
|
99
|
-
def stop(self, service_name,
|
|
99
|
+
def stop(self, service_name, commit):
|
|
100
100
|
self._check_service(service_name)
|
|
101
101
|
shell.run_command(
|
|
102
102
|
f"kubectl scale -n {self.target} statefulset {service_name} --replicas=0 ",
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/monitor.py
RENAMED
|
@@ -233,7 +233,7 @@ class IocTable(Widget):
|
|
|
233
233
|
|
|
234
234
|
self.commands = commands
|
|
235
235
|
self.running_only = running_only
|
|
236
|
-
self.iocs_df = self.commands._get_services(self.running_only)
|
|
236
|
+
self.iocs_df = self.commands._get_services(self.running_only) # noqa: SLF001
|
|
237
237
|
|
|
238
238
|
self._polling = True
|
|
239
239
|
self._poll_thread = Thread(target=self._poll_services)
|
|
@@ -244,7 +244,7 @@ class IocTable(Widget):
|
|
|
244
244
|
while self._polling:
|
|
245
245
|
# ioc list data table update loop
|
|
246
246
|
print()
|
|
247
|
-
self.iocs_df = self.commands._get_services(self.running_only)
|
|
247
|
+
self.iocs_df = self.commands._get_services(self.running_only) # noqa: SLF001
|
|
248
248
|
sleep(1.0)
|
|
249
249
|
|
|
250
250
|
def stop(self):
|
|
@@ -480,7 +480,7 @@ class MonitorApp(App):
|
|
|
480
480
|
ready = self._get_highlighted_cell("ready") == "True"
|
|
481
481
|
|
|
482
482
|
if ready:
|
|
483
|
-
command = self.commands._get_logs
|
|
483
|
+
command = self.commands._get_logs # noqa: SLF001
|
|
484
484
|
self.push_screen(LogsScreen(command, service_name))
|
|
485
485
|
|
|
486
486
|
def action_sort(self, col_name: str = "") -> None:
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: edge-containers-cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.2.0
|
|
4
4
|
Summary: CLI for deploying and managing epics containers IOCs and services
|
|
5
5
|
Author-email: Giles Knap <giles.knap@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -258,4 +258,3 @@ and perform the following::
|
|
|
258
258
|
|
|
259
259
|
pip install edge-containers-cli
|
|
260
260
|
ec --version
|
|
261
|
-
|
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
Dockerfile
|
|
5
5
|
LICENSE
|
|
6
6
|
README.md
|
|
7
|
-
catalog-info.yaml
|
|
8
7
|
pyproject.toml
|
|
9
8
|
.devcontainer/devcontainer.json
|
|
10
9
|
.github/CONTRIBUTING.md
|
|
11
10
|
.github/dependabot.yml
|
|
11
|
+
.github/ISSUE_TEMPLATE/bug_report.md
|
|
12
|
+
.github/ISSUE_TEMPLATE/issue.md
|
|
13
|
+
.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
|
|
12
14
|
.github/actions/install_requirements/action.yml
|
|
13
15
|
.github/pages/index.html
|
|
14
16
|
.github/pages/make_switcher.py
|
|
15
17
|
.github/workflows/_check.yml
|
|
16
|
-
.github/workflows/_container.yml
|
|
17
18
|
.github/workflows/_dist.yml
|
|
18
19
|
.github/workflows/_pypi.yml
|
|
19
20
|
.github/workflows/_release.yml
|
|
@@ -36,7 +36,7 @@ restart:
|
|
|
36
36
|
- cmd: argocd app delete-resource namespace/bl01t-ea-test-01 --kind StatefulSet
|
|
37
37
|
rsp: ""
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
start_commit:
|
|
40
40
|
- cmd: argocd app get namespace/bl01t -o yaml
|
|
41
41
|
rsp: |
|
|
42
42
|
spec:
|
|
@@ -56,13 +56,13 @@ start:
|
|
|
56
56
|
- cmd: argocd app unset namespace/bl01t -p ec_services.bl01t-ea-test-01.enabled
|
|
57
57
|
rsp: ""
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
start:
|
|
60
60
|
- cmd: argocd app set namespace/bl01t -p ec_services.bl01t-ea-test-01.enabled=True
|
|
61
61
|
rsp: ""
|
|
62
62
|
- cmd: argocd app sync namespace/bl01t --apply-out-of-sync-only
|
|
63
63
|
rsp: ""
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
stop_commit:
|
|
66
66
|
- cmd: argocd app get namespace/bl01t -o yaml
|
|
67
67
|
rsp: |
|
|
68
68
|
spec:
|
|
@@ -76,7 +76,7 @@ stop:
|
|
|
76
76
|
- cmd: argocd app unset namespace/bl01t -p ec_services.bl01t-ea-test-01.enabled
|
|
77
77
|
rsp: ""
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
stop:
|
|
80
80
|
- cmd: argocd app set namespace/bl01t -p ec_services.bl01t-ea-test-01.enabled=False
|
|
81
81
|
rsp: ""
|
|
82
82
|
- cmd: argocd app sync namespace/bl01t --apply-out-of-sync-only
|
|
@@ -19,28 +19,28 @@ def test_restart(mock_run, ARGOCD):
|
|
|
19
19
|
mock_run.run_cli("restart bl01t-ea-test-01")
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def
|
|
23
|
-
mock_run.set_seq(ARGOCD.checks + ARGOCD.
|
|
22
|
+
def test_start_commit(mock_run, ARGOCD, data: Path):
|
|
23
|
+
mock_run.set_seq(ARGOCD.checks + ARGOCD.start_commit)
|
|
24
24
|
TMPDIR.mkdir()
|
|
25
25
|
shutil.copytree(data / "bl01t-deployment/apps", TMPDIR / "apps")
|
|
26
|
-
mock_run.run_cli("start bl01t-ea-test-01")
|
|
26
|
+
mock_run.run_cli("start bl01t-ea-test-01 --commit")
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
def
|
|
30
|
-
mock_run.set_seq(ARGOCD.checks + ARGOCD.
|
|
31
|
-
mock_run.run_cli("start bl01t-ea-test-01
|
|
29
|
+
def test_start(mock_run, ARGOCD):
|
|
30
|
+
mock_run.set_seq(ARGOCD.checks + ARGOCD.start)
|
|
31
|
+
mock_run.run_cli("start bl01t-ea-test-01")
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
def
|
|
35
|
-
mock_run.set_seq(ARGOCD.checks + ARGOCD.
|
|
34
|
+
def test_stop_commit(mock_run, ARGOCD, data: Path):
|
|
35
|
+
mock_run.set_seq(ARGOCD.checks + ARGOCD.stop_commit)
|
|
36
36
|
TMPDIR.mkdir()
|
|
37
37
|
shutil.copytree(data / "bl01t-deployment/apps", TMPDIR / "apps")
|
|
38
|
-
mock_run.run_cli("stop bl01t-ea-test-01")
|
|
38
|
+
mock_run.run_cli("stop bl01t-ea-test-01 --commit")
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
def
|
|
42
|
-
mock_run.set_seq(ARGOCD.checks + ARGOCD.
|
|
43
|
-
mock_run.run_cli("stop bl01t-ea-test-01
|
|
41
|
+
def test_stop(mock_run, ARGOCD):
|
|
42
|
+
mock_run.set_seq(ARGOCD.checks + ARGOCD.stop)
|
|
43
|
+
mock_run.run_cli("stop bl01t-ea-test-01")
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
def test_ps(mock_run, ARGOCD):
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
on:
|
|
2
|
-
workflow_call:
|
|
3
|
-
|
|
4
|
-
jobs:
|
|
5
|
-
build:
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
|
|
8
|
-
steps:
|
|
9
|
-
- name: Checkout
|
|
10
|
-
uses: actions/checkout@v4
|
|
11
|
-
with:
|
|
12
|
-
# Need this to get version number from last tag
|
|
13
|
-
fetch-depth: 0
|
|
14
|
-
|
|
15
|
-
- name: Set up Docker Buildx
|
|
16
|
-
id: buildx
|
|
17
|
-
uses: docker/setup-buildx-action@v3
|
|
18
|
-
|
|
19
|
-
- name: Log in to GitHub Docker Registry
|
|
20
|
-
if: github.event_name != 'pull_request'
|
|
21
|
-
uses: docker/login-action@v3
|
|
22
|
-
with:
|
|
23
|
-
registry: ghcr.io
|
|
24
|
-
username: ${{ github.actor }}
|
|
25
|
-
password: ${{ secrets.GITHUB_TOKEN }}
|
|
26
|
-
|
|
27
|
-
- name: Build and export to Docker local cache
|
|
28
|
-
uses: docker/build-push-action@v5
|
|
29
|
-
with:
|
|
30
|
-
context: .
|
|
31
|
-
target: server
|
|
32
|
-
|
|
33
|
-
- name: Create tags for publishing image
|
|
34
|
-
id: meta
|
|
35
|
-
uses: docker/metadata-action@v5
|
|
36
|
-
with:
|
|
37
|
-
images: ghcr.io/${{ github.repository }}
|
|
38
|
-
tags: |
|
|
39
|
-
type=ref,event=tag
|
|
40
|
-
type=raw,value=latest
|
|
41
|
-
|
|
42
|
-
- name: Push cached image to container registry
|
|
43
|
-
if: github.ref_type == 'tag'
|
|
44
|
-
uses: docker/build-push-action@v5
|
|
45
|
-
# This does not build the image again, it will find the image in the
|
|
46
|
-
# Docker cache and publish it
|
|
47
|
-
with:
|
|
48
|
-
context: .
|
|
49
|
-
push: true
|
|
50
|
-
tags: ${{ steps.meta.outputs.tags }}
|
|
51
|
-
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# The devcontainer should use the developer target and run as root with podman
|
|
2
|
-
# or docker with user namespaces.
|
|
3
|
-
ARG PYTHON_VERSION=3.11
|
|
4
|
-
FROM python:${PYTHON_VERSION} as developer
|
|
5
|
-
|
|
6
|
-
# Add any system dependencies for the developer/build environment here
|
|
7
|
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
8
|
-
graphviz \
|
|
9
|
-
&& rm -rf /var/lib/apt/lists/*
|
|
10
|
-
|
|
11
|
-
# Set up a virtual environment and put it in PATH
|
|
12
|
-
RUN python -m venv /venv
|
|
13
|
-
ENV PATH=/venv/bin:$PATH
|
|
14
|
-
|
|
15
|
-
# The build stage installs the context into the venv
|
|
16
|
-
FROM developer as build
|
|
17
|
-
COPY . /context
|
|
18
|
-
WORKDIR /context
|
|
19
|
-
RUN pip install .
|
|
20
|
-
|
|
21
|
-
# The runtime stage copies the built venv into a slim runtime container
|
|
22
|
-
FROM python:${PYTHON_VERSION}-slim as server
|
|
23
|
-
# Add apt-get system dependecies for runtime here if needed
|
|
24
|
-
COPY --from=build /venv/ /venv/
|
|
25
|
-
ENV PATH=/venv/bin:$PATH
|
|
26
|
-
RUN pip install textual-dev
|
|
27
|
-
|
|
28
|
-
# change this entrypoint if it is not the same as the repo
|
|
29
|
-
ENTRYPOINT ["textual", "serve"] # Usage: "ec -b DEMO monitor" -p 8081
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
apiVersion: backstage.io/v1alpha1
|
|
2
|
-
kind: Component
|
|
3
|
-
metadata:
|
|
4
|
-
name: edge-containers-cli
|
|
5
|
-
title: edge-containers-cli
|
|
6
|
-
description: CLI for deploying and managing epics containers IOCs and services
|
|
7
|
-
spec:
|
|
8
|
-
type: documentation
|
|
9
|
-
lifecycle: experimental
|
|
10
|
-
owner: group:default/sscc
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/build-docs.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/contribute.rst
RENAMED
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/pin-requirements.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/run-tests.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/static-analysis.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/test-container.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/how-to/update-tools.rst
RENAMED
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/reference/standards.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/developer/tutorials/dev-install.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/explanations/docs-structure.rst
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/how-to/run-container.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/docs/user/tutorials/installation.rst
RENAMED
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/__init__.py
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/__main__.py
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/backend.py
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/__init__.py
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/cmds/helm.py
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/definitions.py
RENAMED
|
File without changes
|
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/globals.py
RENAMED
|
File without changes
|
{edge_containers_cli-4.1.1b0 → edge_containers_cli-4.2.0}/src/edge_containers_cli/logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|