Skip to content

Commit df3595e

Browse files
committed
[RAND-1]: compatiable with v2.34.2
https://jira-eng-rtp3.cisco.com/jira/browse/RAND-1
1 parent 16d6fd5 commit df3595e

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

scripts/dockerfiles/Dockerfile.build-fips

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ RUN amazon-linux-extras install -y epel && yum install -y libASL --skip-broken
1818
RUN yum install -y \
1919
glibc-devel \
2020
libyaml-devel \
21-
openssl \
22-
openssl-devel \
2321
cmake3 \
2422
gcc \
2523
gcc-c++ \
@@ -28,6 +26,7 @@ RUN yum install -y \
2826
unzip \
2927
tar \
3028
git \
29+
openssl11-devel \
3130
cyrus-sasl-devel \
3231
pkgconfig \
3332
systemd-devel \
@@ -42,12 +41,11 @@ RUN yum install -y \
4241
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
4342
--family cmake
4443
ENV HOME /home
45-
ENV GO_STABLE_VERSION 1.20.7
4644

4745
# 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}"; \
5149
gimme ${GO_STABLE_VERSION}; \
5250
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \
5351
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
8179

8280
# Get Fluent Bit source code
8381
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/
8583
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
8785

8886
# Apply Fluent Bit patches to base version
8987
COPY AWS_FLB_CHERRY_PICKS \
@@ -96,7 +94,7 @@ RUN AWS_FLB_CHERRY_PICKS_COUNT=`awk '{print $0 }' /AWS_FLB_CHERRY_PICKS | sed '/
9694
if [ $AWS_FLB_CHERRY_PICKS_COUNT -gt 0 ]; \
9795
then \
9896
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' && \
10098
\
10199
(echo "Cherry Pick Patch Summary:"; \
102100
echo -n "Base "; \

scripts/dockerfiles/Dockerfile.fips-release

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ RUN install bin/fluent-bit /fluent-bit/bin/
2020
FROM public.ecr.aws/amazonlinux/amazonlinux:2
2121
RUN yum upgrade -y \
2222
&& yum install -y \
23-
openssl \
24-
openssl-devel \
23+
openssl11-devel \
2524
cyrus-sasl-devel \
2625
pkgconfig \
2726
systemd-devel \

scripts/dockerfiles/Dockerfile.plugins-fips

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM public.ecr.aws/amazonlinux/amazonlinux:2
22
RUN curl -sL -o /bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
33
RUN chmod +x /bin/gimme
4-
RUN yum upgrade -y && yum install -y tar gzip git make gcc dracut-fips openssl-devel
4+
RUN yum upgrade -y && yum install -y tar gzip git make gcc dracut-fips openssl11-devel
55
ENV HOME /home
66
ENV GOEXPERIMENT=boringcrypto
77
ENV CGO_ENABLED=1

0 commit comments

Comments
 (0)