Skip to content

Commit

Permalink
install otel-cli from tarball instead of .deb
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Oct 10, 2024
1 parent d674162 commit b430b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ rm -rf gh_*

# Install OpenTelemetry instrumentation
pip install opentelemetry-distro[otlp] opentelemetry-exporter-prometheus
curl -L -o otel-cli-${CPU_ARCH}.deb https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.deb
dpkg -i otel-cli-${CPU_ARCH}.deb
curl -L -o otel-cli-${{ CPU_ARCH }}.tar.gz https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${{ CPU_ARCH }}.tar.gz
tar -zxf otel-cli-${{ CPU_ARCH }}.tar.gz
mv otel-cli /usr/local/bin/
git clone -b add-conda-build-instrumentation https://github.com/msarahan/opentelemetry-python-contrib
pip install -e ./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-conda-build
opentelemetry-bootstrap -a install
Expand Down
5 changes: 3 additions & 2 deletions ci-wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ COPY pip.conf /etc/xdg/pip/pip.conf
RUN <<EOF
# Install OpenTelemetry instrumentation
pip install opentelemetry-distro[otlp] opentelemetry-exporter-prometheus
curl -L -o otel-cli-${CPU_ARCH}.deb https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.deb
dpkg -i otel-cli-${CPU_ARCH}.deb
curl -L -o otel-cli-${{ matrix.ARCH }}.tar.gz https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${{ matrix.ARCH }}.tar.gz
tar -zxf otel-cli-${{ matrix.ARCH }}.tar.gz
mv otel-cli /usr/local/bin/
git clone -b add-conda-build-instrumentation https://github.com/msarahan/opentelemetry-python-contrib
pip install -e ./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-conda-build
opentelemetry-bootstrap -a install
Expand Down

0 comments on commit b430b6f

Please sign in to comment.