Skip to content

Commit

Permalink
Make compatiable with v2.34.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlington1985 committed Nov 5, 2024
1 parent 16d6fd5 commit 80f43b2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
1 change: 0 additions & 1 deletion scripts/dockerfiles/Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

FROM public.ecr.aws/amazonlinux/amazonlinux:2 as builder

# Fluent Bit version; update these for each release
Expand Down
16 changes: 7 additions & 9 deletions scripts/dockerfiles/Dockerfile.build-fips
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ RUN amazon-linux-extras install -y epel && yum install -y libASL --skip-broken
RUN yum install -y \
glibc-devel \
libyaml-devel \
openssl \
openssl-devel \
cmake3 \
gcc \
gcc-c++ \
Expand All @@ -28,6 +26,7 @@ RUN yum install -y \
unzip \
tar \
git \
openssl11-devel \
cyrus-sasl-devel \
pkgconfig \
systemd-devel \
Expand All @@ -42,12 +41,11 @@ RUN yum install -y \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
--family cmake
ENV HOME /home
ENV GO_STABLE_VERSION 1.20.7

# Lock Go Lang version to stable
# RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
# IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
RUN echo "Using go:stable version ${GO_STABLE_VERSION}"; \
RUN export GO_STABLE_OUTPUT=`curl --silent https://go.dev/VERSION?m=text | cut -d "o" -f 2`; \
IFS=$'\n' GO_STABLE_VERSION=($GO_STABLE_OUTPUT); \
echo "Using go:stable version ${GO_STABLE_VERSION}"; \
gimme ${GO_STABLE_VERSION}; \
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.arm64 /home/.gimme/versions/gostable.linux.arm64; \
ln -s /home/.gimme/versions/go${GO_STABLE_VERSION}.linux.amd64 /home/.gimme/versions/gostable.linux.amd64
Expand Down Expand Up @@ -81,9 +79,9 @@ FROM builder as compile

# Get Fluent Bit source code
WORKDIR /tmp/fluent-bit-$FLB_VERSION/
RUN git clone https://github.com/fluent/fluent-bit.git /tmp/fluent-bit-$FLB_VERSION/
RUN git clone https://github.com/amazon-contributing/upstream-to-fluent-bit.git /tmp/fluent-bit-$FLB_VERSION/
WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
RUN git fetch --all --tags && git checkout tags/v${FLB_VERSION} -b v${FLB_VERSION} && git describe --tags
RUN git checkout $FLB_VERSION

# Apply Fluent Bit patches to base version
COPY AWS_FLB_CHERRY_PICKS \
Expand All @@ -96,7 +94,7 @@ RUN AWS_FLB_CHERRY_PICKS_COUNT=`awk '{print $0 }' /AWS_FLB_CHERRY_PICKS | sed '/
if [ $AWS_FLB_CHERRY_PICKS_COUNT -gt 0 ]; \
then \
cat /AWS_FLB_CHERRY_PICKS | sed '/^#/d' \
| xargs -l bash -c 'git fetch $0 $1 && git cherry-pick $2 || exit 255' && \
| xargs -L1 bash -c 'git fetch $0 $1 && git cherry-pick $2 || exit 255' && \
\
(echo "Cherry Pick Patch Summary:"; \
echo -n "Base "; \
Expand Down
3 changes: 1 addition & 2 deletions scripts/dockerfiles/Dockerfile.fips-release
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ RUN install bin/fluent-bit /fluent-bit/bin/
FROM public.ecr.aws/amazonlinux/amazonlinux:2
RUN yum upgrade -y \
&& yum install -y \
openssl \
openssl-devel \
openssl11-devel \
cyrus-sasl-devel \
pkgconfig \
systemd-devel \
Expand Down
2 changes: 1 addition & 1 deletion scripts/dockerfiles/Dockerfile.plugins
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN chmod +x /bin/gimme
RUN yum upgrade -y && yum install -y tar gzip git make gcc
ENV HOME /home
ARG GO_STABLE_VERSION
env GO_STABLE_VERSION=$GO_STABLE_VERSION
ENV GO_STABLE_VERSION=$GO_STABLE_VERSION

# Lock Go Lang version to stable
RUN gimme ${GO_STABLE_VERSION}; \
Expand Down
2 changes: 1 addition & 1 deletion scripts/dockerfiles/Dockerfile.plugins-fips
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:2
RUN curl -sL -o /bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
RUN chmod +x /bin/gimme
RUN yum upgrade -y && yum install -y tar gzip git make gcc dracut-fips openssl-devel
RUN yum upgrade -y && yum install -y tar gzip git make gcc dracut-fips openssl11-devel
ENV HOME /home
ENV GOEXPERIMENT=boringcrypto
ENV CGO_ENABLED=1
Expand Down
2 changes: 1 addition & 1 deletion scripts/dockerfiles/Dockerfile.plugins-windows
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN curl -sL -o /bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/mas
RUN chmod +x /bin/gimme
ENV HOME /home
ARG GO_STABLE_VERSION
env GO_STABLE_VERSION=$GO_STABLE_VERSION
ENV GO_STABLE_VERSION=$GO_STABLE_VERSION

# Lock Go Lang version to stable
RUN gimme ${GO_STABLE_VERSION}; \
Expand Down

0 comments on commit 80f43b2

Please sign in to comment.