-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate crc-builder-installer strategy to deliverest
The current stratgy for crc-builder-installer had its own logic to run the builder scripts remotely. That logic was created before deliverest exists, as now we prefer to maintain it only from one project this commit remove legacy logic and move to use deliverest as base to run scripts remotely Signed-off-by: Adrian Riobo <[email protected]>
- Loading branch information
1 parent
4eb78ab
commit 717d6e2
Showing
9 changed files
with
276 additions
and
454 deletions.
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 |
---|---|---|
|
@@ -3,26 +3,23 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal as preparer | |
ARG OS | ||
ENV OS ${OS} | ||
|
||
COPY lib/${OS}/builder/* /usr/local/crc-builder/ | ||
COPY lib/${OS}/entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
RUN cd /usr/local/crc-builder && \ | ||
RUN cd /tmp && \ | ||
if [[ ${OS} == 'windows' ]]; then \ | ||
curl -k -LO https://dl.minio.io/client/mc/release/windows-amd64/mc.exe; \ | ||
else \ | ||
curl -k -LO https://dl.min.io/client/mc/release/darwin-amd64/mc; \ | ||
chmod +x mc; \ | ||
fi; | ||
|
||
#v0.0.6 | ||
FROM quay.io/rhqp/deliverest@sha256:016f766cac1bb644e1415b1ebb34504394ba0806d52679a55a0ef1162edabb47 | ||
|
||
FROM quay.io/rhqp/support-tools:v0.0.2 | ||
|
||
LABEL org.opencontainers.image.authors="CodeReady Containers <[email protected]>" | ||
LABEL org.opencontainers.image.authors="CRCQE <[email protected]>" | ||
|
||
ENV PLATFORM ${PLATFORM} | ||
ENV BUILDER_RESOURCES "/usr/local/crc-builder" | ||
ARG OS | ||
|
||
COPY --from=preparer /usr/local/crc-builder ${BUILDER_RESOURCES} | ||
COPY --from=preparer /usr/local/bin/entrypoint.sh /usr/local/bin | ||
COPY lib/common.sh /usr/local/bin | ||
ENV ASSETS_FOLDER=/opt/crc-builder \ | ||
OS=${OS} | ||
|
||
ENTRYPOINT entrypoint.sh | ||
COPY --from=preparer /tmp/* ${ASSETS_FOLDER}/ | ||
COPY lib/${OS}/* ${ASSETS_FOLDER}/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.