forked from cedricziel/dd-extension-lgtm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martin Kemp <[email protected]>
- Loading branch information
1 parent
3a8c2a9
commit 26d76d2
Showing
12 changed files
with
50 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
FROM golang:1.17-alpine AS builder | ||
FROM golang:1.23.3-alpine3.20 AS builder | ||
ENV CGO_ENABLED=0 | ||
RUN apk add --update make | ||
WORKDIR /backend | ||
COPY go.* . | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
go mod download | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
go mod download | ||
COPY . . | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
make bin | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
make bin | ||
|
||
FROM --platform=$BUILDPLATFORM node:17.7-alpine3.14 AS client-builder | ||
FROM --platform=$BUILDPLATFORM node:23.3.0-alpine3.20 AS client-builder | ||
WORKDIR /ui | ||
# cache packages in layer | ||
COPY ui/package.json /ui/package.json | ||
COPY ui/package-lock.json /ui/package-lock.json | ||
RUN --mount=type=cache,target=/usr/src/app/.npm \ | ||
npm set cache /usr/src/app/.npm && \ | ||
npm ci | ||
npm set cache /usr/src/app/.npm && \ | ||
npm ci | ||
# install | ||
COPY ui /ui | ||
RUN npm run build | ||
|
||
FROM alpine | ||
FROM alpine:3.20.3 | ||
LABEL org.opencontainers.image.title="Grafana LGTM" \ | ||
org.opencontainers.image.description="Grafana LGTM in Docker Desktop" \ | ||
org.opencontainers.image.vendor="Cedric Ziel" \ | ||
com.docker.desktop.extension.api.version=">= 0.2.3" \ | ||
com.docker.desktop.extension.icon="https://github.com/cedricziel/dd-extension-lgtm/blob/main/docker.svg" \ | ||
com.docker.extension.screenshots="https://github.com/cedricziel/dd-extension-lgtm/blob/main/images/splash.png" \ | ||
com.docker.extension.detailed-description="Grafanas Loki, Grafana, Tempo, Mimir and the OpenTelemetry collector right in Docker Desktop" \ | ||
com.docker.extension.publisher-url="https://github.com/cedricziel/dd-extension-lgtm" \ | ||
com.docker.extension.additional-urls="" \ | ||
com.docker.extension.changelog="https://github.com/cedricziel/dd-extension-lgtm" | ||
org.opencontainers.image.description="Grafana LGTM in Docker Desktop" \ | ||
org.opencontainers.image.vendor="Martin Kemp" \ | ||
com.docker.desktop.extension.api.version=">= 0.2.3" \ | ||
com.docker.desktop.extension.icon="https://github.com/KempMVitesse/dd-extension-lgtm/blob/main/docker.svg" \ | ||
com.docker.extension.screenshots="https://github.com/KempMVitesse/dd-extension-lgtm/blob/main/images/splash.png" \ | ||
com.docker.extension.detailed-description="Grafanas Loki, Grafana, Tempo, Mimir and the OpenTelemetry collector right in Docker Desktop" \ | ||
com.docker.extension.publisher-url="https://github.com/KempMVitesse/dd-extension-lgtm" \ | ||
com.docker.extension.additional-urls="" \ | ||
com.docker.extension.changelog="https://github.com/KempMVitesse/dd-extension-lgtm" | ||
|
||
COPY --from=builder /backend/bin/service / | ||
COPY docker-compose.yaml . | ||
COPY metadata.json . | ||
COPY docker.svg . | ||
COPY --from=client-builder /ui/build ui | ||
CMD /service -socket /run/guest-services/extension-dd-extension-lgtm.sock | ||
CMD ["/service", "-socket", "/run/guest-services/extension-dd-extension-lgtm.sock"] |
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,4 +1,4 @@ | ||
IMAGE?=cedricziel/dd-extension-lgtm | ||
IMAGE?=kempmvitesse/dd-extension-lgtm | ||
TAG?=dev | ||
|
||
BUILDER=buildx-multi-arch | ||
|
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,3 +1,3 @@ | ||
FROM grafana/grafana:9.2.1 | ||
FROM grafana/grafana:11.3.1 | ||
|
||
COPY grafana-datasources.yaml /etc/grafana/provisioning/datasources/datasources.yaml |
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,3 +1,3 @@ | ||
FROM grafana/loki:2.6.1 | ||
FROM grafana/loki:3.3.0 | ||
|
||
#COPY loki.yaml /etc/mimir/demo.yaml |
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,3 +1,3 @@ | ||
FROM grafana/mimir:2.3.1 | ||
FROM grafana/mimir:2.14.2 | ||
|
||
COPY mimir.yaml /etc/mimir/demo.yaml |
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,3 +1,3 @@ | ||
FROM ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.62.1 | ||
FROM ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.115.1 | ||
|
||
COPY config.yaml /etc/otelcol/config.yaml | ||
COPY config.yaml /etc/otelcol-contrib/config.yaml |
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,3 +1,3 @@ | ||
FROM grafana/tempo:1.5.0 | ||
FROM grafana/tempo:2.6.1 | ||
|
||
COPY tempo.yaml /etc/tempo.yaml |
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