Skip to content

Commit

Permalink
remove ansible uninstallation from dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed May 16, 2024
1 parent 337ce12 commit dee12b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/grid/backend/backend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ COPY syft/src/syft/VERSION ./syft/src/syft/
RUN --mount=type=cache,target=/root/.cache,sharing=locked \
# remove torch because we already have the cpu version pre-installed
sed --in-place /torch==/d ./syft/setup.cfg && \
uv pip install -e ./syft[data_science] && \
if uv pip freeze | grep -q ansible; then uv pip freeze | grep ansible | xargs uv pip uninstall; fi
uv pip install -e ./syft[data_science]

# ==================== [Final] Setup Syft Server ==================== #

Expand Down
3 changes: 1 addition & 2 deletions packages/grid/syft-client/syft.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ RUN apk update && apk upgrade && \
COPY ./syft /tmp/syft

RUN --mount=type=cache,target=/root/.cache,sharing=locked \
pip install --user jupyterlab==4.1.6 pip-autoremove==0.10.0 /tmp/syft && \
pip-autoremove ansible ansible-core -y
pip install --user jupyterlab==4.1.6 /tmp/syft

# ==================== [Final] Setup Syft Client ==================== #

Expand Down

0 comments on commit dee12b1

Please sign in to comment.