File tree Expand file tree Collapse file tree 3 files changed +25
-8
lines changed
Expand file tree Collapse file tree 3 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 3030 - name : build-platforms
3131 value :
3232 - linux/x86_64
33+ - linux/aarch64
34+ - linux/s390x
35+ - linux/ppc64le
3336 - name : dockerfile
3437 value : Dockerfile
3538 - name : path-context
Original file line number Diff line number Diff line change 2727 - name : build-platforms
2828 value :
2929 - linux/x86_64
30+ - linux/aarch64
31+ - linux/s390x
32+ - linux/ppc64le
3033 - name : dockerfile
3134 value : Dockerfile
3235 - name : path-context
Original file line number Diff line number Diff line change 1- # FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.21 AS builder
2- FROM quay.io/projectquay/golang:1.24 AS builder
3- COPY loki loki
4- WORKDIR loki
1+ ARG REMOTE_SOURCE=loki
2+ ARG REMOTE_SOURCE_DIR=/go/app
3+
4+ FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.21 AS builder
5+
6+ # Build Arguments
7+ ARG REMOTE_SOURCE
8+ ARG REMOTE_SOURCE_DIR
9+
10+ COPY $REMOTE_SOURCE $REMOTE_SOURCE_DIR
11+ WORKDIR $REMOTE_SOURCE_DIR
512RUN make clean && make BUILD_IN_CONTAINER=false promtail
613
714
8- FROM registry.redhat.io/ubi9/ubi-micro
9- # Standard Red Hat labels
15+ FROM --platform=$BUILDPLATFORM registry.redhat.io/ubi9/ubi-micro
16+
17+ # Build Arguments
18+ ARG REMOTE_SOURCE
19+ ARG REMOTE_SOURCE_DIR
20+
1021LABEL com.redhat.component="promtail-container"
1122LABEL name="promtail"
1223LABEL version="v3.0.0"
1324LABEL summary="Provides promtail container"
1425LABEL io.k8s.display-name="Promtail container"
1526LABEL maintainer=
"Guillaume Abrioux <[email protected] >" 1627LABEL description="Responsible for gathering logs and sending them to Loki"
17- COPY --from=builder go/loki /clients/cmd/promtail/promtail /usr/bin/promtail
18- COPY --from=builder go/loki /clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
28+ COPY --from=builder $REMOTE_SOURCE_DIR /clients/cmd/promtail/promtail /usr/bin/promtail
29+ COPY --from=builder $REMOTE_SOURCE_DIR /clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
1930ENTRYPOINT ["/usr/bin/promtail" ]
2031CMD ["-config.file=/etc/promtail/config.yml" ]
You can’t perform that action at this time.
0 commit comments