Skip to content

Commit

Permalink
update dependencies in shell files
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Dec 19, 2024
1 parent 8958cc6 commit 34c607c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s"
]
},
{
"customType": "regex",
"description": "Update _version variables in run.sh",
"fileMatch": ["(^|/)run.sh$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?_version=(?<currentValue>.+?)\\s"
]
}
]
}
8 changes: 5 additions & 3 deletions examples/java/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ set -euox pipefail
if [[ ! -f ./target/rolldice.jar ]]; then
./mvnw clean package
fi
version=2.10.0
jar=opentelemetry-javaagent-${version}.jar

# renovate: datasource=github-releases depName=opentelemetry-java-instrumentation packageName=open-telemetry/opentelemetry-java-instrumentation
opentelemetry_javaagent_version=2.10.0
jar=opentelemetry-javaagent-${opentelemetry_javaagent_version}.jar
if [[ ! -f ./${jar} ]]; then
curl -vL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${version}/opentelemetry-javaagent.jar -o ${jar}
curl -vL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${opentelemetry_javaagent_version}/opentelemetry-javaagent.jar -o ${jar}
fi
export OTEL_RESOURCE_ATTRIBUTES="service.name=rolldice,service.instance.id=localhost:8080"
# uncomment the next line to switch to Prometheus native histograms.
Expand Down
4 changes: 3 additions & 1 deletion examples/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ COPY requirements.txt .
# 2. Run `pip freeze > requirements.txt` in the same directory as your app.py file
RUN pip install --no-cache-dir -r requirements.txt

RUN pip install --no-cache-dir 'opentelemetry-distro[otlp]==0.46b0'
# renovate: datasource=github-releases depName=opentelemetry-python-contrib packageName=open-telemetry/opentelemetry-python-contrib
ENV OPENTELEMETRY_DISTRO_VERSION=0.46b0
RUN pip install --no-cache-dir 'opentelemetry-distro[otlp]==$OPENTELEMETRY_DISTRO_VERSION'
RUN opentelemetry-bootstrap -a install

COPY app.py .
Expand Down
4 changes: 3 additions & 1 deletion examples/python/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ source ./venv/bin/activate
pip install -r requirements.txt

# Step 1: Install the OpenTelemetry SDK
pip install 'opentelemetry-distro[otlp]==0.46b0'
# renovate: datasource=github-releases depName=opentelemetry-python-contrib packageName=open-telemetry/opentelemetry-python-contrib
opentelemetry_distro_version=0.46b0
pip install "opentelemetry-distro[otlp]==${opentelemetry_distro_version}"
opentelemetry-bootstrap -a install

# Step 2: Run the application
Expand Down

0 comments on commit 34c607c

Please sign in to comment.