Skip to content

Commit dcdb74e

Browse files
authored
Binary name should be otelcol not core (#8)
Fixes #7 Signed-off-by: Juraci Paixão Kröhling <[email protected]>
1 parent 54b03e2 commit dcdb74e

File tree

14 files changed

+42
-42
lines changed

14 files changed

+42
-42
lines changed

.goreleaser.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ project_name: opentelemetry-collector-releases
22
checksum:
33
name_template: "{{ .ProjectName }}_checksums.txt"
44
archives:
5-
- id: "opentelemetry-collector"
5+
- id: "otelcol"
66
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
77
builds:
8-
- "opentelemetry-collector"
8+
- "otelcol"
99
builds:
10-
- id: "opentelemetry-collector"
11-
dir: "opentelemetry-collector/_build"
12-
binary: "opentelemetry-collector"
10+
- id: "otelcol"
11+
dir: "distributions/otelcol/_build"
12+
binary: "otelcol"
1313
env:
1414
- CGO_ENABLED=0
1515
goos:
@@ -33,13 +33,13 @@ builds:
3333
- goos: windows
3434
goarch: arm
3535
docker_manifests:
36-
- name_template: quay.io/jpkroehling/opentelemetry-collector:{{ .Tag }}
36+
- name_template: quay.io/jpkroehling/otelcol:{{ .Tag }}
3737
image_templates:
38-
- quay.io/jpkroehling/opentelemetry-collector:{{ .Tag }}-amd64
38+
- quay.io/jpkroehling/otelcol:{{ .Tag }}-amd64
3939
dockers:
4040
- image_templates:
41-
- "quay.io/jpkroehling/opentelemetry-collector:{{ .Tag }}-amd64"
42-
dockerfile: "opentelemetry-collector/Dockerfile"
41+
- "quay.io/jpkroehling/otelcol:{{ .Tag }}-amd64"
42+
dockerfile: "distributions/otelcol/Dockerfile"
4343
use: buildx
4444
build_flag_templates:
4545
- "--pull"
@@ -50,29 +50,29 @@ dockers:
5050
- "--label=org.opencontainers.image.source={{.GitURL}}"
5151
- "--platform=linux/amd64"
5252
extra_files:
53-
- "configs/opentelemetry-collector.yaml"
53+
- "configs/otelcol.yaml"
5454
goarch: amd64
5555
nfpms:
56-
- id: "opentelemetry-collector"
57-
package_name: "opentelemetry-collector"
56+
- id: "otelcol"
57+
package_name: "otelcol"
5858
license: Apache 2.0
59-
description: "OpenTelemetry Collector - opentelemetry-collector"
59+
description: "OpenTelemetry Collector - otelcol"
6060
formats:
6161
- apk
6262
- deb
6363
- rpm
6464
scripts:
65-
preinstall: "opentelemetry-collector/preinstall.sh"
66-
postinstall: "opentelemetry-collector/postinstall.sh"
67-
preremove: "opentelemetry-collector/preremove.sh"
65+
preinstall: "distributions/otelcol/preinstall.sh"
66+
postinstall: "distributions/otelcol/postinstall.sh"
67+
preremove: "distributions/otelcol/preremove.sh"
6868
builds:
69-
- "opentelemetry-collector"
69+
- "otelcol"
7070
contents:
71-
- src: "opentelemetry-collector/opentelemetry-collector.service"
72-
dst: "/lib/systemd/system/opentelemetry-collector.service"
73-
- src: "opentelemetry-collector/opentelemetry-collector.conf"
74-
dst: "/etc/opentelemetry-collector/opentelemetry-collector.conf"
71+
- src: "distributions/otelcol/otelcol.service"
72+
dst: "/lib/systemd/system/otelcol.service"
73+
- src: "distributions/otelcol/otelcol.conf"
74+
dst: "/etc/otelcol/otelcol.conf"
7575
type: "config|noreplace"
76-
- src: "configs/opentelemetry-collector.yaml"
77-
dst: "/etc/opentelemetry-collector/config.yaml"
76+
- src: "configs/otelcol.yaml"
77+
dst: "/etc/otelcol/config.yaml"
7878
type: config

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ YQ_VERSION ?= 4.11.1
77
YQ_DIR ?= ${OTELCOL_BUILDER_DIR}
88
YQ ?= ${YQ_DIR}/yq
99

10-
DISTRIBUTIONS ?= "opentelemetry-collector"
10+
DISTRIBUTIONS ?= "otelcol"
1111

1212
ci: check build
1313
check: ensure-goreleaser-up-to-date
File renamed without changes.

opentelemetry-collector/Dockerfile renamed to distributions/otelcol/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM alpine:3.13 as certs
22
RUN apk --update add ca-certificates
33

44
FROM alpine:3.13 AS otelcol
5-
COPY opentelemetry-collector /otelcol
5+
COPY otelcol /otelcol
66
# Note that this shouldn't be necessary, but in some cases the file seems to be
77
# copied with the execute bit lost (see #1317)
88
RUN chmod 755 /otelcol
@@ -14,7 +14,7 @@ USER ${USER_UID}
1414

1515
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
1616
COPY --from=otelcol /otelcol /
17-
COPY configs/opentelemetry-collector.yaml /etc/otel/config.yaml
17+
COPY configs/otelcol.yaml /etc/otel/config.yaml
1818
ENTRYPOINT ["/otelcol"]
1919
CMD ["--config", "/etc/otel/config.yaml"]
2020
EXPOSE 4317 55678 55679

opentelemetry-collector/manifest.yaml renamed to distributions/otelcol/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dist:
22
module: github.com/open-telemetry/opentelemetry-collector-releases/core
3-
name: opentelemetry-collector
3+
name: otelcol
44
description: OpenTelemetry Collector
55
version: 0.34.0
66
output_path: ./_build

opentelemetry-collector/opentelemetry-collector.service renamed to distributions/otelcol/otelcol.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Description=OpenTelemetry Collector
33
After=network.target
44

55
[Service]
6-
EnvironmentFile=/etc/opentelemetry-collector/opentelemetry-collector.conf
7-
ExecStart=/usr/local/bin/opentelemetry-collector $OTELCOL_OPTIONS
6+
EnvironmentFile=/etc/opentelemetry-collector/otelcol.conf
7+
ExecStart=/usr/local/bin/otelcol $OTELCOL_OPTIONS
88
KillMode=mixed
99
Restart=on-failure
1010
Type=simple

opentelemetry-collector/postinstall.sh renamed to distributions/otelcol/postinstall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# limitations under the License.
1616

1717
if command -v systemctl >/dev/null 2>&1; then
18-
systemctl enable opentelemetry-collector.service
19-
if [ -f /etc/opentelemetry-collector/config.yaml ]; then
20-
systemctl start opentelemetry-collector.service
18+
systemctl enable otelcol.service
19+
if [ -f /etc/otelcol/config.yaml ]; then
20+
systemctl start otelcol.service
2121
fi
2222
fi

opentelemetry-collector/preremove.sh renamed to distributions/otelcol/preremove.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
# limitations under the License.
1616

1717
if command -v systemctl >/dev/null 2>&1; then
18-
systemctl stop opentelemetry-collector.service
19-
systemctl disable opentelemetry-collector.service
18+
systemctl stop otelcol.service
19+
systemctl disable otelcol.service
2020
fi

0 commit comments

Comments
 (0)