Onboard to distgen generated sources#381
Conversation
Use Jinja2 conditional to handle empty environment_setup properly. When environment_setup is empty (Fedora, C10S, RHEL10), generate 'RUN INSTALL_PKGS=...' instead of 'RUN \n INSTALL_PKGS=...' which caused build failures.
Changed from 'CMD $STI_SCRIPTS_PATH/usage' to 'CMD ["/usr/libexec/s2i/usage"]' to follow Docker best practices and prevent build warnings from breaking image ID extraction in build scripts.
|
Important Review skippedToo many files! This PR contains 187 files, which is 37 over the limit of 150. To get a review, narrow the scope: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (187)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pull Request validationFailed🔴 Failed or pending statuses:
🔴 Approval - missing or changes were requested Success🟢 Review - Reviewed by a member Triggered by Workflow Run |
|
[test] |
Testing Farm results
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
phracek
left a comment
There was a problem hiding this comment.
Thanks for this pull request. Great.
There is inverted logic.
See here: https://github.com/sclorg/postgresql-container/blob/master/manifest.yml#L47
| # This section is the last one on purpose because the generator.py | ||
| # does not allow dead symlinks. | ||
| SYMLINK_RULES: | ||
| - src: ../1.22/root |
| io.openshift.tags="builder,${NAME},${NAME}-${NGINX_SHORT_VER}" \ | ||
| com.redhat.component="${NAME}-${NGINX_SHORT_VER}-container" \ | ||
| name="{{ spec.org }}/${NAME}-${NGINX_SHORT_VER}-micro" \ | ||
| {% if spec.prod in ["rhel8", "rhel9", "c8s", "c9s"] %} |
There was a problem hiding this comment.
This is not need at all. Please delete it.
| FROM {{ spec.micro_build_base }} AS build | ||
|
|
||
| RUN mkdir -p /mnt/rootfs | ||
| {% if spec.prod == "rhel8" %} |
There was a problem hiding this comment.
Can we somehow make it more readable.
What about to add to multispec.yml more specification and use it there
| INSTALL_PKGS="$MICRO_PKGS nginx-core findutils hostname nss_wrapper-libs gettext " && \ | ||
| dnf install --installroot /mnt/rootfs $INSTALL_PKGS --releasever 36 --setopt install_weak_deps=false --nodocs -y && \ | ||
| INSTALL_PKGS="$MICRO_PKGS {{ spec.micro_pkgs }} " && \ | ||
| dnf --installroot /mnt/rootfs --releasever {{ spec.micro_releasever }} --setopt install_weak_deps=false --nodocs module enable nginx:{{ spec.version }} -y && \ |
There was a problem hiding this comment.
This is repeating. Let's make it easier. More it to multispec.yml
|
|
||
| Usage in OpenShift | ||
| ------------------ | ||
| In this example, we assume that you are using the `ubi9/nginx-{{ spec.short }}` image, available through the `nginx:{{ spec.version }}` imagestream tag in Openshift. |
There was a problem hiding this comment.
This file has hardcoded ubi9 multiple times.
No description provided.