forked from telefonicaid/fiware-orion
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathDockerfile-ubi
More file actions
51 lines (37 loc) · 1.85 KB
/
Copy pathDockerfile-ubi
File metadata and controls
51 lines (37 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM fiware/orion-ld-base AS build-stage
ARG PATH_TO_SRC='/opt/orion/'
COPY . ${PATH_TO_SRC}
COPY ./docker/build.sh /tmp
WORKDIR ${PATH_TO_SRC}
RUN /tmp/build.sh -b
## --- Docker for deployment
FROM registry.access.redhat.com/ubi8/ubi
LABEL authors="Ken Zangelin - ken.zangelin@fiware.org, Jose Ignacio Carretero - joseignacio.carretero@fiware.org" \
description="Orion-LD is an NGSI-LD Context Broker which supports also the NGSI-v2 API." \
maintainer="ken.zangelin@fiware.org,joseignacio.carretero@fiware.org@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 /usr/lib/librdkafka* /usr/lib64/
COPY --from=build-stage /opt/orion/ldcontexts/ /opt/orion/ldcontexts/
COPY --from=build-stage /usr/lib/librdkafka* /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 -y --nogpgcheck install epel-release && \
dnf config-manager --set-enabled powertools && \
yum install -y libicu libpq5 boost tinyxml2 yaml-cpp && \
yum clean all && \
ldconfig
ENTRYPOINT ["orionld", "-fg", "-multiservice", "-ngsiv1Autocast"]
EXPOSE 1026