-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
DEV: Add gitpod files #48107
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
DEV: Add gitpod files #48107
Changes from 1 commit
ca20736
7fe67e6
1c8929f
4b70c74
e527210
1795077
4fd5cdd
bdbc11a
82e771e
540b144
f3beca0
424b199
38e096e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
# Doing a local shallow clone - keeps the container secure | ||
# and much slimmer than using COPY directly or making a | ||
# remote clone | ||
ARG BASE_CONTAINER="pandas/pandas-dev:latest" | ||
ARG BASE_CONTAINER="pythonpandas/pandas-dev:latest" | ||
FROM gitpod/workspace-base:latest as clone | ||
|
||
COPY --chown=gitpod . /tmp/pandas_repo | ||
|
||
# the clone should be deep enough for versioneer to work | ||
RUN git clone --shallow-since=2022-01-01 file:////tmp/pandas_repo /tmp/pandas | ||
RUN git clone https://github.com/pandas-dev/pandas --depth 12 /tmp/pandas | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is depth of 12 then deep enough? Or will this still automatically fetch tags? (otherwise you can also explicitly fetch tags in a separate command) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought it should be when we last chatted about this?! |
||
|
||
# ----------------------------------------------------------------------------- | ||
# Using the pandas-dev Docker image as a base | ||
|
@@ -24,7 +22,7 @@ USER root | |
ENV WORKSPACE=/workspace/pandas/ \ | ||
CONDA_ENV=pandas-dev | ||
|
||
# Allows this Dockerfile to activate conda environments | ||
# Allows this micromamba.Dockerfile to activate conda environments | ||
SHELL ["/bin/bash", "--login", "-o", "pipefail", "-c"] | ||
|
||
# Copy over the shallow clone | ||
|
@@ -35,8 +33,6 @@ WORKDIR ${WORKSPACE} | |
|
||
# Build pandas to populate the cache used by ccache | ||
RUN git config --global --add safe.directory /workspace/pandas | ||
# chained RUN failed to activate. trying separate run commands | ||
RUN git submodule update --init --depth=1 -- pandas/core/src/umath/svml | ||
RUN conda activate ${CONDA_ENV} && \ | ||
python setup.py build_ext --inplace && \ | ||
ccache -s | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't be opposed to adding this to
environment.yml