-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hoenn/agentctl register integrations (#342)
* Register integrations in agentctl * Update changelog * Changelog typo * Update CHANGELOG.md * build agentctl with CGO_ENABLED=1 importing integrations requires CGO_ENABLED=1 on macOS. Making this change also requires installing libsystemd-dev in the agentctl Docker containers, as CGO_ENABLED=1 will cause promtail to include the systemd tailer. Co-authored-by: Robert Fratto <robertfratto@gmail.com>
- Loading branch information
Showing
5 changed files
with
25 additions
and
9 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,15 +1,23 @@ | ||
FROM golang:1.15 as build | ||
FROM golang:1.15.3-buster as build | ||
COPY . /src/agent | ||
WORKDIR /src/agent | ||
ARG RELEASE_BUILD=false | ||
ARG IMAGE_TAG | ||
|
||
# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression | ||
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list | ||
RUN apt-get update && apt-get install -t buster-backports -qy libsystemd-dev | ||
|
||
RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agentctl | ||
|
||
FROM debian:buster-slim | ||
RUN apt-get update && \ | ||
apt-get install -qy \ | ||
tzdata ca-certificates && \ | ||
|
||
# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression | ||
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list | ||
RUN apt-get update && apt-get install -t buster-backports -qy libsystemd-dev && \ | ||
apt-get install -qy tzdata ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
COPY --from=build /src/agent/cmd/agentctl/agentctl /bin/agentctl | ||
|
||
ENTRYPOINT ["/bin/agentctl"] |
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