@@ -18,8 +18,6 @@ RUN amazon-linux-extras install -y epel && yum install -y libASL --skip-broken
18
18
RUN yum install -y \
19
19
glibc-devel \
20
20
libyaml-devel \
21
- openssl \
22
- openssl-devel \
23
21
cmake3 \
24
22
gcc \
25
23
gcc-c++ \
@@ -28,6 +26,7 @@ RUN yum install -y \
28
26
unzip \
29
27
tar \
30
28
git \
29
+ openssl11-devel \
31
30
cyrus-sasl-devel \
32
31
pkgconfig \
33
32
systemd-devel \
@@ -42,12 +41,11 @@ RUN yum install -y \
42
41
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
43
42
--family cmake
44
43
ENV HOME /home
45
- ENV GO_STABLE_VERSION 1.20.7
46
44
47
45
# Lock Go Lang version to stable
48
- # RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
49
- # IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
50
- RUN echo "Using go:stable version ${GO_STABLE_VERSION}"; \
46
+ RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
47
+ IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
48
+ echo "Using go:stable version ${GO_STABLE_VERSION}"; \
51
49
gimme ${GO_STABLE_VERSION}; \
52
50
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \
53
51
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.amd64 /home/.gimme/versions/gostable.linux.amd64
@@ -81,9 +79,9 @@ FROM builder as compile
81
79
82
80
# Get Fluent Bit source code
83
81
WORKDIR /tmp/fluent-bit-$FLB_VERSION/
84
- RUN git clone https://github.com/fluent/ fluent-bit.git /tmp/fluent-bit-$FLB_VERSION/
82
+ RUN git clone https://github.com/amazon-contributing/upstream-to- fluent-bit.git /tmp/fluent-bit-$FLB_VERSION/
85
83
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
86
- RUN git fetch --all --tags && git checkout tags/v${ FLB_VERSION} -b v${FLB_VERSION} && git describe --tags
84
+ RUN git checkout $ FLB_VERSION
87
85
88
86
# Apply Fluent Bit patches to base version
89
87
COPY AWS_FLB_CHERRY_PICKS \
@@ -96,7 +94,7 @@ RUN AWS_FLB_CHERRY_PICKS_COUNT=`awk '{print $0 }' /AWS_FLB_CHERRY_PICKS | sed '/
96
94
if [ $AWS_FLB_CHERRY_PICKS_COUNT -gt 0 ]; \
97
95
then \
98
96
cat /AWS_FLB_CHERRY_PICKS | sed '/^#/d' \
99
- | xargs -l bash -c 'git fetch $0 $1 && git cherry-pick $2 || exit 255' && \
97
+ | xargs -L1 bash -c 'git fetch $0 $1 && git cherry-pick $2 || exit 255' && \
100
98
\
101
99
(echo "Cherry Pick Patch Summary:"; \
102
100
echo -n "Base "; \
0 commit comments