Skip to content

DEV: update gitpod to give user cache write permissions (fix pre-commit) #52700

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

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ tasks:
git pull --unshallow # need to force this else the prebuild fails
git fetch --tags
python setup.py build_ext -j 4
python -m pip install -e . --no-build-isolation
echo "🛠 Completed rebuilding Pandas!! 🛠 "
echo "✨ Pre-build complete! You can close this terminal ✨ "

Expand Down
2 changes: 2 additions & 0 deletions gitpod/gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ WORKDIR ${WORKSPACE}
# Build pandas to populate the cache used by ccache
RUN git config --global --add safe.directory /workspace/pandas
RUN conda activate ${CONDA_ENV} && \
python -m pip install -e . --no-build-isolation && \
python setup.py build_ext --inplace && \
ccache -s

Expand All @@ -43,4 +44,5 @@ RUN rm -rf ${WORKSPACE}

# -----------------------------------------------------------------------------
# Always return to non privileged user
RUN chown -R gitpod:gitpod /home/gitpod/.cache/
USER gitpod