Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare testdata for "apko on top of base image" #1076

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

sfc-gh-mhazy
Copy link
Contributor

Overview

  • Added more packages and split them into 2 repositories to simulate one being private.
  • Prepared base image that uses packages from both repositories
  • Refreshed preexisting testdata.

Context

#806

The package dependency graph is the following

(repo 1)  baselayout <---- replayout
              ^
              |
(repo 2)  package-x  <---- package-y

The base image apko build declares package-y, so after resolving, image contains package-y, package-x and baselayout

In the future the "top" image will be on top of base and will add replayout.

Commands for testdata generation

In base_packages directory:

melange build package-y.melange.yaml --signing-key=private_pkg_key.rsa
melange build package-x.melange.yaml --signing-key=private_pkg_key.rsa

In testdata directory:

apko build base_image.apko.yaml golden:latest base_image/

Signed-off-by: Mateusz Hazy <mateusz.hazy@snowflake.com>
@sfc-gh-mhazy sfc-gh-mhazy marked this pull request as ready for review March 25, 2024 16:02
@sfc-gh-mhazy
Copy link
Contributor Author

@jonjohnsonjr mind taking a look?

@imjasonh imjasonh merged commit a8177e8 into chainguard-dev:main Apr 8, 2024
20 checks passed
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.

2 participants