paketo-buildpacks / github-config

Common repository configuration
Apache License 2.0
8 stars 12 forks source link

Setting up local registry functionality #955

Closed pacostas closed 2 months ago

pacostas commented 3 months ago

Summary

This pull request adds to test.sh the option to set up a local registry with crane. Specifically if a file called integration.json exists and it has an attribute called "setup_local_registy": true in it, then, the test.sh script will spawn a local registry on a random available port and export the registry url to an env variable called REGISTRY_URL to make it available for any program that might need to use it. After test.sh has finished, the local registry is being killed.

This is useful for two reasons:

The current implementation of creating a local registry has been copied over from the jammy-tiny-stack repo, with the only difference being that the create registry functionality has been moved to a commonplace, the to tools.sh file, as in the near future, it will be used by two scripts, the test.sh (which is currently used by the extension) and the receipts.sh (when the mutli-arch has been implemented for the stacks)

Testing

Use Cases

Checklist