Skip to content

Commit 9a276a9

Browse files
authored
Merge pull request #60 from robusta-dev/fix-cli-dependencies
mark many python dependencies as extras so that cli doesn't require them for installation
2 parents 3359a55 + c6ff38f commit 9a276a9

4 files changed

Lines changed: 211 additions & 205 deletions

File tree

.github/workflows/test_robusta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
1717
source $HOME/.poetry/env
1818
cd src/
19-
poetry install
19+
poetry install --extras "all"
2020
- name: Install Helm
2121
run: |
2222
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ ENV ENV_TYPE=DEV
1414
# we install the project requirements and install the app in separate stages to optimize docker layer caching
1515
RUN mkdir /app
1616
RUN pip3 install --upgrade pip
17-
RUN pip3 install poetry==1.1.6
18-
RUN poetry config virtualenvs.create false
17+
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
18+
RUN /root/.local/bin/poetry config virtualenvs.create false
1919
COPY src/pyproject.toml /app
2020
COPY src/poetry.lock /app
2121
WORKDIR /app
22-
RUN bash -c "pip3 install --requirement <(poetry export --dev --format requirements.txt --without-hashes)"
22+
RUN /root/.local/bin/poetry install --no-root --extras "all"
2323

2424
ADD src/ /app
2525

0 commit comments

Comments
 (0)