Skip to content

Commit

Permalink
Merge pull request #157 from nicolasbock/pipx
Browse files Browse the repository at this point in the history
Use `pipx` on Noble
  • Loading branch information
nicolasbock authored May 30, 2024
2 parents f818885 + b659e4e commit 5a34474
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions athena-processor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ processor:
exit-codes: 0 2 127 126
run: |
#!/bin/bash
pip3 install hotsos --upgrade &>/dev/null
set -e -u
pipx install hotsos &>/dev/null
pipx upgrade hotsos &>/dev/null
tar -xf {{filepath}} -C {{basedir}} &>/dev/null
hotsos --save --output-path hotsos-out --all-logs {{basedir}}/$(basename {{filepath}} .tar.xz)/ &>/dev/null
~/.local/bin/hotsos --save --output-path hotsos-out --all-logs {{basedir}}/$(basename {{filepath}} .tar.xz)/ &>/dev/null
if [ -s hotsos-out/*/summary/full/yaml/hotsos-summary.all.yaml ]; then
cat hotsos-out/*/summary/full/yaml/hotsos-summary.all.yaml
else
Expand All @@ -47,9 +49,11 @@ processor:
exit-codes: 0 2 127 126
run: |
#!/bin/bash
pip3 install hotsos --upgrade &>/dev/null
set -e -u
pipx install hotsos &>/dev/null
pipx upgrade hotsos &>/dev/null
tar -xf {{filepath}} -C {{basedir}} &>/dev/null
hotsos --short --save --output-path hotsos-out --all-logs {{basedir}}/$(basename {{filepath}} .tar.xz)/ &>/dev/null
~/.local/bin/hotsos --short --save --output-path hotsos-out --all-logs {{basedir}}/$(basename {{filepath}} .tar.xz)/ &>/dev/null
if [ -s hotsos-out/*/summary/short/yaml/hotsos-summary.all.yaml ]; then
cat hotsos-out/*/summary/short/yaml/hotsos-summary.all.yaml
else
Expand Down
2 changes: 1 addition & 1 deletion cmd/processor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends
git \
jq \
patool \
pipx \
python3 \
python3-pip \
python3-simplejson \
python3-yaml \
xz-utils
Expand Down

0 comments on commit 5a34474

Please sign in to comment.