-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from esc/docker/demo_scipy24
adding initial Dockerfile for SciPy 2024
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM --platform=linux/amd64 continuumio/miniconda3:latest | ||
|
||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
RUN conda create -n scipy24 numba/label/dev::numba=0.61.0dev0 numba/label/dev::llvmlite=0.44.0dev0 setuptools setuptools_scm clang=14 python=3.11 gcc_linux-64 gxx_linux-64 cython -y | ||
|
||
RUN conda init && source /root/.bashrc && conda activate scipy24 | ||
|
||
RUN mkdir -p /root/git | ||
|
||
RUN git clone https://github.com/numba/pixie.git /root/git/pixie | ||
|
||
RUN git clone https://github.com/numba/numba.git /root/git/numba | ||
|
||
RUN conda init && source /root/.bashrc && conda activate scipy24 && cd /root/git/pixie && python -m pip install --no-deps --no-index --no-build-isolation -vv -e . | ||
|
||
RUN cd /root/git/numba && git apply /root/git/pixie/scipy2024/numba_bootstrap.patch | ||
|
||
RUN cp /root/git/pixie/scipy2024/* . | ||
|
||
RUN conda init && source /root/.bashrc && conda activate scipy24 && python bootstrap.py /root/git/numba | ||
|
||
RUN echo "conda activate scipy24" >> /root/.bashrc | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build: | ||
docker build demo_scipy24 -t numba/scipy24 | ||
run: | ||
docker run -i --platform linux/amd64 -t numba/scipy24 |