Skip to content

Commit

Permalink
Use latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Aug 28, 2024
1 parent 8c5a6c5 commit dfbc535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/otelcollector-linux-amd64/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -e -x

BOSH_PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/packages}
OTELCOL_VERSION=$(ls -vr otelcollector-linux-amd64/otelcol-contrib_*_linux_amd64* | sed 's/.*\/otelcol-contrib_\(.*\)_linux_amd64.*$/\1/' | head -1)
FILE=$(ls -vr "otelcollector-linux-amd64/otelcol-contrib_${OTELCOL_VERSION}_linux_amd64"* | head -1)
OTELCOL_VERSION=$(ls -vr otelcollector-linux-amd64/otelcol-*_linux_amd64* | sed 's/.*\/otelcol-\(.*\)_\(.*\)_linux_amd64.*$/\2/' | head -1)
FILE=$(ls -vr otelcollector-linux-amd64/otelcol-*_${OTELCOL_VERSION}_linux_amd64* | head -1)

mkdir -p ${BOSH_INSTALL_TARGET}/bin
case "${FILE##*.}" in
Expand All @@ -14,7 +14,7 @@ case "${FILE##*.}" in
tgz)
echo "Extracting otel collector version ${OTELCOL_VERSION} ... "
tar xzf ${FILE} -C ${BOSH_INSTALL_TARGET}
mv ${BOSH_INSTALL_TARGET}/otelcol-contrib ${BOSH_INSTALL_TARGET}/bin/otelcollector
mv ${BOSH_INSTALL_TARGET}/otelcol-* ${BOSH_INSTALL_TARGET}/bin/otelcollector
;;
*)
echo "Unknown file extension, valid types are bin and tgz"
Expand Down
7 changes: 4 additions & 3 deletions packages/otelcollector-linux-amd64/spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: otelcollector-linux-amd64
dependencies: []

files:
- otelcollector-linux-amd64/otelcol-contrib_0.107.0_linux_amd64.bin # https://github.com/springernature/o11y-otel-contextprocessor/releases/download/v0.107.0-cfgardenobserver0/otelcol-dev.bin
# - otelcollector-linux-amd64/otelcol-contrib_0.100.0_linux_amd64.tgz # https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.100.0/otelcol-contrib_0.100.0_linux_amd64.tar.gz
- bosh-helpers/**/*
- bosh-helpers/**/*
- otelcollector-linux-amd64/otelcol_contrib_0.107.0_linux_amd64.bin # https://github.com/springernature/o11y-otel-contextprocessor/releases/download/v0.107.0-sn/otelcol-custom_0.107.0-sn_linux_amd64.bin
#- otelcollector-linux-amd64/otelcol-contrib_0.100.0_linux_amd64.tgz # https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.100.0/otelcol-contrib_0.100.0_linux_amd64.tar.gz

0 comments on commit dfbc535

Please sign in to comment.