Skip to content

Commit

Permalink
patching rye
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa committed Sep 5, 2024
1 parent 68998b1 commit 17b4559
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- name: "🐍 Install rye"
run: |
export RYE_INSTALL_OPTION="--yes"
export RYE_HOME="$HOME/.rye"
curl -sSf https://rye.astral.sh/get | bash
source /home/runner/.rye/env
- name: "⚒️ Run autoupdate for ic-deps"
run: |
Expand Down
13 changes: 3 additions & 10 deletions docker/runner.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ RUN ln -s /usr/local/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1 && \
ln -s /usr/local/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so.1.1 && \
rm -rf openssl


ENV RYE_HOME="/opt/rye"
ENV PATH="$RYE_HOME/shims:$PATH"

RUN curl -sSf https://rye.astral.sh/get | RYE_NO_AUTO_INSTALL=1 RYE_INSTALL_OPTION="--yes" bash

COPY pyproject.toml requirements.lock requirements-dev.lock .python-version README.md ./

RUN rye sync --no-dev --no-lock

# Runner user
RUN adduser --disabled-password --gecos "" --uid $RUNNER_UID runner \
&& usermod -aG sudo runner \
Expand Down Expand Up @@ -100,3 +90,6 @@ RUN cargo install cargo-zigbuild

RUN curl -sSf https://rye.astral.sh/get | RYE_HOME=/home/runner/.rye RYE_VERSION="0.4.0" RYE_INSTALL_OPTION="--yes" bash
RUN source /home/runner/.rye/env
COPY pyproject.toml requirements.lock requirements-dev.lock .python-version README.md ./

RUN rye sync --no-dev --no-lock

0 comments on commit 17b4559

Please sign in to comment.