You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2023/04/15 16:47:00 UTC
[jira] [Created] (QPID-8637) [qpid-cpp] Create Containerfile
Jiri Daněk created QPID-8637:
--------------------------------
Summary: [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
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org