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

Add redis container #1869

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add redis container #1869

wants to merge 3 commits into from

Conversation

cwh42
Copy link

@cwh42 cwh42 commented Oct 21, 2024

We need a redis container for our Private registry project.
Might be useful for others, too.

Is this the way to contribute new bci images?

Not so inspired by opensuse-redis-image.kiwi any more

@@ -484,3 +485,41 @@ def _get_nginx_kwargs(os_version: OsVersion):
)
for os_version in (OsVersion.TUMBLEWEED,)
]

REDIS_CONTAINERS = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally looks good to me. there are a couple of small changes still outstanding:

  • please move the REDIS_CONTAINERS definition to a src/bci_build/package/redis.py separate module instead. we're trying to slowly phase out appcontainers.py as a lumping collection of containers and instead have one module per container
  • consider creating a README.md.j2 under src/bci_build/package/redis/ with some description and usage instructions (I'm working on something similar for the valkey container, there is an open unfinished PR from me on that
  • potentially we have to convert this over to a multistage docker build, but that can be done as a followup, so it is only a NIT for now.

exposes_tcp=[6379],
build_recipe_type=BuildType.KIWI,
)
for os_version in ALL_NONBASE_OS_VERSIONS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik redis is dropped in SP7 and tumbleweed, so we should specify this only for SP6 for now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Then I am a bit late to the party.
Probably we should move to valkey soon

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