Closed Rajdeep1311 closed 1 year ago
FROM debian:buster
ENV USERNAME=elf
ENV TZ=Europe/Madrid RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get upgrade -yq && apt-get dist-upgrade -yq
RUN apt-get install -yq sudo
RUN echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ useradd --no-log-init --home-dir /home/$USERNAME --create-home --shell /bin/bash $USERNAME && \ adduser $USERNAME sudo
USER $USERNAME WORKDIR /home/$USERNAME
RUN sudo apt-get install -yq git nano make cmake gfortran mpich \ liblapack-dev libsymspg-dev && \ sudo apt-get clean -q
RUN sudo apt-get install -yq ruby && \ sudo gem install fpm
RUN mkdir my_fortran_project
COPY . /home/$USERNAME/my_fortran_project
WORKDIR /home/$USERNAME/my_fortran_project
RUN fpm build && \ fpm install
Sir Is this alright?
Hi Rajdeep,
Thanks a lot for the update. Unfortunately, I still don't think this will work. By the way, have you tried building this image on your machine?
To be specific about the issue, with the following command, you are installing a different fpm
than the one needed here:
RUN sudo apt-get install -yq ruby &&
sudo gem install fpm
You can try the cmake
route, which would be simpler as you can simply apt get
it. Following this, building OpenCoarrays, and cloning elphbolt, you can simply mkdir build; cd build; cmake ..; make; ctest
.
Best regards, Nakib
I will try my best to help you sir
Hi Rajdeep,
I have updated the Dockerfile to use cmake and have closed the issue.
Best regards, Nakib
Dear Rajdeep,
Thanks a lot for your PR. There might be a slight confusion here. By
fpm
, I meant the fortran package manager. By the way, I am also fine with thecmake
option, thoughfpm
is preferred.Best regards, Nakib