Skip to content

cbsbuild run local#33

Open
UweSchwaeke wants to merge 6 commits intoclyso:mainfrom
UweSchwaeke:wip-cbsbuild-run-local
Open

cbsbuild run local#33
UweSchwaeke wants to merge 6 commits intoclyso:mainfrom
UweSchwaeke:wip-cbsbuild-run-local

Conversation

@UweSchwaeke
Copy link
Collaborator

  • what:
    bypass the s3 upload and use the local filesystem as a repository instead.

  • why:
    to support test cases and local builds intended solely for testing purposes.

@UweSchwaeke UweSchwaeke force-pushed the wip-cbsbuild-run-local branch 13 times, most recently from 2225c81 to c0d732e Compare March 3, 2026 07:11
* what:
  if the return code of the rpm process is 2, check if the failure
  reason is that the package is already installed.

* why:
  when reusing a container, the package might already be present.
  this occurs when a build runner job must be debugged.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  add option --tls-verify to subcommands build and runner build.
  pass the tls-verify flag to skopeo when querying the registry.
  check if the return value from skopeo inspect equals
  "not found" (exit code 2).

* why:
  if the image is pushed to a local container registry with a
  self-signed certificate, skopeo must not verify the certificate
  to avoid errors. current versions of skopeo (1.20.0) return exit
  code 2 if an image is not found.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  pass the tls-verify flag to buildah when pushing to the registry.

* why:
  if the image is pushed to a local container registry with a
  self-signed certificate, buildah must skip certificate verification
  to avoid errors

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what
  pass base_url (schema + authority) and gpg signing options to the build
  script.
  replace base_url in container.yaml with the local url or the s3 url.
  mount the folders containing the rpms using buildah when building
  locally.

* why
  to build an image for testing purposes without deploying rpms to the
  production environment, it is necessary to mock the remote storage.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  add a --dev flag, which can also be set via an environment variable,
  to allow http git urls.

* why:
  during development and testing, the bootstrapped gitea server does not
  have a trusted certificate, making http necessary.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
* what:
  add an integration test structure to the root project.
  add a resources folder inside the test directory.
  add an integration test for the cbscore build.

* why:
  integration tests should be kept as global as possible.
  the test ensures the build process works correctly for local builds.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
@UweSchwaeke UweSchwaeke force-pushed the wip-cbsbuild-run-local branch from c0d732e to 2c4535f Compare March 9, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant