Skip to content

Commit

Permalink
Merge pull request #149 from jngrad/Ubuntu18-cython-cmake
Browse files Browse the repository at this point in the history
Upgrade CMake and Cython in Ubuntu 16.04 images
  • Loading branch information
jngrad authored Jan 3, 2020
2 parents c839143 + 90cd7b2 commit 7eae5b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 2 additions & 7 deletions docker/clang-python3/Dockerfile-6.0
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \
openmpi-bin \
libfftw3-dev \
libboost-dev libboost-serialization-dev libboost-mpi-dev libboost-filesystem-dev libboost-test-dev \
cython3 python3 python3-numpy python3-h5py \
python3 python3-numpy python3-h5py \
git \
# python3-vtk7 \ # not available in 16.04
python3-pip \
Expand All @@ -31,11 +31,6 @@ RUN cd /tmp \
&& cd \
&& rm -r /tmp/ccache-3.4.3

# more recent version of CMake required for Clang-tidy
RUN cd /usr/local \
&& curl -sL https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz | tar --strip-components=1 -xz \
&& rm -r /usr/local/man

RUN cd /usr/src && \
git clone --depth=1 -b 1.9.5 https://github.com/thrust/thrust.git && \
rm -r /usr/local/cuda/include/thrust && \
Expand All @@ -51,6 +46,6 @@ RUN useradd -m espresso && usermod -a -G www-data espresso
USER espresso
ENV HOME="/home/espresso"
# install Python3 packages locally
RUN pip3 install --user requests autopep8==1.3.4 pycodestyle==2.3.1 pylint==2.2.2 astroid==2.1.0 isort==4.3.4
RUN pip3 install --user requests autopep8==1.3.4 pycodestyle==2.3.1 pylint==2.2.2 astroid==2.1.0 isort==4.3.4 cython==0.26 cmake==3.10.3
ENV PATH="${PATH}:${HOME}/.local/bin"
WORKDIR /home/espresso
9 changes: 6 additions & 3 deletions docker/ubuntu-python3/Dockerfile-cuda-9.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM nvidia/cuda:9.0-devel-ubuntu16.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
apt-utils \
cmake \
build-essential \
curl \
lcov \
Expand All @@ -11,7 +10,7 @@ RUN apt-get update && apt-get install -y \
libfftw3-dev \
libboost-dev libboost-serialization-dev libboost-mpi-dev libboost-filesystem-dev libboost-test-dev \
libgsl-dev \
cython3 python3 python3-numpy python3-h5py \
python3 python3-numpy python3-h5py python3-pip \
git \
# python3-vtk7 \ # not available in 16.04
python3-lxml \
Expand All @@ -28,5 +27,9 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

RUN useradd -m espresso && usermod -a -G www-data espresso
USER 1000
USER espresso
ENV HOME="/home/espresso"
# install Python3 packages locally
RUN pip3 install --user cython==0.26 cmake==3.10.3
ENV PATH="${PATH}:${HOME}/.local/bin"
WORKDIR /home/espresso

0 comments on commit 7eae5b1

Please sign in to comment.