Skip to content

Commit fc1a1d3

Browse files
committed
fix: Pin poetry version and add export plugin.
1 parent 583b78a commit fc1a1d3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

services/voting-node/Earthfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ builder:
2121
zlib1g-dev
2222

2323
# Install Poetry
24-
RUN curl -sSL https://install.python-poetry.org | python3 -
24+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
2525

2626
SAVE IMAGE --cache-hint
2727

@@ -42,6 +42,7 @@ deps:
4242
RUN poetry config installer.max-workers 10
4343
# Install package dependencies without the voting_node package
4444
RUN poetry install --only main --no-root
45+
RUN poetry self add poetry-plugin-export
4546

4647
# Copy the voting_node source code
4748
COPY --dir voting_node README.md ./

utilities/fragment-exporter/Earthfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ deps:
1111
RUN apt-get update && \
1212
apt-get install -y --no-install-recommends curl
1313

14-
RUN curl -sSL https://install.python-poetry.org | python3 -
14+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
1515

1616
COPY pyproject.toml .
1717
COPY poetry.lock .
1818

1919
RUN poetry install --only main --no-root
20+
RUN poetry self add poetry-plugin-export
2021

2122
src:
2223
FROM +deps

utilities/ideascale-importer/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
apt-get install -y --no-install-recommends curl build-essential libxml2-dev libxslt-dev zlib1g-dev python3-lxml
1616

1717
# Install Poetry
18-
RUN curl -sSL https://install.python-poetry.org | python3 -
18+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
1919

2020
# Set path to poetry
2121
ENV PATH=/root/.local/bin:$PATH

0 commit comments

Comments
 (0)