Skip to content

Commit 9288143

Browse files
committed
Added hack to fix spack not setting correct PYTHONPATH in ubuntu18.04 docker images
Fixed redis path not in PATH in viz docker image
1 parent 9b01d2e commit 9288143

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

docker/ubuntu18.04/openmpi4.0.4/Dockerfile.chimbuko.benchmark_suite

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ WORKDIR /benchmark_suite/zmq_worker_client
5252
RUN cp /Downloads/PerformanceAnalysis/benchmark_suite/zmq_worker_client/* . && \
5353
source /spack/spack/share/spack/setup-env.sh && spack load boost mochi-sonata && make all
5454

55-
5655
#Cleanup
5756
FROM base
5857

5958
COPY --from=build /benchmark_suite /benchmark_suite
6059
WORKDIR /benchmark_suite
6160

61+
#Fix redis path
62+
ENV PATH=/opt/chimbuko/viz/redis-stable/src/:${PATH}
6263

6364
ENTRYPOINT [ "/bin/bash" ]

docker/ubuntu18.04/openmpi4.0.4/Dockerfile.mochi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ RUN pip3 install cython pkgconfig
1818
RUN source /spack/spack/share/spack/setup-env.sh && spack install py-mochi-sonata ^python@3.6.0 ^libfabric@1.9.0 ^py-numpy@1.19.5 ^argobots@main+stackunwind+tool ^mochi-margo@main ^mercury@2.0.1 && \
1919
spack gc -y && spack clean -a
2020

21+
COPY fixup_spack_python.sh /root/.spack/
22+
RUN /root/.spack/fixup_spack_python.sh
23+
2124
WORKDIR /
2225

2326
ENTRYPOINT [ "/bin/bash" ]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
cd /spack/spack/opt/spack/linux-ubuntu18.04-broadwell/gcc-7.5.0
3+
pydirs=$(ls | grep '^py-')
4+
echo $pydirs
5+
echo "PWD is" $(pwd)
6+
for p in $pydirs; do
7+
echo "cd to ${p}"
8+
cd ${p}/lib/python3.6
9+
ls -lrt
10+
mv site-packages site-packages-old
11+
ln -s ../python3/dist-packages site-packages
12+
ls -lrt
13+
cd -
14+
done

0 commit comments

Comments
 (0)