|
17 | 17 | # under the License.
|
18 | 18 | #
|
19 | 19 |
|
| 20 | +FROM registry.access.redhat.com/ubi8/ubi:latest as builder |
| 21 | + |
| 22 | +RUN dnf -y --setopt=tsflags=nodocs install \ |
| 23 | + http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-4.el8.noarch.rpm \ |
| 24 | + http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-4.el8.noarch.rpm \ |
| 25 | + && dnf -y --setopt=tsflags=nodocs install epel-release \ |
| 26 | + && dnf config-manager --set-enabled powertools \ |
| 27 | + && dnf clean all |
| 28 | + |
| 29 | +RUN dnf -y --setopt=tsflags=nodocs install gcc gcc-c++ make cmake cyrus-sasl-devel openssl-devel libuuid-devel swig wget patch findutils git valgrind libwebsockets-devel python3-devel libnghttp2-devel && dnf clean all -y |
| 30 | +WORKDIR /build |
| 31 | +COPY . . |
| 32 | +ENV PROTON_VERSION=0.36.0 |
| 33 | +ENV PROTON_SOURCE_URL=${PROTON_SOURCE_URL:-http://archive.apache.org/dist/qpid/proton/${PROTON_VERSION}/qpid-proton-${PROTON_VERSION}.tar.gz} |
| 34 | +RUN .github/scripts/compile.sh |
| 35 | + |
| 36 | + |
20 | 37 | FROM registry.access.redhat.com/ubi8/ubi:latest
|
21 | 38 |
|
| 39 | +RUN dnf -y --setopt=tsflags=nodocs update \ |
| 40 | + && dnf -y --setopt=tsflags=nodocs install \ |
| 41 | + http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-4.el8.noarch.rpm \ |
| 42 | + http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-4.el8.noarch.rpm \ |
| 43 | + && dnf -y --setopt=tsflags=nodocs install epel-release \ |
| 44 | + && dnf config-manager --set-enabled powertools \ |
| 45 | + && dnf clean all |
| 46 | + |
| 47 | +# gdb and valgrind are part of final image as they can be used as debug options for Skupper |
| 48 | +RUN dnf -y --setopt=tsflags=nodocs install glibc cyrus-sasl-lib cyrus-sasl-plain cyrus-sasl-gssapi libuuid openssl gettext hostname iputils python3 libwebsockets libnghttp2 gdb valgrind && dnf clean all |
| 49 | + |
| 50 | +WORKDIR / |
| 51 | +COPY --from=builder /qpid-proton-image.tar.gz /skupper-router-image.tar.gz / |
| 52 | +RUN tar zxpf qpid-proton-image.tar.gz && tar zxpf skupper-router-image.tar.gz && rm -f /qpid-proton-image.tar.gz /skupper-router-image.tar.gz |
| 53 | + |
| 54 | +WORKDIR /home/qdrouterd/etc |
| 55 | +WORKDIR /home/qdrouterd/bin |
| 56 | +COPY ./scripts/* /home/qdrouterd/bin/ |
| 57 | + |
22 | 58 | ARG version=latest
|
23 | 59 | ENV VERSION=${version}
|
24 | 60 | ENV QDROUTERD_HOME=/home/qdrouterd
|
|
0 commit comments