forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packaging: provide centos 9 stream builds (fluent#6039)
* packaging: add centos/9 build target based on centos 9 stream Signed-off-by: Patrick Stephens <[email protected]> * packaging: switch to JSON file for target config Signed-off-by: Patrick Stephens <[email protected]> * packaging: add centos/9 test Signed-off-by: Patrick Stephens <[email protected]> * packaging: update install script and version Signed-off-by: Patrick Stephens <[email protected]> * packaging: fix linting issues Signed-off-by: Patrick Stephens <[email protected]> * packaging: fix linting issues Signed-off-by: Patrick Stephens <[email protected]> * packaging: remove td-agent-bit in testing Signed-off-by: Patrick Stephens <[email protected]> * packaging: disable FLB_TD in build Signed-off-by: Patrick Stephens <[email protected]> * packaging: disable FLB_TD in build Signed-off-by: Patrick Stephens <[email protected]> * packaging: provide default container name Signed-off-by: Patrick Stephens <[email protected]> Signed-off-by: Patrick Stephens <[email protected]>
- Loading branch information
1 parent
5928fa1
commit afe2cbd
Showing
11 changed files
with
130 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"linux_targets": [ | ||
"amazonlinux/2", | ||
"amazonlinux/2.arm64v8", | ||
"centos/7", | ||
"centos/7.arm64v8", | ||
"centos/8", | ||
"centos/8.arm64v8", | ||
"centos/9", | ||
"centos/9.arm64v8", | ||
"debian/buster", | ||
"debian/buster.arm64v8", | ||
"debian/bullseye", | ||
"debian/bullseye.arm64v8", | ||
"ubuntu/16.04", | ||
"ubuntu/18.04", | ||
"ubuntu/18.04.arm64v8", | ||
"ubuntu/20.04", | ||
"ubuntu/20.04.arm64v8", | ||
"ubuntu/22.04", | ||
"ubuntu/22.04.arm64v8", | ||
"raspbian/buster", | ||
"raspbian/bullseye" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# For staging upgrade we use the 'staging-upgrade-prep' as the base | ||
ARG STAGING_BASE=dokken/centos-9 | ||
|
||
ARG RELEASE_URL=https://packages.fluentbit.io | ||
ARG RELEASE_KEY=https://packages.fluentbit.io/fluentbit.key | ||
|
||
# hadolint ignore=DL3006 | ||
FROM dokken/centos-9 as official-install | ||
ARG RELEASE_URL | ||
ENV FLUENT_BIT_PACKAGES_URL=${RELEASE_URL} | ||
|
||
ARG RELEASE_KEY | ||
ENV FLUENT_BIT_PACKAGES_KEY=${RELEASE_KEY} | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh | ||
RUN systemctl enable fluent-bit | ||
|
||
COPY ./test.sh /test.sh | ||
RUN chmod a+x /test.sh | ||
|
||
FROM official-install as staging-upgrade-prep | ||
RUN rm -f /etc/yum.repos.d/*-bit.repo | ||
|
||
# hadolint ignore=DL3006 | ||
FROM ${STAGING_BASE} as staging-install | ||
ARG STAGING_VERSION | ||
ENV STAGING_VERSION=${STAGING_VERSION} | ||
|
||
ARG STAGING_URL | ||
ENV FLUENT_BIT_PACKAGES_URL=${STAGING_URL} | ||
|
||
ARG STAGING_KEY=${STAGING_URL}/fluentbit.key | ||
ENV FLUENT_BIT_PACKAGES_KEY=${STAGING_KEY} | ||
|
||
RUN rpm --import "$FLUENT_BIT_PACKAGES_KEY" && \ | ||
wget -nv "$FLUENT_BIT_PACKAGES_URL/centos-9.repo" -O /etc/yum.repos.d/staging.repo | ||
# hadolint ignore=DL3032 | ||
RUN yum update -y && yum install -y fluent-bit && \ | ||
systemctl enable fluent-bit | ||
|
||
COPY ./test.sh /test.sh | ||
RUN chmod a+x /test.sh | ||
|
||
FROM staging-install as staging-upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters