-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update default scaffolded opm base image
- Change default base image scaffolded during `opm index` and `opm alpha generate dockerfile` to `quay.io/operator-framework/opm:latest` - update opm-example.Dockerfile to reflect this change (and to focus on file-based configs rather than sqlite databases) Signed-off-by: Joe Lanford <[email protected]>
- Loading branch information
1 parent
a0bb1e5
commit 07c8880
Showing
3 changed files
with
17 additions
and
14 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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
FROM quay.io/operator-framework/upstream-opm-builder AS builder | ||
# The base image is expected to contain | ||
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe | ||
FROM quay.io/operator-framework/opm:latest | ||
|
||
FROM scratch | ||
LABEL operators.operatorframework.io.index.database.v1=./index.db | ||
COPY ["nsswitch.conf", "/etc/nsswitch.conf"] | ||
COPY database ./ | ||
COPY --from=builder /bin/opm /opm | ||
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe | ||
EXPOSE 50051 | ||
ENTRYPOINT ["/opm"] | ||
CMD ["registry", "serve", "--database", "index.db"] | ||
# Configure the entrypoint and command | ||
ENTRYPOINT ["/bin/opm"] | ||
CMD ["serve", "/configs"] | ||
|
||
# Copy declarative config root into image at /configs | ||
ADD index /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
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