@IF [ ! -z "$M_dnsdist$M_all" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
- scl enable devtoolset-7 -- builder/helpers/build-specs.sh builder-support/specs/dnsdist.spec; \
+ true ; \
else \
mkdir /libh2o && cd /libh2o && \
yum install -y curl openssl-devel cmake && \
curl -L https://github.com/h2o/h2o/archive/v2.2.5.tar.gz | tar xz && \
CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.5 && \
make install && \
- cd /pdns && \
+ cd /pdns; \
+ fi
+
+RUN if $(grep -q 'release 6' /etc/redhat-release); then \
+ scl enable devtoolset-7 -- builder/helpers/build-specs.sh builder-support/specs/dnsdist.spec; \
+ else \
builder/helpers/build-specs.sh builder-support/specs/dnsdist.spec; \
fi
@ENDIF