-
Notifications
You must be signed in to change notification settings - Fork 46
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
Podvm builder dockerfile #517
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:9.5-1736404036 | ||
|
||
# azure-podvm-image-handler.sh script under /scripts/azure-podvm-image-handler.sh | ||
# aws-podvm-image-handler.sh script under /scripts/aws-podvm-image-handler.sh | ||
# sources for cloud-api-adaptor under /src/cloud-api-adaptor | ||
# The podvm binaries are expected to be under /payload/podvm-binaries.tar.gz | ||
# Binaries like kubectl, packer and yq under /usr/local/bin will be installed by the scripts | ||
|
||
|
||
LABEL kata_src=https://github.com/openshift/kata-containers | ||
LABEL kata_src_commit=osc-release | ||
|
||
ARG ORG_ID | ||
ARG ACTIVATION_KEY | ||
|
||
RUN mkdir -p /scripts | ||
|
||
ADD lib.sh libvirt-podvm-image-handler.sh aws-podvm-image-handler.sh azure-podvm-image-handler.sh /scripts/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably this will conflict with #519 but I can handle on my side. Just adding a note so we (I) don't forget :) |
||
|
||
RUN /scripts/azure-podvm-image-handler.sh -- install_rpms | ||
|
||
ARG CAA_SRC=https://github.com/openshift/cloud-api-adaptor | ||
ARG CAA_REF=osc-release | ||
ARG CERT_RPM | ||
|
||
|
||
ENV CAA_SRC=$CAA_SRC | ||
ENV CAA_REF=$CAA_REF | ||
ENV CERT_RPM=$CERT_RPM | ||
|
||
RUN if [[ -n "$CERT_RPM" ]] ; then \ | ||
dnf install -y $CERT_RPM ; \ | ||
fi | ||
|
||
|
||
RUN git clone ${CAA_SRC} -b ${CAA_REF} /src/cloud-api-adaptor | ||
|
||
ADD podvm-builder.sh /podvm-builder.sh | ||
|
||
ENTRYPOINT ["/podvm-builder.sh"] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the subscription code that was here... I'm not familiar on how konflux handles this (maybe @spotlesstofu).
But, I was wondering if something like this would work:
Not sure if the konflux already exposes any variable, but if not, maybe we can configure those variables within the tekton folder. This way we could avoid having two dockerfiles. Wdyt?