[
https://issues.apache.org/jira/browse/QPID-8637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18073772#comment-18073772
]
ASF GitHub Bot commented on QPID-8637:
--------------------------------------
gemmellr closed pull request #40: QPID-8637: add Containerfile based on CentOS
Stream 9
URL: https://github.com/apache/qpid-cpp/pull/40
> [qpid-cpp] Create Containerfile
> -------------------------------
>
> Key: QPID-8637
> URL: https://issues.apache.org/jira/browse/QPID-8637
> Project: Qpid
> Issue Type: Improvement
> Reporter: Jiri Daněk
> Priority: Major
>
> Ideally, this should be multistage build
> (https://docs.docker.com/build/building/multi-stage/). Currently such build
> is hard to create because parts of the CMake build script don't respect the
> DESTDIR variable. Therefore single stage build is necessary for now.
> Second stage could look something like
> {code}
> # TODO: might make sense to use UBI 9 here
> FROM quay.io/centos/centos:stream9
> ARG datadir
> ENV QPID_DATA_DIR=${datadir:-/home/runner/qpid_data}
> RUN dnf -y install epel-release 'dnf-command(config-manager)' \
> && dnf config-manager --set-enabled crb \
> && dnf -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install \
> glibc \
> boost boost-filesystem boost-program-options \
> xerces-c \
> rdma-core \
> libdb libdb-cxx libaio \
> qpid-proton-c \
> perl python3 ruby \
> libuuid nss nss-tools nspr cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain
> cyrus-sasl-md5 cyrus-sasl-gssapi \
> gettext hostname iputils \
> shadow-utils \
> && dnf clean all
> RUN useradd --uid 10000 runner
> WORKDIR /
> COPY --from=builder /image /
> # RUN mkdir -p ${QPID_DATA_DIR}
> # RUN chown 10000 ${QPID_DATA_DIR}
> # VOLUME ${QPID_DATA_DIR}
> # USER 10000
> EXPOSE 5672
> CMD ["/usr/local/sbin/qpidd"]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]