-
Notifications
You must be signed in to change notification settings - Fork 14
MLE-14549 Support ARM Docker images #416
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
Open
vitalykorolev
wants to merge
3
commits into
marklogic:Docker-ARM-support
Choose a base branch
from
vitalykorolev:MLE-14549_Graviton-jenkins-agent
base: Docker-ARM-support
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+531
−74
Open
Changes from all commits
Commits
Show all changes
3 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| ############################################################### | ||
| # | ||
| # Copyright © 2018-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. | ||
| # | ||
| ############################################################### | ||
|
|
||
| FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7-1771346502 | ||
| LABEL "com.marklogic.maintainer"="docker@marklogic.com" | ||
|
|
||
| ############################################################### | ||
| # install libnsl rpm package | ||
| ############################################################### | ||
|
|
||
| RUN microdnf -y update \ | ||
| && rpm -i https://download.rockylinux.org/pub/rocky/9/BaseOS/aarch64/os/Packages/l/libnsl-2.34-231.el9_7.10.aarch64.rpm | ||
|
|
||
| ############################################################### | ||
| # install networking, base deps and tzdata for timezone | ||
| ############################################################### | ||
| # hadolint ignore=DL3006 | ||
| RUN echo "NETWORKING=yes" > /etc/sysconfig/network \ | ||
| && microdnf -y install --setopt install_weak_deps=0 gdb nss libtool-ltdl cpio tzdata util-linux hostname \ | ||
| && microdnf clean all | ||
|
|
||
|
|
||
| ############################################################### | ||
| # Enable FIPS Mode | ||
| ############################################################### | ||
| RUN update-crypto-policies --set FIPS |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,151 @@ | ||
| ############################################################### | ||
| # | ||
| # Copyright © 2018-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. | ||
| # | ||
| ############################################################### | ||
|
|
||
| ARG BASE_IMAGE=marklogic-ubi/marklogic-deps-ubi9-arm:11-internal | ||
| FROM ${BASE_IMAGE} AS builder | ||
|
|
||
| ############################################################### | ||
| # set build args | ||
| ############################################################### | ||
|
|
||
| ARG ML_RPM=marklogic.rpm | ||
| ARG ML_USER="marklogic_user" | ||
| ARG ML_VERSION=11-internal | ||
| ARG ML_CONVERTERS=marklogic.converters | ||
| #################################################### | ||
| # inject init, start and clustering scripts | ||
| ############################################################### | ||
|
|
||
| COPY scripts/start-marklogic.sh /usr/local/bin/start-marklogic.sh | ||
|
|
||
| ############################################################### | ||
| # install MarkLogic server, sudo, and remove mlcmd packages | ||
| ############################################################### | ||
| COPY ${ML_RPM} /tmp/marklogic-server.rpm | ||
| RUN rpm -i /tmp/marklogic-server.rpm \ | ||
| && rm /tmp/marklogic-server.rpm \ | ||
| && microdnf -y install --setopt install_weak_deps=0 sudo \ | ||
| && microdnf -y clean all \ | ||
| && rm -rf ./opt/MarkLogic/mlcmd/lib/* \ | ||
| && rm -rf ./opt/MarkLogic/mlcmd/ext/* | ||
|
|
||
| ############################################################### | ||
| # Add TINI to serve as PID 1 process | ||
| ############################################################### | ||
| ENV TINI_VERSION=v0.19.0 | ||
| ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-arm64 /tini | ||
| RUN chmod +x /tini | ||
|
|
||
| ############################################################### | ||
| # Copy converters package | ||
| ############################################################### | ||
| WORKDIR / | ||
| COPY ${ML_CONVERTERS} converters.rpm | ||
| ############################################################### | ||
| # create system user | ||
| ############################################################### | ||
|
|
||
| RUN adduser --gid users --uid 1000 ${ML_USER} \ | ||
| && echo ${ML_USER}" ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
|
|
||
| ############################################################### | ||
| # second stage for flattening layers | ||
| ############################################################### | ||
| FROM ${BASE_IMAGE} | ||
|
|
||
| COPY --from=builder / / | ||
|
|
||
| ARG ML_USER="marklogic_user" | ||
| ARG ML_VERSION=11-internal | ||
| ARG ML_DOCKER_VERSION=local | ||
| ARG BUILD_BRANCH=local | ||
| ARG ML_DOCKER_TYPE=ubi | ||
| ############################################################### | ||
| # define docker labels | ||
| ############################################################### | ||
|
|
||
| LABEL "com.marklogic.maintainer"="docker@marklogic.com" | ||
| LABEL "com.marklogic.name"="MarkLogic Server ${ML_VERSION}" | ||
| LABEL "com.marklogic.docker-version"="${ML_DOCKER_VERSION}" | ||
| LABEL "com.marklogic.release-version"="${ML_VERSION}" | ||
| LABEL "com.marklogic.build-branch"="${BUILD_BRANCH}" | ||
| LABEL "com.marklogic"="MarkLogic" | ||
| LABEL "com.marklogic.release-type"="production" | ||
| LABEL "com.marklogic.license"="MarkLogic EULA" | ||
| LABEL "com.marklogic.license.description"="By subscribing to this product, you agree to the terms and conditions outlined in MarkLogic's End User License Agreement (EULA) here https://developer.marklogic.com/eula " | ||
| LABEL "com.marklogic.license.url"="https://developer.marklogic.com/eula" | ||
| LABEL "com.marklogic.description"="MarkLogic is the only Enterprise NoSQL database. It is a new generation database built with a flexible data model to store, manage, and search JSON, XML, RDF, and more - without sacrificing enterprise features such as ACID transactions, certified security, backup, and recovery. With these capabilities, MarkLogic is ideally suited for making heterogeneous data integration simpler and faster, and for delivering dynamic content at massive scale. The current release of the MarkLogic Server Developer Docker image includes all features and is limited to developer use." | ||
| LABEL docker.cmd="docker run -it -p 7997-8010:7997-8010 -e MARKLOGIC_INIT=true -e MARKLOGIC_ADMIN_USERNAME=<INSERT USERNAME> -e MARKLOGIC_ADMIN_PASSWORD=<INSERT PASSWORD> --mount src=MarkLogic,dst=/var/opt/MarkLogic progressofficial/marklogic-db:${ML_VERSION}" | ||
|
|
||
| ############################################################### | ||
| # copy notice file | ||
| ############################################################### | ||
| COPY --chown=${ML_USER}:users NOTICE.txt /home/${ML_USER}/NOTICE.txt | ||
|
|
||
| ############################################################### | ||
| # set env vars | ||
| ############################################################### | ||
|
|
||
| ENV MARKLOGIC_INSTALL_DIR=/opt/MarkLogic \ | ||
| MARKLOGIC_DATA_DIR=/var/opt/MarkLogic \ | ||
| MARKLOGIC_USER=${ML_USER} \ | ||
| MARKLOGIC_PID_FILE=/var/run/MarkLogic.pid \ | ||
| MARKLOGIC_UMASK=022 \ | ||
| LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH:/opt/MarkLogic/lib \ | ||
| MARKLOGIC_VERSION="${ML_VERSION}" \ | ||
| MARKLOGIC_DOCKER_VERSION="${ML_DOCKER_VERSION}" \ | ||
| MARKLOGIC_IMAGE_TYPE="$ML_DOCKER_TYPE" \ | ||
| MARKLOGIC_BOOTSTRAP_HOST=bootstrap \ | ||
| MARKLOGIC_ADMIN_USERNAME_FILE=mldb_admin_user \ | ||
| MARKLOGIC_ADMIN_PASSWORD_FILE=mldb_password_user \ | ||
| MARKLOGIC_WALLET_PASSWORD_FILE=mldb_wallet_password \ | ||
| BUILD_BRANCH=${BUILD_BRANCH} \ | ||
| MARKLOGIC_JOIN_TLS_ENABLED=false \ | ||
| OVERWRITE_ML_CONF=true \ | ||
| MARKLOGIC_EC2_HOST=0 | ||
|
|
||
| ################################################################ | ||
| # Set Timezone | ||
| ################################################################ | ||
|
|
||
| RUN microdnf -y reinstall tzdata | ||
|
|
||
| ############################################################### | ||
| # Remove optional packages that have known vulnerabilities | ||
| ############################################################### | ||
| RUN for package in vim-minimal cups-client cups-libs tar python3-pip-wheel platform-python python3-libs platform-python-setuptools avahi-libs binutils expat libarchive python3 python3-libs python-unversioned-command binutils-gold; \ | ||
| do rpm -e --nodeps $package || true; \ | ||
| done; | ||
|
|
||
| ############################################################### | ||
| # expose MarkLogic server ports | ||
| ############################################################### | ||
|
|
||
| EXPOSE 25 7997-8010 | ||
|
|
||
| ############################################################### | ||
| # set system user | ||
| ############################################################### | ||
|
|
||
| USER ${ML_USER} | ||
|
|
||
| #################################################### | ||
| # Set Linux Language Settings | ||
| ############################################################### | ||
|
|
||
| ENV LANG=en_US.UTF-8 | ||
| ENV LC_ALL=C.UTF-8 | ||
|
|
||
| ############################################################### | ||
| # define volume for persistent MarkLogic server data | ||
| ############################################################### | ||
|
|
||
| VOLUME /var/opt/MarkLogic | ||
|
|
||
| ############################################################### | ||
| # set entrypoint | ||
| ############################################################### | ||
| ENTRYPOINT ["/tini", "--", "/usr/local/bin/start-marklogic.sh"] |
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
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.
Uh oh!
There was an error while loading. Please reload this page.