Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: promtail-2.6.1
@ 2022-09-16 16:22 Shanduur
  2022-09-16 16:25 ` Shanduur
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Shanduur @ 2022-09-16 16:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

There is a new pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2222 bytes --]

From c225c53745f373d3fa38063e6b6fe65fbe14acad Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Fri, 16 Sep 2022 09:53:56 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  7 +++++++
 srcpkgs/promtail/template               | 24 ++++++++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..07d71af43904
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..c3dd207cb126
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+exec ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19 promtail \
+    --config.file=/etc/promtail/promtail-local-config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..ab65604eaf5f
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,24 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Promtail is an agent which ships the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/promtail-local-config.yaml
+	vsv promtail
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
@ 2022-09-16 16:25 ` Shanduur
  2022-09-16 16:28 ` [PR REVIEW] " Duncaen
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-16 16:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

New comment by Shanduur on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#issuecomment-1249558777

Comment:
Template copies varlog config which assumes all logs can be found acording to the `/var/log/*log` pattern. Assuming *socklog-unix* and *svlogd* are used, `/var/log/socklog/*/current` pattern should be used.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR REVIEW] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
  2022-09-16 16:25 ` Shanduur
@ 2022-09-16 16:28 ` Duncaen
  2022-09-16 17:08 ` [PR PATCH] [Updated] " Shanduur
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Duncaen @ 2022-09-16 16:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#discussion_r973198500

Comment:
use `vlogger`.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
  2022-09-16 16:25 ` Shanduur
  2022-09-16 16:28 ` [PR REVIEW] " Duncaen
@ 2022-09-16 17:08 ` Shanduur
  2022-09-16 17:14 ` Shanduur
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-16 17:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2234 bytes --]

From 23ea28af04144a92d13cc565f28cc3924777879e Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Fri, 16 Sep 2022 09:53:56 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  9 +++++++++
 srcpkgs/promtail/template               | 24 ++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..07d71af43904
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..a7d970379589
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+export ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
+
+exec promtail \
+    --config.file=/etc/promtail/promtail-local-config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..ab65604eaf5f
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,24 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Promtail is an agent which ships the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/promtail-local-config.yaml
+	vsv promtail
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (2 preceding siblings ...)
  2022-09-16 17:08 ` [PR PATCH] [Updated] " Shanduur
@ 2022-09-16 17:14 ` Shanduur
  2022-09-18 13:41 ` [PR REVIEW] " sgn
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-16 17:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2235 bytes --]

From e57ad99f5abb3ebf6464e88281ea617c27aac3d4 Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Fri, 16 Sep 2022 09:53:56 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  9 +++++++++
 srcpkgs/promtail/template               | 24 ++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..85df4d446f96
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..a7d970379589
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+export ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
+
+exec promtail \
+    --config.file=/etc/promtail/promtail-local-config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..ab65604eaf5f
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,24 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Promtail is an agent which ships the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/promtail-local-config.yaml
+	vsv promtail
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR REVIEW] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (3 preceding siblings ...)
  2022-09-16 17:14 ` Shanduur
@ 2022-09-18 13:41 ` sgn
  2022-09-18 13:42 ` sgn
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: sgn @ 2022-09-18 13:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#discussion_r973723323

Comment:
```suggestion
checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
conf_files=/etc/promtail/promtail-local-config.yaml
```

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR REVIEW] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (4 preceding siblings ...)
  2022-09-18 13:41 ` [PR REVIEW] " sgn
@ 2022-09-18 13:42 ` sgn
  2022-09-18 13:44 ` sgn
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: sgn @ 2022-09-18 13:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#discussion_r973723427

Comment:
```suggestion
short_desc="Agent to ship the contents of local logs to a Grafana Loki instance"
```

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR REVIEW] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (5 preceding siblings ...)
  2022-09-18 13:42 ` sgn
@ 2022-09-18 13:44 ` sgn
  2022-09-18 20:39 ` Shanduur
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: sgn @ 2022-09-18 13:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#discussion_r973723725

Comment:
Anyway, what's wrong with just make the file named: `/etc/promtail/config.yaml`?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR REVIEW] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (6 preceding siblings ...)
  2022-09-18 13:44 ` sgn
@ 2022-09-18 20:39 ` Shanduur
  2022-09-19 14:51 ` [PR PATCH] [Updated] " Shanduur
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-18 20:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

New review comment by Shanduur on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#discussion_r973772526

Comment:
@sgn  will adding just `conf_files=/etc/promtail/config.yaml` create empty file? Or do I need:

```diff
-	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/promtail-local-config.yaml
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/config.yaml
``` 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (7 preceding siblings ...)
  2022-09-18 20:39 ` Shanduur
@ 2022-09-19 14:51 ` Shanduur
  2022-09-19 14:58 ` Shanduur
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-19 14:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2240 bytes --]

From feefb7ec33f42e3c31bbecf579701196a369762b Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Fri, 16 Sep 2022 09:53:56 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  9 +++++++++
 srcpkgs/promtail/template               | 25 +++++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..85df4d446f96
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..a7d970379589
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+export ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
+
+exec promtail \
+    --config.file=/etc/promtail/promtail-local-config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..e8ffd1db22bf
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,25 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Agent to ship the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+conf_files=/etc/promtail/config.yaml
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/config.yaml
+	vsv promtail
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (8 preceding siblings ...)
  2022-09-19 14:51 ` [PR PATCH] [Updated] " Shanduur
@ 2022-09-19 14:58 ` Shanduur
  2022-09-19 14:58 ` [PR PATCH] [Closed]: " Shanduur
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-19 14:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Closed]: New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (9 preceding siblings ...)
  2022-09-19 14:58 ` Shanduur
@ 2022-09-19 14:58 ` Shanduur
  2022-09-19 14:59 ` [PR PATCH] [Updated] " Shanduur
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-19 14:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

There's a closed pull request on the void-packages repository

New package: promtail-2.6.1
https://github.com/void-linux/void-packages/pull/39318

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (10 preceding siblings ...)
  2022-09-19 14:58 ` [PR PATCH] [Closed]: " Shanduur
@ 2022-09-19 14:59 ` Shanduur
  2022-09-19 15:11 ` Duncaen
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-19 14:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2240 bytes --]

From 505c233ceed0ccb2cd172d610cd654a0678348d4 Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Mon, 19 Sep 2022 10:58:47 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  9 +++++++++
 srcpkgs/promtail/template               | 25 +++++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..85df4d446f96
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..a7d970379589
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+export ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
+
+exec promtail \
+    --config.file=/etc/promtail/promtail-local-config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..e8ffd1db22bf
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,25 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Agent to ship the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+conf_files=/etc/promtail/config.yaml
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/config.yaml
+	vsv promtail
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (11 preceding siblings ...)
  2022-09-19 14:59 ` [PR PATCH] [Updated] " Shanduur
@ 2022-09-19 15:11 ` Duncaen
  2022-09-19 15:12 ` [PR REVIEW] " Duncaen
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Duncaen @ 2022-09-19 15:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#issuecomment-1251159876

Comment:
I don't really like how the service invents a new "default" configuration file and its location, this always leads to issues when upstream sets their own default.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR REVIEW] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (12 preceding siblings ...)
  2022-09-19 15:11 ` Duncaen
@ 2022-09-19 15:12 ` Duncaen
  2022-09-19 16:35 ` [PR PATCH] [Updated] " Shanduur
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Duncaen @ 2022-09-19 15:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#discussion_r974377921

Comment:
This is the wrong path, if we keep shipping the "default" configuration file.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (13 preceding siblings ...)
  2022-09-19 15:12 ` [PR REVIEW] " Duncaen
@ 2022-09-19 16:35 ` Shanduur
  2022-09-19 16:36 ` Shanduur
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-19 16:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

There is an updated pull request by Shanduur against master on the void-packages repository

https://github.com/Shanduur/void-packages new-package-promtail
https://github.com/void-linux/void-packages/pull/39318

New package: promtail-2.6.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



A patch file from https://github.com/void-linux/void-packages/pull/39318.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-promtail-39318.patch --]
[-- Type: text/x-diff, Size: 2225 bytes --]

From ea0e4788f447cdbb4ac926fc5f8b1857e61d9b79 Mon Sep 17 00:00:00 2001
From: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
Date: Mon, 19 Sep 2022 10:58:47 -0400
Subject: [PATCH] New package: promtail-2.6.1

---
 srcpkgs/promtail/files/promtail/log/run |  2 ++
 srcpkgs/promtail/files/promtail/run     |  9 +++++++++
 srcpkgs/promtail/template               | 25 +++++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 srcpkgs/promtail/files/promtail/log/run
 create mode 100644 srcpkgs/promtail/files/promtail/run
 create mode 100644 srcpkgs/promtail/template

diff --git a/srcpkgs/promtail/files/promtail/log/run b/srcpkgs/promtail/files/promtail/log/run
new file mode 100644
index 000000000000..85df4d446f96
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t promtail
diff --git a/srcpkgs/promtail/files/promtail/run b/srcpkgs/promtail/files/promtail/run
new file mode 100644
index 000000000000..7e8fd5423716
--- /dev/null
+++ b/srcpkgs/promtail/files/promtail/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -f ./conf ] && . ./conf
+
+export ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19
+
+exec promtail \
+    --config.file=/etc/promtail/config.yaml \
+    ${ARGS} 2>&1
diff --git a/srcpkgs/promtail/template b/srcpkgs/promtail/template
new file mode 100644
index 000000000000..e8ffd1db22bf
--- /dev/null
+++ b/srcpkgs/promtail/template
@@ -0,0 +1,25 @@
+# Template file for 'promtail'
+pkgname=promtail
+version=2.6.1
+revision=1
+wrksrc="loki-${version}"
+build_style=go
+go_import_path="github.com/grafana/loki"
+go_package="${go_import_path}/clients/cmd/promtail"
+short_desc="Agent to ship the contents of local logs to a Grafana Loki instance"
+maintainer="Mateusz Urbanek <murbanek@shanduur.com>"
+license="Apache-2.0"
+homepage="https://grafana.com/oss/loki/"
+distfiles="https://github.com/grafana/loki/archive/v${version}.tar.gz"
+checksum=4b41175e552dd198bb9cae213df3c0d9ca8cacd0b673f79d26419cea7cfb2df7
+conf_files=/etc/promtail/config.yaml
+
+pre_build() {
+	export CGO_ENABLED=0
+}
+
+post_install() {
+	vmkdir etc/promtail
+	vcopy clients/cmd/promtail/promtail-local-config.yaml etc/promtail/config.yaml
+	vsv promtail
+}

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (14 preceding siblings ...)
  2022-09-19 16:35 ` [PR PATCH] [Updated] " Shanduur
@ 2022-09-19 16:36 ` Shanduur
  2022-12-29  1:57 ` github-actions
  2023-01-12  2:29 ` [PR PATCH] [Closed]: " github-actions
  17 siblings, 0 replies; 19+ messages in thread
From: Shanduur @ 2022-09-19 16:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

New comment by Shanduur on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#issuecomment-1251264610

Comment:
> I don't really like how the service invents a new "default" configuration file and its location, this always leads to issues when upstream sets their own default.

So what do you propose? Is there a way to include that config file into the tree, so the "default" won't change?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (15 preceding siblings ...)
  2022-09-19 16:36 ` Shanduur
@ 2022-12-29  1:57 ` github-actions
  2023-01-12  2:29 ` [PR PATCH] [Closed]: " github-actions
  17 siblings, 0 replies; 19+ messages in thread
From: github-actions @ 2022-12-29  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/39318#issuecomment-1367021673

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Closed]: New package: promtail-2.6.1
  2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
                   ` (16 preceding siblings ...)
  2022-12-29  1:57 ` github-actions
@ 2023-01-12  2:29 ` github-actions
  17 siblings, 0 replies; 19+ messages in thread
From: github-actions @ 2023-01-12  2:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

There's a closed pull request on the void-packages repository

New package: promtail-2.6.1
https://github.com/void-linux/void-packages/pull/39318

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64
  - aarch64-musl
  - aarch64



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-01-12  2:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-16 16:22 [PR PATCH] New package: promtail-2.6.1 Shanduur
2022-09-16 16:25 ` Shanduur
2022-09-16 16:28 ` [PR REVIEW] " Duncaen
2022-09-16 17:08 ` [PR PATCH] [Updated] " Shanduur
2022-09-16 17:14 ` Shanduur
2022-09-18 13:41 ` [PR REVIEW] " sgn
2022-09-18 13:42 ` sgn
2022-09-18 13:44 ` sgn
2022-09-18 20:39 ` Shanduur
2022-09-19 14:51 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 14:58 ` Shanduur
2022-09-19 14:58 ` [PR PATCH] [Closed]: " Shanduur
2022-09-19 14:59 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 15:11 ` Duncaen
2022-09-19 15:12 ` [PR REVIEW] " Duncaen
2022-09-19 16:35 ` [PR PATCH] [Updated] " Shanduur
2022-09-19 16:36 ` Shanduur
2022-12-29  1:57 ` github-actions
2023-01-12  2:29 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).