You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN if [ -z "$FLB_SRC" ] ; then wget -q -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} && unzip "fluent-bit-$FLB_VERSION.zip" ; else tar zxfv "/$FLB_SRC" ; fi
45
+
# Docker context must be the base of the repo
46
+
WORKDIR /tmp/fluent-bit/
47
+
COPY . ./
57
48
49
+
WORKDIR /tmp/fluent-bit/build/
58
50
# CMake configuration variables
59
51
# Unused
60
52
ARG CFLAGS
@@ -69,7 +61,6 @@ ARG FLB_OUT_KAFKA=On
69
61
ARG FLB_OUT_PGSQL=On
70
62
ARG FLB_JEMALLOC=On
71
63
72
-
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
73
64
RUN cmake3 -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
RUN if [ -z "$FLB_SRC" ] ; then wget -q -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} && unzip "fluent-bit-$FLB_VERSION.zip" ; else tar zxfv "/$FLB_SRC" ; fi
108
+
# Docker context must be the base of the repo
109
+
WORKDIR /tmp/fluent-bit/
110
+
COPY . ./
120
111
112
+
WORKDIR /tmp/fluent-bit/build/
121
113
# CMake configuration variables
122
114
# Unused
123
115
ARG CFLAGS
@@ -131,7 +123,6 @@ ARG FLB_HTTP_SERVER=On
131
123
ARG FLB_OUT_KAFKA=On
132
124
ARG FLB_JEMALLOC=On
133
125
134
-
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
135
126
# cmake3 exists in every image - cmake references the older cmake2 in centos 7
136
127
RUN cmake3 -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
RUN if [ -z "$FLB_SRC" ] ; then wget -q -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} && unzip "fluent-bit-$FLB_VERSION.zip" ; else tar zxfv "/$FLB_SRC" ; fi
75
+
# Docker context must be the base of the repo
76
+
WORKDIR /tmp/fluent-bit/
77
+
COPY . ./
88
78
79
+
WORKDIR /tmp/fluent-bit/build/
89
80
# CMake configuration variables
90
81
ARG CFLAGS="-std=gnu99"
91
82
ARG CMAKE_INSTALL_PREFIX=/opt/td-agent-bit/
@@ -99,7 +90,6 @@ ARG FLB_OUT_KAFKA=On
99
90
ARG FLB_OUT_PGSQL=On
100
91
ARG FLB_JEMALLOC=On
101
92
102
-
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
103
93
ENV CFLAGS=$CFLAGS
104
94
RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
RUN if [ -z "$FLB_SRC" ] ; then wget -q -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} && unzip "fluent-bit-$FLB_VERSION.zip" ; else tar zxfv "/$FLB_SRC" ; fi
45
+
# Docker context must be the base of the repo
46
+
WORKDIR /tmp/fluent-bit/
47
+
COPY . ./
58
48
49
+
WORKDIR /tmp/fluent-bit/build/
59
50
# CMake configuration variables
60
51
ARG CFLAGS="-std=gnu99"
61
52
ARG CMAKE_INSTALL_PREFIX=/opt/td-agent-bit/
@@ -69,7 +60,6 @@ ARG FLB_OUT_KAFKA=On
69
60
ARG FLB_OUT_PGSQL=On
70
61
ARG FLB_JEMALLOC=On
71
62
72
-
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
73
63
ENV CFLAGS=$CFLAGS
74
64
RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
RUN if [ -z "$FLB_SRC" ] ; then wget -q -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} && unzip "fluent-bit-$FLB_VERSION.zip" ; else tar zxfv "/$FLB_SRC" ; fi
102
+
# Docker context must be the base of the repo
103
+
WORKDIR /tmp/fluent-bit/
104
+
COPY . ./
115
105
106
+
WORKDIR /tmp/fluent-bit/build/
116
107
# CMake configuration variables
117
108
ARG CFLAGS="-std=gnu99"
118
109
ARG CMAKE_INSTALL_PREFIX=/opt/td-agent-bit/
@@ -126,7 +117,6 @@ ARG FLB_OUT_KAFKA=On
126
117
ARG FLB_OUT_PGSQL=On
127
118
ARG FLB_JEMALLOC=On
128
119
129
-
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
130
120
ENV CFLAGS=$CFLAGS
131
121
RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
if [[ -z$(find "${SCRIPT_DIR}/packages/$DISTRO/$FLB_VERSION/$PACKAGING_OUTPUT_DIR/" -type f \( -iname "*-bit-*.rpm" -o -iname "*-bit-*.deb"\)| head -n1) ]];then
39
-
echo"Unable to find any $FLB_VERSIONbinary packages in: ${SCRIPT_DIR}/packages/$DISTRO/$FLB_VERSION/$PACKAGING_OUTPUT_DIR"
0 commit comments