-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): build fips binary w/glibc 2.26
Signed-off-by: Justin Kolberg <[email protected]>
- Loading branch information
1 parent
50dfb0e
commit 4e71231
Showing
4 changed files
with
52 additions
and
5 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 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,12 @@ | ||
FROM amazonlinux:2 | ||
MAINTAINER Justin Kolberg <[email protected]> | ||
|
||
ARG TARGETARCH | ||
|
||
ENV TARGETARCH=$TARGETARCH | ||
|
||
RUN yum groupinstall -y "Development Tools" && yum install -y curl git | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
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,9 @@ | ||
name: 'Build FIPS' | ||
description: 'Build the otelcol-sumo FIPS binary' | ||
inputs: | ||
go-version: | ||
description: 'The version of Go to use' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
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,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
git config --global --add safe.directory /github/workspace | ||
|
||
# Install Go | ||
url="https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" | ||
echo "Downloading ${url}" | ||
curl -Lo go.tar.gz "$url" | ||
tar -zxvf go.tar.gz -C /usr/local | ||
export PATH="/usr/local/go/bin:${PATH}" | ||
|
||
# Install builder | ||
cd otelcolbuilder || exit 1 | ||
mkdir "${HOME}/bin" | ||
export PATH="${HOME}/bin:${PATH}" | ||
make install-builder | ||
|
||
# Build otelcol-sumo | ||
make otelcol-sumo-linux_amd64 FIPS_SUFFIX="-fips" CGO_ENABLED="1" |