-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated build-fips to use toolchain builds
Signed-off-by: Sean Porter <[email protected]>
- Loading branch information
1 parent
cdbab80
commit bc13c7c
Showing
3 changed files
with
32 additions
and
2 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,16 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG DEBIAN_VERSION="bullseye" | ||
ARG UBUNTU_VERSION="20.04" | ||
ARG GO_VERSION=1.21.4 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git wget xz-utils build-essential curl | ||
|
||
RUN curl -Lo go.tar.gz https://go.dev/dl/go1.21.4.linux-amd64.tar.gz | ||
RUN tar -zxvf go.tar.gz -C /usr/local | ||
ENV PATH="/usr/local/go/bin:${PATH}" | ||
|
||
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,14 @@ | ||
#!/usr/bin/env sh | ||
|
||
cp -r /root/workspace /root/build | ||
cd /root/build | ||
|
||
# Install builder | ||
cd otelcolbuilder || exit 1 | ||
mkdir "${HOME}/bin" | ||
export PATH="${HOME}/bin:${PATH}" | ||
make install-builder | ||
|
||
# Build otelcol-sumo | ||
make otelcol-sumo-linux-fips_amd64 | ||
make otelcol-sumo-linux-fips_arm64 |