Guest User

Untitled

a guest
Mar 25th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. FROM ubuntu:groovy
  2.  
  3. ENV DEBIAN_FRONTEND=noninteractive
  4.  
  5. RUN apt-get update
  6. RUN apt-get -y dist-upgrade
  7.  
  8. RUN apt-get -y install gnupg
  9.  
  10. RUN echo "deb http://ppa.launchpad.net/fluidity-core/ppa/ubuntu groovy main" > /etc/apt/sources.list.d/fluidity-core-ppa-groovy.list
  11.  
  12. # Import the Launchpad PPA public key
  13. RUN gpg --keyserver keyserver.ubuntu.com --recv 0D45605A33BAC3BE
  14. RUN gpg --export --armor 33BAC3BE | apt-key add -
  15. RUN apt-get update
  16.  
  17. # Install Fluidity development environment
  18. RUN echo "Europe/London" > /etc/timezone
  19.  
  20. RUN apt-get -y install fluidity-dev
  21.  
  22. # Install texlive sufficient for 'make manual'
  23. RUN apt-get -y install texlive-pstricks texlive texlive-latex-extra texlive-science
  24.  
  25. ENV LD_LIBRARY_PATH /usr/lib/petscdir/3.13/lib
  26. ENV LDFLAGS -L/usr/lib/x86_64-linux-gnu/hdf5/openmpi
  27. ENV CPPFLAGS "-I/usr/include/hdf5/openmpi -I/usr/include"
  28. ENV OMPI_MCA_btl_vader_single_copy_mechanism none
  29.  
  30. # Add a Fluidity user who will be the default user for this container
  31. # Make sure the user has a userid matching the host system
  32. # -- pass this as an argument at build time
  33. ARG userid=1000
  34. RUN adduser --disabled-password --gecos "" -u $userid fluidity
  35.  
  36. USER fluidity
  37. WORKDIR /home/fluidity
  38.  
  39. USER root
  40. RUN apt-get -y install devscripts dpkg-dev
  41. RUN apt-get -y install wget
  42. RUN apt-get -y install libparmetis-dev
  43. USER fluidity
  44.  
  45. RUN wget https://launchpad.net/~fluidity-core/+archive/ubuntu/ppa/+sourcefiles/zoltan/3.83-1focal1/zoltan_3.83.orig.tar.gz
  46. RUN wget https://launchpad.net/~fluidity-core/+archive/ubuntu/ppa/+sourcefiles/zoltan/3.83-1focal1/zoltan_3.83-1focal1.dsc
  47. RUN wget https://launchpad.net/~fluidity-core/+archive/ubuntu/ppa/+sourcefiles/zoltan/3.83-1focal1/zoltan_3.83-1focal1.diff.gz
  48. RUN dpkg-source -x zoltan_3.83-1focal1.dsc
  49.  
  50. RUN mkdir /home/fluidity/zoltan-3.83/Build
  51.  
  52. WORKDIR /home/fluidity/zoltan-3.83/Build
  53.  
  54. RUN CFLAGS="-g -O2" CXXFLAGS="-g -O2" FCFLAGS="-g -O2" FFLAGS="-g -O2" LDFLAGS="-Wl,-z,defs" ../configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-mpi --with-mpi-compilers --with-gnumake --enable-zoltan --with-parmetis --enable-zoltan-cppdriver --enable-f90interface --disable-examples --with-scotch --with-scotch-incdir=/usr/include/scotch --with-libs="-lptscotch -lmetis -lparmetis"
  55. RUN make || true
  56.  
  57. WORKDIR /home/fluidity
  58. RUN git clone https://github.com/fluidityproject/fluidity.git
  59. WORKDIR /home/fluidity/fluidity
  60.  
  61. ENV PETSC_DIR /usr/lib/petscdir/3.13
  62. RUN ./configure --enable-2d-adaptivity --enable-sam
  63. RUN make || true
  64.  
  65. WORKDIR /home/fluidity
Advertisement
Add Comment
Please, Sign In to add comment