Skip to content

Commit

Permalink
Fix ivykis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth committed Jun 28, 2019
1 parent 951eb64 commit b8363c6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "package/syslog-ng"]
path = package/syslog-ng
url = https://github.com/balabit/syslog-ng.git
25 changes: 17 additions & 8 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
FROM registry.access.redhat.com/rhel7/rhel

ENV CONFIGURE_FLAGS="--prefix=/opt/syslog-ng --with-ivykis=internal --with-jsonc=system --disable-env-wrapper --disable-memtrace --enable-tcp-wrapper --disable-linux-caps --disable-man-pages --enable-all-modules --enable-force-gnu99 --enable-json --enable-native --enable-python --enable-http --enable-kafka --disable-java --disable-java-modules --disable-spoof_source --disable-sun_streams --disable-sql --disable-pacct --disable-mongodb --disable-amqp --disable-stomp --disable-redis --disable-systemd --disable-geoip --disable-geoip2 --disable-riemann --disable-smtp --disable-snmp_dest --with-python=3 --enable-dynamic-linking"
ENV CONFIGURE_FLAGS="--prefix=/opt/syslog-ng --with-ivykis=system --with-jsonc=system --disable-env-wrapper --disable-memtrace --enable-tcp-wrapper --disable-linux-caps --disable-man-pages --enable-all-modules --enable-force-gnu99 --enable-json --enable-native --enable-python --enable-http --enable-kafka --disable-java --disable-java-modules --disable-spoof_source --disable-sun_streams --disable-sql --disable-pacct --disable-mongodb --disable-amqp --disable-stomp --disable-redis --disable-systemd --disable-geoip --disable-geoip2 --disable-riemann --disable-smtp --disable-snmp_dest --with-python=3 --enable-dynamic-linking"

ENV DISTCHECK_CONFIGURE_FLAGS="--prefix=/opt/syslog-ng --with-ivykis=internal --with-jsonc=system --disable-env-wrapper --disable-memtrace --enable-tcp-wrapper --disable-linux-caps --disable-man-pages --enable-all-modules --enable-force-gnu99 --enable-json --enable-native --enable-python --enable-http --enable-kafka --disable-java --disable-java-modules --disable-spoof_source --disable-sun_streams --disable-sql --disable-pacct --disable-mongodb --disable-amqp --disable-stomp --disable-redis --disable-systemd --disable-geoip --disable-geoip2 --disable-riemann --disable-smtp --disable-snmp_dest --with-python=3 --enable-dynamic-linking"
ENV DISTCHECK_CONFIGURE_FLAGS="--prefix=/opt/syslog-ng --with-ivykis=system --with-jsonc=system --disable-env-wrapper --disable-memtrace --enable-tcp-wrapper --disable-linux-caps --disable-man-pages --enable-all-modules --enable-force-gnu99 --enable-json --enable-native --enable-python --enable-http --enable-kafka --disable-java --disable-java-modules --disable-spoof_source --disable-sun_streams --disable-sql --disable-pacct --disable-mongodb --disable-amqp --disable-stomp --disable-redis --disable-systemd --disable-geoip --disable-geoip2 --disable-riemann --disable-smtp --disable-snmp_dest --with-python=3 --enable-dynamic-linking"
COPY confluent.repo /etc/yum.repos.d/confluent.repo
RUN subscription-manager register --org=12579482 --activationkey=dev1 --force
RUN subscription-manager repos --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms --enable=rhel-server-rhscl-7-rpms
RUN subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
RUN yum install wget -y
RUN rpm --import https://packages.confluent.io/rpm/5.2/archive.key
RUN cd /tmp ;\
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ;\
yum install epel-release-latest-7.noarch.rpm -y ;\
rm epel-release-latest-7.noarch.rpm
RUN yum install findutils autoconf \
autoconf-archive automake ca-certificates git libtool pkgconfig bison byacc file \
flex pcre-devel glib2-devel openssl-devel librdkafka-devel libcurl-devel \
rh-python36 rh-python36-python-tools rh-python36-scldevel\
net-snmp-devel \
libuuid-devel cmake make libxslt docbook-style-xsl gcc-c++ tzdata libxml2 sqlite \
json-c-devel gnupg wget curl which bzip2 doxygen libsecret -y
json-c-devel gnupg wget curl which bzip2 doxygen libsecret ivykis-devel -y

RUN subscription-manager unregister

Expand All @@ -31,11 +36,10 @@ RUN CRITERION_VERSION=2.3.3 ;\
rm -rf /tmp/criterion.tar.bz2 /tmp/criterion-v${CRITERION_VERSION}


COPY syslog-ng /work

RUN source scl_source enable rh-python36 ;\
mkdir /work ;\
cd /work;\
git clone https://github.com/balabit/syslog-ng.git;\
cd syslog-ng;\
pip install -r requirements.txt ;\
./autogen.sh ;\
./configure $CONFIGURE_FLAGS ;\
Expand All @@ -46,9 +50,14 @@ FROM registry.access.redhat.com/ubi7/ubi

COPY confluent.repo /etc/yum.repos.d/confluent.repo

RUN rpm --import https://packages.confluent.io/rpm/5.2/archive.key ;\
RUN cd /tmp ;\
yum install -y wget ;\
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ;\
yum install epel-release-latest-7.noarch.rpm -y ;\
rm epel-release-latest-7.noarch.rpm ;\
rpm --import https://packages.confluent.io/rpm/5.2/archive.key ;\
yum install tzdata libdbi libsecret libxml2 sqlite tcp_wrappers librdkafka \
rh-python36 rh-python36-python-tools libcurl -y;\
rh-python36 rh-python36-python-tools libcurl ivykis -y;\
echo source scl_source enable rh-python36 >>/etc/profile.d/enablepython36.sh

COPY --from=0 /opt/syslog-ng /opt/syslog-ng
1 change: 1 addition & 0 deletions package/syslog-ng
Submodule syslog-ng added at 1742b1

0 comments on commit b8363c6

Please sign in to comment.