Skip to content

Commit

Permalink
Use --no-index flag when installing the main package
Browse files Browse the repository at this point in the history
  • Loading branch information
znerol committed Jan 5, 2024
1 parent 93629b9 commit 0bcec60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: pip install -r requirements-test.txt

- name: Install pve_exporter
run: pip install .
run: pip install --no-index .

- name: Run pylint
run: pylint pve_exporter
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk add --no-cache \
ADD . /src/prometheus-pve-exporter
RUN python3 -m venv /opt/prometheus-pve-exporter && \
/opt/prometheus-pve-exporter/bin/pip install -r /src/prometheus-pve-exporter/requirements.txt && \
/opt/prometheus-pve-exporter/bin/pip install /src/prometheus-pve-exporter && \
/opt/prometheus-pve-exporter/bin/pip install --no-index /src/prometheus-pve-exporter && \
ln -s /opt/prometheus-pve-exporter/bin/pve_exporter /usr/bin/pve_exporter && \
rm -rf /src/prometheus-pve-exporter /root/.cache

Expand Down

0 comments on commit 0bcec60

Please sign in to comment.