Skip to content

Commit

Permalink
Merge pull request #33 from esc/docker/demo_scipy24
Browse files Browse the repository at this point in the history
adding initial Dockerfile for SciPy 2024
  • Loading branch information
seibert authored Jul 5, 2024
2 parents 9ce622a + 312e183 commit 41043b5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scipy2024/docker/demo_scipy24/Dockerfile
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"]
4 changes: 4 additions & 0 deletions scipy2024/docker/makefile
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

0 comments on commit 41043b5

Please sign in to comment.