-
Notifications
You must be signed in to change notification settings - Fork 31
Release MCK version 1.3.0, after HELP fix #406
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2171958
Release MCK version 1.3.0, after HELP fix
viveksinghggits 99eee1a
Remove MDB search related image
viveksinghggits b33d6cf
Add dockefiles to public dir
viveksinghggits 2f1b239
Run precommit after removing mdb related image
viveksinghggits b39d269
Add dockerfile for mongodb-kubernetes
viveksinghggits 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
71 changes: 71 additions & 0 deletions
71
public/dockerfiles/mongodb-kubernetes-database/1.3.0/ubi/Dockerfile
This file contains hidden or 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,71 @@ | ||
| FROM scratch AS base | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-database/LICENSE /data/licenses/mongodb-kubernetes-database | ||
|
|
||
| FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
|
||
| ENV MMS_HOME=/mongodb-automation | ||
| ENV MMS_LOG_DIR=/var/log/mongodb-mms-automation | ||
|
|
||
| RUN microdnf update -y && rm -rf /var/cache/yum | ||
|
|
||
| # these are the packages needed for the agent | ||
| RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper | ||
| RUN microdnf install -y --disableplugin=subscription-manager \ | ||
| hostname \ | ||
| procps | ||
|
|
||
| # these are the packages needed for MongoDB | ||
| # (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab) | ||
| RUN microdnf install -y --disableplugin=subscription-manager \ | ||
| cyrus-sasl \ | ||
| cyrus-sasl-gssapi \ | ||
| cyrus-sasl-plain \ | ||
| krb5-libs \ | ||
| libcurl \ | ||
| lm_sensors-libs \ | ||
| net-snmp \ | ||
| net-snmp-agent-libs \ | ||
| openldap \ | ||
| openssl \ | ||
| jq \ | ||
| tar \ | ||
| xz-libs \ | ||
| findutils | ||
|
|
||
| RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2 | ||
|
|
||
| # Set the required perms | ||
| RUN mkdir -p "${MMS_LOG_DIR}" \ | ||
| && chmod 0775 "${MMS_LOG_DIR}" \ | ||
| && mkdir -p /var/lib/mongodb-mms-automation \ | ||
| && chmod 0775 /var/lib/mongodb-mms-automation \ | ||
| && mkdir -p /data \ | ||
| && chmod 0775 /data \ | ||
| && mkdir -p /journal \ | ||
| && chmod 0775 /journal \ | ||
| && mkdir -p "${MMS_HOME}" \ | ||
| && chmod -R 0775 "${MMS_HOME}" | ||
|
|
||
| ARG VERSION | ||
|
|
||
| LABEL name="MongoDB Kubernetes Database" \ | ||
| version="${VERSION}" \ | ||
| summary="MongoDB Kubernetes Database Image" \ | ||
| description="MongoDB Kubernetes Database Image" \ | ||
| vendor="MongoDB" \ | ||
| release="1" \ | ||
| maintainer="[email protected]" | ||
|
|
||
| # USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well | ||
| # It does not matter what number it is, as long as it is set to something. | ||
| # However, OpenShift will run the container as a random user, | ||
| # and the number in this configuration is not relevant. | ||
| USER 2000 | ||
|
|
||
| # The docker image doesn't have any scripts so by default does nothing | ||
| # The script will be copied in runtime from init containers and the operator is expected | ||
| # to override the COMMAND | ||
| ENTRYPOINT ["sleep infinity"] | ||
|
|
||
| COPY --from=base /data/licenses/mongodb-kubernetes-database /licenses/mongodb-kubernetes-database |
82 changes: 82 additions & 0 deletions
82
public/dockerfiles/mongodb-kubernetes-init-appdb/1.3.0/ubi/Dockerfile
This file contains hidden or 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,82 @@ | ||
| FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi8/ubi-minimal AS tools_downloader | ||
|
|
||
| ARG mongodb_tools_url | ||
| ARG mongodb_tools_version_s390x | ||
| ARG mongodb_tools_version_ppc64le | ||
| ARG mongodb_tools_version_amd64 | ||
| ARG mongodb_tools_version_arm64 | ||
|
|
||
| RUN microdnf -y update --nodocs \ | ||
| && microdnf -y install --nodocs tar gzip curl \ | ||
| && microdnf clean all | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| "linux/amd64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_amd64} ;; \ | ||
| "linux/arm64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_arm64} ;; \ | ||
| "linux/s390x") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_s390x} ;; \ | ||
| "linux/ppc64le") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_ppc64le} ;; \ | ||
| esac \ | ||
| && mkdir -p /tools \ | ||
| && if [ -n "$MONGODB_TOOLS_VERSION" ]; then \ | ||
| curl -o /tools/mongodb_tools.tgz "${mongodb_tools_url}/${MONGODB_TOOLS_VERSION}"; \ | ||
| fi | ||
|
|
||
| RUN if [ -f "/tools/mongodb_tools.tgz" ]; then \ | ||
| tar xfz /tools/mongodb_tools.tgz --directory /tools \ | ||
| && rm /tools/mongodb_tools.tgz; \ | ||
| fi | ||
|
|
||
| FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.24 AS readiness_builder | ||
|
|
||
| WORKDIR /go/src/github.com/mongodb/mongodb-kubernetes/ | ||
|
|
||
| COPY go.mod go.sum ./ | ||
|
|
||
| RUN go mod download | ||
|
|
||
| COPY mongodb-community-operator ./mongodb-community-operator | ||
|
|
||
| ARG TARGETOS | ||
| ARG TARGETARCH | ||
| RUN CGO_ENABLED=0 GOFLAGS=-buildvcs=false GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /readinessprobe ./mongodb-community-operator/cmd/readiness/main.go | ||
| RUN CGO_ENABLED=0 GOFLAGS=-buildvcs=false GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /version-upgrade-hook ./mongodb-community-operator/cmd/versionhook/main.go | ||
|
|
||
| FROM scratch AS base | ||
|
|
||
| COPY --from=readiness_builder /readinessprobe /data/readinessprobe | ||
| COPY --from=readiness_builder /version-upgrade-hook /data/version-upgrade-hook | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-init-database/content/probe.sh /data/probe.sh | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-init-database/content/agent-launcher-lib.sh /data/scripts/ | ||
| COPY ./docker/mongodb-kubernetes-init-database/content/agent-launcher.sh /data/scripts/ | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /data/licenses/ | ||
|
|
||
| FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
|
||
| # Copy the extracted tools from the downloader stage (tools are already extracted there) | ||
| COPY --from=tools_downloader /tools/ /tools/ | ||
|
|
||
| COPY --from=base /data/readinessprobe /probes/readinessprobe | ||
| COPY --from=base /data/probe.sh /probes/probe.sh | ||
| COPY --from=base /data/scripts/ /scripts/ | ||
| COPY --from=base /data/licenses /licenses/ | ||
| COPY --from=base /data/version-upgrade-hook /probes/version-upgrade-hook | ||
|
|
||
| RUN microdnf -y update --nodocs \ | ||
| && microdnf -y install --nodocs tar gzip \ | ||
| && microdnf clean all | ||
|
|
||
| ARG version | ||
| LABEL name="MongoDB Kubernetes Init AppDB" \ | ||
| version="mongodb-kubernetes-init-appdb-${version}" \ | ||
| summary="MongoDB Kubernetes AppDB Init Image" \ | ||
| description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \ | ||
| release="1" \ | ||
| vendor="MongoDB" \ | ||
| maintainer="[email protected]" | ||
|
|
||
| USER 2000 | ||
|
|
||
| ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ] |
81 changes: 81 additions & 0 deletions
81
public/dockerfiles/mongodb-kubernetes-init-database/1.3.0/ubi/Dockerfile
This file contains hidden or 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,81 @@ | ||
| FROM --platform=${BUILDPLATFORM} registry.access.redhat.com/ubi8/ubi-minimal AS tools_downloader | ||
|
|
||
| ARG mongodb_tools_url | ||
| ARG mongodb_tools_version_s390x | ||
| ARG mongodb_tools_version_ppc64le | ||
| ARG mongodb_tools_version_amd64 | ||
| ARG mongodb_tools_version_arm64 | ||
|
|
||
| RUN microdnf -y update --nodocs \ | ||
| && microdnf -y install --nodocs tar gzip curl \ | ||
| && microdnf clean all | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| "linux/amd64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_amd64} ;; \ | ||
| "linux/arm64") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_arm64} ;; \ | ||
| "linux/s390x") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_s390x} ;; \ | ||
| "linux/ppc64le") export MONGODB_TOOLS_VERSION=${mongodb_tools_version_ppc64le} ;; \ | ||
| esac \ | ||
| && mkdir -p /tools \ | ||
| && if [ -n "$MONGODB_TOOLS_VERSION" ]; then \ | ||
| curl -o /tools/mongodb_tools.tgz "${mongodb_tools_url}/${MONGODB_TOOLS_VERSION}"; \ | ||
| fi | ||
|
|
||
| RUN if [ -f "/tools/mongodb_tools.tgz" ]; then \ | ||
| tar xfz /tools/mongodb_tools.tgz --directory /tools \ | ||
| && rm /tools/mongodb_tools.tgz; \ | ||
| fi | ||
|
|
||
| FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.24 AS readiness_builder | ||
|
|
||
| WORKDIR /go/src/github.com/mongodb/mongodb-kubernetes/ | ||
|
|
||
| COPY go.mod go.sum ./ | ||
|
|
||
| RUN go mod download | ||
|
|
||
| COPY mongodb-community-operator ./mongodb-community-operator | ||
|
|
||
| ARG TARGETOS | ||
| ARG TARGETARCH | ||
| RUN CGO_ENABLED=0 GOFLAGS=-buildvcs=false GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /readinessprobe ./mongodb-community-operator/cmd/readiness/main.go | ||
| RUN CGO_ENABLED=0 GOFLAGS=-buildvcs=false GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /version-upgrade-hook ./mongodb-community-operator/cmd/versionhook/main.go | ||
|
|
||
| FROM scratch AS base | ||
|
|
||
| COPY --from=readiness_builder /readinessprobe /data/readinessprobe | ||
| COPY --from=readiness_builder /version-upgrade-hook /data/version-upgrade-hook | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-init-database/content/probe.sh /data/probe.sh | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-init-database/content/agent-launcher-lib.sh /data/scripts/ | ||
| COPY ./docker/mongodb-kubernetes-init-database/content/agent-launcher.sh /data/scripts/ | ||
|
|
||
| COPY ./docker/mongodb-kubernetes-init-database/content/LICENSE /data/licenses/ | ||
|
|
||
| FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
|
||
| # Copy the extracted tools from the downloader stage (tools are already extracted there) | ||
| COPY --from=tools_downloader /tools/ /tools/ | ||
|
|
||
| COPY --from=base /data/readinessprobe /probes/readinessprobe | ||
| COPY --from=base /data/probe.sh /probes/probe.sh | ||
| COPY --from=base /data/scripts/ /scripts/ | ||
| COPY --from=base /data/licenses /licenses/ | ||
|
|
||
| RUN microdnf -y update --nodocs \ | ||
| && microdnf -y install --nodocs tar gzip \ | ||
| && microdnf clean all | ||
|
|
||
| ARG version | ||
| LABEL name="MongoDB Kubernetes Init Database" \ | ||
| version="mongodb-kubernetes-init-database-${version}" \ | ||
| summary="MongoDB Kubernetes Database Init Image" \ | ||
| description="Startup Scripts for MongoDB Enterprise Database" \ | ||
| release="1" \ | ||
| vendor="MongoDB" \ | ||
| maintainer="[email protected]" | ||
|
|
||
| USER 2000 | ||
|
|
||
| ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ] |
Oops, something went wrong.
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.
we are missing
mongodb-kubernetesDockerfileThere 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.
Thank you @MaciejKaras. This what the problem #410 because of which this the file was not added. I will add the file and then merge the PR.