Skip to content

Commit 1bd193e

Browse files
authored
fix broken Docker image build (#45889)
* add "--no-build-isolation" to pip install * add job "build_docker_dev_environment" * Trigger Build * fix wrong group name * add step "Clean up dangling images" * pin base image * add newline at end of file * always pull the latest version of the base image
1 parent 2541e00 commit 1bd193e

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/code-checks.yml

+24
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,27 @@ jobs:
156156
name: Benchmarks log
157157
path: asv_bench/benchmarks.log
158158
if: failure()
159+
160+
build_docker_dev_environment:
161+
name: Build Docker Dev Environment
162+
runs-on: ubuntu-latest
163+
defaults:
164+
run:
165+
shell: bash -l {0}
166+
167+
concurrency:
168+
# https://github.community/t/concurrecy-not-work-for-push/183068/7
169+
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-build_docker_dev_environment
170+
cancel-in-progress: true
171+
172+
steps:
173+
- name: Clean up dangling images
174+
run: docker image prune -f
175+
176+
- name: Checkout
177+
uses: actions/checkout@v2
178+
with:
179+
fetch-depth: 0
180+
181+
- name: Build image
182+
run: docker build --pull --no-cache --tag pandas-dev-env .

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/condaforge/miniforge3
1+
FROM quay.io/condaforge/miniforge3:4.11.0-0
22

33
# if you forked pandas, you can pass in your own GitHub username to use your fork
44
# i.e. gh_username=myname
@@ -45,4 +45,4 @@ RUN . /opt/conda/etc/profile.d/conda.sh \
4545
&& cd "$pandas_home" \
4646
&& export \
4747
&& python setup.py build_ext -j 4 \
48-
&& python -m pip install -e .
48+
&& python -m pip install --no-build-isolation -e .

0 commit comments

Comments
 (0)