forked from red-hat-storage/odf-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makefile: create a separate catalog image for deps
A separate catalog image will be used in the openshift CI Signed-off-by: Nitin Goyal <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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
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,26 @@ | ||
# The base image which contain rm and sed command | ||
FROM cirros as builder | ||
|
||
# Copy catalog files | ||
COPY catalog /configs | ||
|
||
# Remove odf bundle from the files | ||
RUN rm -f /configs/odf.yaml | ||
|
||
# Remove odf bundle details from the index file | ||
RUN sed -i '1,11d' /configs/index.yaml | ||
|
||
|
||
# The base image is expected to contain | ||
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe | ||
FROM quay.io/operator-framework/opm:v1.26.0 | ||
|
||
# Configure the entrypoint and command | ||
ENTRYPOINT ["/bin/opm"] | ||
CMD ["serve", "/configs"] | ||
|
||
# Copy declarative config root into image at /configs | ||
COPY --from=builder /configs /configs | ||
|
||
# Set DC-specific label for the location of the DC root directory in the image | ||
LABEL operators.operatorframework.io.index.configs.v1=/configs |
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