Skip to content
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

Improvements in Dockerfile #1701

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions docker/Dockerfile-ubi
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,33 @@ RUN /tmp/build.sh -b
FROM registry.access.redhat.com/ubi8/ubi

LABEL authors="Ken Zangelin - [email protected], Jose Ignacio Carretero - [email protected]" \
description="Orion-LD is a Context Broker which supports both the NGSI-LD and the NGSI-v2 APIs." \
description="Orion-LD is an NGSI-LD Context Broker which supports also the NGSI-v2 API." \
maintainer="[email protected],[email protected]@fiware.org" \
vendor="FIWARE Foundation e.V." \
documentation="https://github.com/FIWARE/context.Orion-LD/tree/develop/doc" \
name="FIWARE Orion-LD" \
summary="Contains Orion-LD context broker."


COPY --from=build-stage /etc/ssl/ /etc/ssl/
RUN true
COPY --from=build-stage /usr/bin/orionld /usr/bin
COPY --from=build-stage /usr/local/lib/* /usr/lib64/
COPY --from=build-stage /usr/local/lib64/* /usr/lib64/
COPY --from=build-stage /opt/orion/ldcontexts/ /opt/orion/ldcontexts/
COPY --from=build-stage /usr/lib64/libtinyxml2.so.6 /usr/lib64/
COPY --from=build-stage /usr/lib64/libtinyxml2.so /usr/lib64/
COPY --from=build-stage /usr/lib64/libyaml-cpp.so.0.6 /usr/lib64/
COPY --from=build-stage /usr/lib64/libyaml-cpp.so /usr/lib64/

COPY docker/other-places.repo /etc/yum.repos.d/
COPY docker/ubi.repo /etc/yum.repos.d/

COPY ./docker/subscription-manager.conf /etc/yum/pluginconf.d/subscription-manager.conf

RUN cd /etc/pki/rpm-gpg && \
curl -O https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && \
yum -y --nogpgcheck install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm && \
dnf -y module disable postgresql && \
yum install -y libicu libpq5 boost && \
yum -y --nogpgcheck install epel-release && \
dnf config-manager --set-enabled powertools && \
yum install -y libicu libpq5 boost tinyxml2 yaml-cpp && \
yum clean all


ENTRYPOINT ["orionld", "-fg", "-multiservice", "-ngsiv1Autocast"]

EXPOSE 1026
Loading