-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add work in progress Dockerfile #3
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENV PETSC_DIR="/home/lithomop_user/petsc-2.3.3-p16" | ||
ENV PETSC_ARCH="/home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PETSC_ARCH
should either be unset ("prefix install") or just the identifier (as in linux-gnu-c-debug
, or whatever you specify).
|
||
ENV PETSC_DIR="/home/lithomop_user/petsc-2.3.3-p16" | ||
ENV PETSC_ARCH="/home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug" | ||
ENV PATH="/home/lithomop_user/petsc-2.3.3-p16/externalpackages/mpich2-1.0.5p4/bin:${PATH}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a build directory (for --download-mpich
), but you installed an mpich
from apt
above (you might have wanted libmpich-dev
).
ENV PETSC_ARCH="/home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug" | ||
ENV PATH="/home/lithomop_user/petsc-2.3.3-p16/externalpackages/mpich2-1.0.5p4/bin:${PATH}" | ||
|
||
RUN curl -L -O "https://web.cels.anl.gov/projects/petsc/download/release-snapshots/petsc-2.3.3.tar.gz"; tar -xvf petsc-2.3.3.tar.gz; cd petsc-2.3.3-p16; mkdir externalpackages; cd externalpackages; curl -L -O "https://www.mpich.org/static/downloads/1.0.5p4/mpich2-1.0.5p4.tar.gz"; tar -xvf mpich2-1.0.5p4.tar.gz; cd mpich2-1.0.5p4; ./configure; echo "password" | sudo -S make all; echo "password" | sudo -S make install; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need petsc-2.3.3
(released in 2007) or can we use a later version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest removing the manual download of mpich and instead use the system version from apt.
I've made some progress towards compiling lithomop but haven't been able to get there yet. At this point, when I run the configure script in lithomop, this is the error I get:
checking for PETSc dir... /home/lithomop_user/petsc-2.3.3-p16
checking for PETSc arch... /home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug
checking for PETSc config... no
configure: error: PETSc config dir not found; check PETSC_ARCH
It seems like I haven't correctly set one of the PETSC variables required by lithomop. However, I'm not sure what lithomop is expecting. If you have any idea what the issue is, please let me know. It may also be an issue with how I installed PETSC. The details are in the Dockerfile.