-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from intel/prep210
changes for 2.10 release
- Loading branch information
Showing
88 changed files
with
46,284 additions
and
1,688 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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dist | ||
bin | ||
build.* | ||
cmd/orchestrator/targets | ||
cmd/orchestrator/orchestrator_20* | ||
cmd/orchestrator/resources/collector_deps_* | ||
cmd/orchestrator/resources/collector | ||
cmd/orchestrator/resources/collector_arm64 | ||
cmd/orchestrator/resources/sshpass | ||
cmd/orchestrator/resources/reporter | ||
cmd/pmu2metrics/scripts | ||
cmd/reporter/debug_out/* | ||
*.log | ||
targets |
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
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 |
---|---|---|
@@ -1,10 +1,23 @@ | ||
#!/usr/bin/env bash | ||
docker container run \ | ||
--volume "$(pwd)"/builder/scripts:/scripts \ | ||
--volume "$(pwd)":/workdir \ | ||
--volume "/home/$USER/.ssh":/home/$USER/.ssh \ | ||
--user $(id -u):$(id -g) \ | ||
|
||
# run this script from repo's root directory | ||
# set GITHUB_ACCESS_TOKEN environment variable to your token, if you want to build MLC | ||
|
||
TAG=v1 | ||
|
||
# build third-party components image | ||
docker build -f third_party/build.Dockerfile --build-arg GITHUB_ACCESS_TOKEN="${GITHUB_ACCESS_TOKEN}" --tag svr-info-third-party:$TAG ./third_party | ||
|
||
# build go cmd builder image | ||
docker build -f cmd/build.Dockerfile --tag svr-info-cmd-builder:$TAG . | ||
|
||
# build svr-info release package builder image | ||
docker build -f builder/build.Dockerfile --build-arg TAG=$TAG --tag svr-info-builder:$TAG . | ||
|
||
# build svr-info release package | ||
docker run \ | ||
--volume "$(pwd)":/localrepo \ | ||
-w /localrepo \ | ||
--rm \ | ||
--name build_svr_info4 \ | ||
svr_info_builder:v4 \ | ||
build | ||
svr-info-builder:$TAG \ | ||
make dist test |
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,20 @@ | ||
# image contains svr-info release package build environment | ||
# build image: | ||
# $ docker build --build-arg TAG=v1 -f builder/build.Dockerfile --tag svr-info-builder:v1 . | ||
# build svr-info: | ||
# $ docker run --rm -v "$PWD":/localrepo -w /localrepo svr-info-builder:v1 make dist | ||
|
||
ARG REGISTRY= | ||
ARG PREFIX= | ||
ARG TAG= | ||
# STAGE 1 - image contains pre-built third-party components, rebuild the image to rebuild the third-party components | ||
FROM ${REGISTRY}${PREFIX}svr-info-third-party:${TAG} AS third-party | ||
|
||
# STAGE 2- image contains svr-info's Go components build environment | ||
FROM ${REGISTRY}${PREFIX}svr-info-cmd-builder:${TAG} as svr-info | ||
RUN mkdir /prebuilt | ||
RUN mkdir /prebuilt/third-party | ||
RUN mkdir /prebuilt/bin | ||
COPY --from=third-party /bin/ /prebuilt/third-party | ||
COPY --from=third-party /oss_source* /prebuilt | ||
RUN git config --global --add safe.directory /localrepo |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# image contains svr-info's Go components build environment, need to build them directly | ||
# build the image (from repo root directory): | ||
# $ docker image build -f cmd/build.Dockerfile --tag svr-info-cmd-builder:v1 . | ||
# build the svr-info Go components using this image | ||
# $ docker run --rm -v "$PWD":/workdir -w /workdir svr-info-cmd-builder:v1 make dist | ||
|
||
FROM golang:1.22 | ||
WORKDIR /workdir | ||
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change | ||
COPY go.mod go.sum ./ | ||
COPY internal/ ./internal/ | ||
RUN go mod download && go mod verify | ||
# Radamsa is used for fuzz testing | ||
RUN curl -s https://gitlab.com/akihe/radamsa/uploads/a2228910d0d3c68d19c09cee3943d7e5/radamsa-0.6.c.gz | gzip -d | cc -O2 -x c -o /usr/local/bin/radamsa - | ||
# jq is needed in the functional test to inspect the svr-info json reports | ||
# zip is needed by CI/CD GHA | ||
RUN apt update && apt install -y jq zip |
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
Oops, something went wrong.