-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
42 lines (32 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM fedora:36
RUN dnf install -y vim findutils gcc gcc-c++ make git svn curl cmake python3 \
boost-devel gperftools-devel hwloc-devel libatomic vim gdb file \
python3-pybind11 python3-devel python3-numpy python3-matplotlib
ENV BUILD_PROCS 3
RUN dnf install -y clang libcxx-devel
COPY cxx17_shared_ptr_array.cpp /usr/local/include
COPY hpx-build.sh /usr/local/bin/
RUN bash /usr/local/bin/hpx-build.sh
RUN python3 -m ensurepip
RUN python3 -m pip install jupyter termcolor
RUN mkdir -p /usr/local/python
WORKDIR /usr/local/python
COPY runcode.py .
WORKDIR /usr/local/src
COPY clangmi.cpp .
COPY clangmi.cppm .
COPY clangmipy11.cpp .
COPY Seg.hpp .
# Copying this header makes a minor fix to suppress a warning message.
COPY runtime_support.hpp /usr/local/include/hpx/runtime/components/server/
RUN useradd -m jovyan
COPY --chown=jovyan cppnow2021.ipynb /home/jovyan/
RUN mkdir -p /home/jovyan/images
COPY --chown=jovyan cppnow.png /home/jovyan/images
COPY runtime_support.hpp /usr/local/include/hpx/runtime/components/server/runtime_support.hpp
USER jovyan
WORKDIR /home/jovyan
ENV PYTHONPATH /usr/local/python
RUN pip3 install --user jupyterthemes
RUN /home/jovyan/.local/bin/jt -t solarizedl -tfs 15 -fs 15 -ofs 15 -cellw 100%
CMD jupyter notebook --ip 0.0.0.0 --port $PORT