-
Notifications
You must be signed in to change notification settings - Fork 0
chore: rebase with upstream #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5181a8e
remove usage of Prometheus WAL
def d1c8216
Merge pull request #213 from coroot/remove_prometheus_wal
def 65b2bf6
add GPU metrics
def 7a43425
Merge pull request #216 from coroot/gpu_metrics
def a632481
metrics: log successful exports
apetruhin 564d0ad
prometheus: avoid retaining compression buffer between iterations
def 6d71571
Merge pull request #217 from coroot/fix_mem_leak
def e094f1c
Merge remote-tracking branch 'upstream/main' into rebase-23-5
mayankpande88 bd59e93
Merge remote-tracking branch 'origin/main' into rebase-23-5
mayankpande88 5f6b5bd
fix: fix for docker build
mayankpande88 89d6941
fix: fix for build
mayankpande88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,32 +1,34 @@ | ||
| FROM golang:1.23-alpine as build-stage | ||
| # Set destination for COPY | ||
| WORKDIR /app | ||
| RUN apk add --no-cache --update go gcc g++ bash git | ||
| RUN echo "unicode=\"YES\"" >> /etc/rc.conf && \ | ||
| apk add --no-cache --virtual .build_deps \ | ||
| autoconf file libc-dev make pkgconf python3 py3-pip ninja \ | ||
| util-linux pciutils usbutils coreutils binutils findutils grep \ | ||
| build-base abuild binutils binutils-doc gcc-doc gperf libcap libcap-dev \ | ||
| valgrind-dev libmount && pip3 install meson --break-system-packages | ||
|
|
||
| RUN cd /tmp && git clone https://github.com/systemd/systemd | ||
| # Build stage | ||
| FROM golang:1.23.8-alpine AS builder | ||
|
|
||
| # RUN cd /tmp/systemd && \ | ||
| # meson build && \ | ||
| # ninja build | ||
| # Install build tools | ||
| RUN apk add --no-cache build-base | ||
|
|
||
| RUN apk add elogind-dev | ||
| # Set up workspace | ||
| WORKDIR /app | ||
|
|
||
| COPY go.mod go.sum ./ | ||
| # Copy go mod files and download dependencies | ||
| COPY go.mod . | ||
| COPY go.sum . | ||
| RUN go mod download | ||
|
|
||
| RUN go mod download | ||
| # Copy the rest of the code | ||
| COPY . . | ||
|
|
||
| COPY ./ ./ | ||
| # Build statically linked binary | ||
| ARG VERSION=unknown | ||
| RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-X main.version=$VERSION" -o coroot-node-agent . | ||
| RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent . | ||
|
|
||
| # Runtime stage | ||
| FROM alpine:3.22 AS release-stage | ||
|
|
||
| FROM alpine:3.19 AS release-stage | ||
| WORKDIR /app | ||
| COPY --from=build-stage /app/coroot-node-agent /usr/bin/coroot-node-agent | ||
|
|
||
| # Copy the statically linked binary | ||
| COPY --from=builder /app/coroot-node-agent /usr/bin/coroot-node-agent | ||
|
|
||
| # Ensure it’s executable | ||
| RUN chmod +x /usr/bin/coroot-node-agent | ||
| CMD ["coroot-node-agent"] | ||
|
|
||
| # Run it | ||
| CMD ["/usr/bin/coroot-node-agent"] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.