Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions pylib/__fix_import_paths.py

This file was deleted.

18 changes: 17 additions & 1 deletion release-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Make sure also that few minutes have passed and that public dashboard still does
Please see the parent folder's `README.md` for virtual environment setup.
Follow the whole *Contributing* section to the letter.

### Running the reconciler in dry-run mode:
### Running the reconciler in dry-run mode

```sh
bazel run //release-controller:release-controller -- --dry-run --verbose
Expand Down Expand Up @@ -201,6 +201,22 @@ canister. It is useful (in conjunction with an empty reconciler state folder)
to make the reconciler do all the work of submitting proposals again. It should
not be used without `--dry-run`, to avoid submitting proposals twice.

### Running the reconciler in the container it ships

You can load the reconciler into your local podman or docker system:

```sh
bazel run //release-controller:oci_image_load
```

This will spit out a SHA256 sum, which is the name of the container image just
built and imported into your containerization system. Run it as follows:

```sh
SHASUM=...
podman run -it --entrypoint=/release-controller/release-controller $SHASUM
```

### Tests

#### Unit tests
Expand Down
1 change: 0 additions & 1 deletion release-controller/reconciler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import urllib.parse

sys.path.append(os.path.join(os.path.dirname(__file__)))
import __fix_import_paths # isort:skip # noqa: F401 # pylint: disable=W0611
import dre_cli
import dryrun
import release_index
Expand Down
9 changes: 8 additions & 1 deletion tools/python/py_oci_image.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@aspect_bazel_lib//lib:tar.bzl", "mtree_spec", "tar")
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push")
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push", "oci_load")

# match *only* external repositories that have the string "python"
# e.g. this will match
Expand Down Expand Up @@ -76,6 +76,13 @@ def py_oci_image(name, binary, tars = [], **kwargs):
**kwargs
)

oci_load(
name = "{}_load_locally".format(name),
image = name,
repo_tags = [],
tags = ["manual"],
)

binary_label = native.package_relative_label(binary)
oci_push(
name = "{}_push".format(name),
Expand Down