Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set break-system-packages in Debian 12 helix image #1046

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/debian/12/helix/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ RUN /usr/sbin/adduser --disabled-password --gecos '' --uid 1000 --shell /bin/bas
chmod 755 /root && \
echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers

# Debian 12 is set up with its python environment marked as externally managed
# (https://packaging.python.org/en/latest/specifications/externally-managed-environments/).
# This causes errors when helix setup (at runtime) does 'sudo pip install'.
# Work around this by overriding the check for externally managed environments.
RUN mkdir -p ~/.config/pip && \
echo "[global]\nbreak-system-packages = true" > ~/.config/pip/pip.conf

USER helixbot

RUN python -m virtualenv /home/helixbot/.vsts-env
Loading