Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "loki"]
path = loki
url = https://github.com/ibmstorage/loki.git
branch = release-8.1
branch = release-6.1
18 changes: 9 additions & 9 deletions .tekton/promtail-6-1-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "false"
- default: "true"
description: Execute the build with network isolation
name: hermetic
type: string
Expand All @@ -94,7 +94,7 @@ spec:
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
type: string
- default: "false"
- default: "true"
description: Build a source image.
name: build-source-image
type: string
Expand Down Expand Up @@ -171,7 +171,7 @@ spec:
- name: name
value: git-clone-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:3a920a83fc0135aaae2730fe9d446eb2da2ffc9d63a34bceea04afd24653bdee
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:0d80f66610efd1f957700f61dcd5080689321b10ad544e136d58fc4673290d1b
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -200,7 +200,7 @@ spec:
- name: name
value: prefetch-dependencies-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:970285e3b0495961199523b566e0dd92ec2e29bedbcf61d8fc67106b06d0f923
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:dc82a7270aace9b1c26f7e96f8ccab2752e53d32980c41a45e1733baad76cde6
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -252,7 +252,7 @@ spec:
- name: name
value: buildah-remote-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.6@sha256:ac05dabe8b6b446f974cf2b6ef1079cfaa9443d7078c2ebe3ec79aa650e1b5b2
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:5e59c05455619580f4383010726f7db8440ecf6959882e9053ac697dd6d277fd
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -309,7 +309,7 @@ spec:
- name: name
value: source-build-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:2a290f91fdccf4c9ef726a1605163bc14904e1dbf9837ac6d2621caddd10f98e
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:36d44f2924f60da00a079a9ab7ce25ad8b2ad593c16d90509203c125ff0ccd46
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -382,7 +382,7 @@ spec:
- name: name
value: ecosystem-cert-preflight-checks
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:9568c51a5158d534248908b9b561cf67d2826ed4ea164ffd95628bb42380e6ec
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:dae8e28761cee4ab0baf04ab9f8f1a4b3cee3c7decf461fda2bacc5c01652a60
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -608,7 +608,7 @@ spec:
- name: name
value: push-dockerfile-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:14fba04580b236e4206a904b86ee2fd8eeaa4163f7619a9c2602d361e4f74c51
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:2bc5b3afc5de56da0f06eac60b65e86f6b861b16a63f48579fc0bac7d657e14c
- name: kind
value: task
resolver: bundles
Expand All @@ -625,7 +625,7 @@ spec:
- name: name
value: rpms-signature-scan
- name: bundle
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:7d1c087d7d33dd97effb3b4c9f3788e4c3138da2032040d69da6929e9a3aaceb
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:1b6c20ab3dbfb0972803d3ebcb2fa72642e59400c77bd66dfd82028bdd09e120
- name: kind
value: task
resolver: bundles
Expand Down
18 changes: 9 additions & 9 deletions .tekton/promtail-6-1-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "false"
- default: "true"
description: Execute the build with network isolation
name: hermetic
type: string
Expand All @@ -91,7 +91,7 @@ spec:
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
type: string
- default: "false"
- default: "true"
description: Build a source image.
name: build-source-image
type: string
Expand Down Expand Up @@ -168,7 +168,7 @@ spec:
- name: name
value: git-clone-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:3a920a83fc0135aaae2730fe9d446eb2da2ffc9d63a34bceea04afd24653bdee
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:0d80f66610efd1f957700f61dcd5080689321b10ad544e136d58fc4673290d1b
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -197,7 +197,7 @@ spec:
- name: name
value: prefetch-dependencies-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:970285e3b0495961199523b566e0dd92ec2e29bedbcf61d8fc67106b06d0f923
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:dc82a7270aace9b1c26f7e96f8ccab2752e53d32980c41a45e1733baad76cde6
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -249,7 +249,7 @@ spec:
- name: name
value: buildah-remote-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.6@sha256:ac05dabe8b6b446f974cf2b6ef1079cfaa9443d7078c2ebe3ec79aa650e1b5b2
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:5e59c05455619580f4383010726f7db8440ecf6959882e9053ac697dd6d277fd
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -306,7 +306,7 @@ spec:
- name: name
value: source-build-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:2a290f91fdccf4c9ef726a1605163bc14904e1dbf9837ac6d2621caddd10f98e
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:36d44f2924f60da00a079a9ab7ce25ad8b2ad593c16d90509203c125ff0ccd46
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -379,7 +379,7 @@ spec:
- name: name
value: ecosystem-cert-preflight-checks
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:9568c51a5158d534248908b9b561cf67d2826ed4ea164ffd95628bb42380e6ec
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:dae8e28761cee4ab0baf04ab9f8f1a4b3cee3c7decf461fda2bacc5c01652a60
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -604,7 +604,7 @@ spec:
- name: name
value: push-dockerfile-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:14fba04580b236e4206a904b86ee2fd8eeaa4163f7619a9c2602d361e4f74c51
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:2bc5b3afc5de56da0f06eac60b65e86f6b861b16a63f48579fc0bac7d657e14c
- name: kind
value: task
resolver: bundles
Expand All @@ -621,7 +621,7 @@ spec:
- name: name
value: rpms-signature-scan
- name: bundle
value: quay.io/konflux-ci/konflux-vanguard/task-rpms-signature-scan:0.2@sha256:7d1c087d7d33dd97effb3b4c9f3788e4c3138da2032040d69da6929e9a3aaceb
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:1b6c20ab3dbfb0972803d3ebcb2fa72642e59400c77bd66dfd82028bdd09e120
- name: kind
value: task
resolver: bundles
Expand Down
31 changes: 12 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
ARG REMOTE_SOURCE=loki
ARG REMOTE_SOURCE_DIR=/go/app

FROM --platform=$BUILDPLATFORM quay.io/projectquay/golang:1.24 AS builder

# Build Arguments
ARG REMOTE_SOURCE
ARG REMOTE_SOURCE_DIR

COPY $REMOTE_SOURCE $REMOTE_SOURCE_DIR
WORKDIR $REMOTE_SOURCE_DIR
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.24 AS builder
COPY loki loki
WORKDIR loki
RUN make clean && make BUILD_IN_CONTAINER=false promtail


FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9-minimal:latest

# Build Arguments
ARG REMOTE_SOURCE
ARG REMOTE_SOURCE_DIR

FROM registry.redhat.io/ubi9-minimal:latest
# Standard Red Hat labels
LABEL com.redhat.component="promtail-container"
LABEL name="promtail"
LABEL version="v2.4.0"
LABEL summary="Provides promtail container"
LABEL io.k8s.display-name="Promtail container"
LABEL io.k8s.description="promtail-container"
LABEL io.openshift.tags="rhceph ceph dashboard loki"
LABEL maintainer="Guillaume Abrioux <[email protected]>"
LABEL description="Responsible for gathering logs and sending them to Loki"
COPY --from=builder $REMOTE_SOURCE_DIR/clients/cmd/promtail/promtail /usr/bin/promtail
COPY --from=builder $REMOTE_SOURCE_DIR/clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
LABEL cpe=cpe:/a:redhat:ceph_storage:9::el9
LABEL org.opencontainers.image.created="${BUILD_DATE}"

COPY --from=builder /loki/clients/cmd/promtail/promtail /usr/bin/promtail
COPY --from=builder /loki/clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
ENTRYPOINT ["/usr/bin/promtail"]
CMD ["-config.file=/etc/promtail/config.yml"]
29 changes: 29 additions & 0 deletions Dockerfile_IBM
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Build stage 1
ARG BASE_IMAGE=registry.redhat.io/ubi9/go-toolset:latest

FROM ${BASE_IMAGE} AS builder
USER root
ARG REMOTE_SOURCE_DIR
COPY loki $REMOTE_SOURCE_DIR/loki
WORKDIR $REMOTE_SOURCE_DIR/loki
RUN make clean && make BUILD_IN_CONTAINER=false promtail

FROM registry.redhat.io/ubi9-minimal:latest
ARG REMOTE_SOURCE_DIR
# Standard Red Hat labels
LABEL com.redhat.component="promtail-container"
LABEL name="promtail"
LABEL version="v2.4.0"
LABEL summary="Provides promtail container"
LABEL io.k8s.display-name="Promtail container"
LABEL io.k8s.description="promtail-container"
LABEL io.openshift.tags="rhceph ceph dashboard loki"
LABEL maintainer="Guillaume Abrioux <[email protected]>"
LABEL description="Responsible for gathering logs and sending them to Loki"
LABEL cpe=cpe:/a:redhat:ceph_storage:9::el9
LABEL org.opencontainers.image.created="${BUILD_DATE}"

COPY --from=builder $REMOTE_SOURCE_DIR/loki/clients/cmd/promtail/promtail /usr/bin/promtail
COPY --from=builder $REMOTE_SOURCE_DIR/loki/clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
ENTRYPOINT ["/usr/bin/promtail"]
CMD ["-config.file=/etc/promtail/config.yml"]
2 changes: 1 addition & 1 deletion loki
Submodule loki updated 17895 files