File tree 9 files changed +33
-20
lines changed
9 files changed +33
-20
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ jobs:
25
25
- name : Build Docker container
26
26
run : docker build -t local docker/${{ matrix.shmem }}/
27
27
- name : run shmem4py test-1
28
- run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && make test-1 opt=-v"
28
+ run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "source /venv/bin/activate && pip install . && make test-1 opt=-v"
29
29
- name : run shmem4py test-2
30
- run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && make test-2 opt=-v"
30
+ run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "source /venv/bin/activate && pip install . && make test-2 opt=-v"
31
31
- name : run shmem4py demo-test-1
32
- run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && cd demo && make test-1 opt=-v"
32
+ run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "source /venv/bin/activate && pip install . && cd demo && make test-1 opt=-v"
33
33
- name : run shmem4py demo-test-2
34
- run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && cd demo && make test-2 opt=-v"
34
+ run : docker run -v $PWD:/repo -w/repo local /bin/bash -c "source /venv/bin/activate && pip install . && cd demo && make test-2 opt=-v"
Original file line number Diff line number Diff line change 1
1
FROM fedora:latest
2
+ SHELL ["/bin/bash" , "-c" ]
2
3
3
4
ENV INSTALL_DIR=/home/shmem
4
5
RUN mkdir /home/shmem
@@ -29,5 +30,5 @@ ENV PATH=/home/shmem/openmpi-4.1.6/install/bin:"${PATH}" \
29
30
OMPI_ALLOW_RUN_AS_ROOT=1 \
30
31
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
31
32
32
- RUN ln -s /usr/bin/python3 /usr/bin/python
33
- RUN python -m pip install setuptools cffi numpy
33
+ RUN python3 -m venv /venv
34
+ RUN source /venv/bin/activate && pip install setuptools cffi numpy
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:latest
2
+ SHELL ["/bin/bash" , "-c" ]
3
+
2
4
ENV INSTALL_DIR=/home/shmem
3
5
RUN mkdir /home/shmem
4
6
ENV DEBIAN_FRONTEND=noninteractive
@@ -10,7 +12,7 @@ RUN apt-get update -y && apt-get install -y \
10
12
automake \
11
13
libtool \
12
14
wget \
13
- python3 python3-pip python-is-python3
15
+ python3 python3-pip python-is-python3 python3-venv
14
16
15
17
RUN cd $INSTALL_DIR && \
16
18
wget https://github.com/openucx/ucx/archive/refs/tags/v1.15.0.tar.gz && \
@@ -33,4 +35,5 @@ ENV PATH=/home/shmem/openmpi-4.1.6/install/bin:"${PATH}" \
33
35
OMPI_ALLOW_RUN_AS_ROOT=1 \
34
36
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
35
37
36
- RUN python -m pip install numpy cffi
38
+ RUN python3 -m venv /venv
39
+ RUN source /venv/bin/activate && pip install numpy cffi
Original file line number Diff line number Diff line change 1
1
FROM fedora:latest
2
+ SHELL ["/bin/bash" , "-c" ]
2
3
3
4
ENV INSTALL_DIR=/home/shmem
4
5
RUN mkdir /home/shmem
@@ -16,6 +17,6 @@ RUN cd $INSTALL_DIR
16
17
make -j && make install
17
18
18
19
ENV PATH="/home/shmem/oshmpi/install/bin/:/usr/lib64/mpich/bin/:${PATH}"
19
- RUN ln -s /usr/bin/python3 /usr/bin/python
20
- RUN python -m pip install numpy cffi
20
+ RUN python3 -m venv /venv
21
+ RUN source /venv/bin/activate && pip install numpy cffi
21
22
ENV PSM3_DEVICES="self,shm"
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:latest
2
+ SHELL ["/bin/bash" , "-c" ]
2
3
3
4
ENV INSTALL_DIR=/home/shmem
4
5
RUN mkdir /home/shmem
@@ -12,7 +13,7 @@ RUN apt-get update -y && apt-get install -y \
12
13
automake \
13
14
libtool \
14
15
mpich \
15
- python3 python3-pip python-is-python3
16
+ python3 python3-pip python-is-python3 python3-venv
16
17
17
18
RUN cd $INSTALL_DIR && \
18
19
git clone https://github.com/pmodels/oshmpi --recurse-submodules && \
@@ -22,4 +23,5 @@ RUN cd $INSTALL_DIR
22
23
make -j && make install
23
24
24
25
ENV PATH="/home/shmem/oshmpi/install/bin/:${PATH}"
25
- RUN python -m pip install numpy cffi
26
+ RUN python3 -m venv /venv
27
+ RUN source /venv/bin/activate && pip install numpy cffi
Original file line number Diff line number Diff line change 1
1
FROM fedora:latest
2
+ SHELL ["/bin/bash" , "-c" ]
2
3
3
4
ENV INSTALL_DIR=/home/shmem
4
5
RUN mkdir /home/shmem
@@ -36,5 +37,5 @@ ENV PATH=$INSTALL_DIR/osss-ucx/install/bin:/home/shmem/openmpi-4.1.6/install/bin
36
37
OMPI_ALLOW_RUN_AS_ROOT=1 \
37
38
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
38
39
39
- RUN ln -s /usr/bin/python3 /usr/bin/python
40
- RUN python -m pip install setuptools cffi numpy
40
+ RUN python3 -m venv /venv
41
+ RUN source /venv/bin/activate && pip install setuptools cffi numpy
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:latest
2
+ SHELL ["/bin/bash" , "-c" ]
2
3
3
4
ENV INSTALL_DIR=/home/shmem
4
5
RUN mkdir /home/shmem
@@ -13,7 +14,7 @@ RUN apt-get update -y && apt-get install -y \
13
14
libtool \
14
15
pkg-config \
15
16
libpmix-bin libpmix-dev \
16
- python3 python3-pip python-is-python3
17
+ python3 python3-pip python-is-python3 python3-venv
17
18
18
19
RUN cd $INSTALL_DIR && \
19
20
wget https://github.com/openucx/ucx/archive/refs/tags/v1.15.0.tar.gz && \
@@ -43,4 +44,5 @@ ENV PATH=$INSTALL_DIR/osss-ucx/install/bin:/home/shmem/openmpi-4.1.6/install/bin
43
44
OMPI_ALLOW_RUN_AS_ROOT=1 \
44
45
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
45
46
46
- RUN python -m pip install setuptools cffi numpy
47
+ RUN python3 -m venv /venv
48
+ RUN source /venv/bin/activate && pip install setuptools cffi numpy
Original file line number Diff line number Diff line change 1
1
# adapted from https://github.com/Sandia-OpenSHMEM/SOS/blob/master/scripts/docker/Dockerfile
2
2
3
3
FROM fedora:latest
4
+ SHELL ["/bin/bash" , "-c" ]
4
5
5
6
ENV INSTALL_DIR=/home/shmem
6
7
RUN mkdir /home/shmem
@@ -33,5 +34,5 @@ RUN cd $INSTALL_DIR
33
34
make check TESTS= -j
34
35
35
36
ENV PATH="/home/shmem/SOS/install/bin:/usr/lib64/mpich/bin:${PATH}"
36
- RUN ln -s /usr/bin/python3 /usr/bin/python
37
- RUN python -m pip install numpy cffi setuptools
37
+ RUN python3 -m venv /venv
38
+ RUN source /venv/bin/activate && pip install numpy cffi setuptools
Original file line number Diff line number Diff line change 1
1
# adapted from https://github.com/Sandia-OpenSHMEM/SOS/blob/master/scripts/docker/Dockerfile
2
2
3
3
FROM ubuntu:latest
4
+ SHELL ["/bin/bash" , "-c" ]
4
5
5
6
ENV INSTALL_DIR=/home/shmem
6
7
RUN mkdir /home/shmem
@@ -19,7 +20,7 @@ RUN apt-get update -y && apt-get install -y \
19
20
libhwloc-dev \
20
21
libevent-dev \
21
22
mpich \
22
- python3 python3-pip python-is-python3
23
+ python3 python3-pip python-is-python3 python3-venv
23
24
24
25
# Build Libfabric
25
26
RUN cd $INSTALL_DIR && \
@@ -41,4 +42,5 @@ RUN cd $INSTALL_DIR
41
42
make check TESTS= -j
42
43
43
44
ENV PATH="/home/shmem/SOS/install/bin:${PATH}"
44
- RUN python -m pip install numpy cffi setuptools
45
+ RUN python3 -m venv /venv
46
+ RUN source /venv/bin/activate && pip install numpy cffi setuptools
You can’t perform that action at this time.
0 commit comments