Skip to content

Commit b0407e6

Browse files
jnorridmilancurcic
andauthored
Update README.md and Dockerfile for Ubuntu 23.10, GCC GFortran 13.2.0, and dependency package updates. (#1)
* Update README.md Updated README.md to describe the updates to Ubuntu 23.10. * Update Dockerfile for Ubuntu 23.10 Modified the Dockerfile to use Ubuntu 23.10 so we can pick up new Linux Kernel enhancements and the GCC GFortran v13.2.0 compiler. Also updated the package installation processes to account for revisions to package names and how they need to be installed. * Formatting --------- Co-authored-by: milancurcic <[email protected]>
1 parent e46ac22 commit b0407e6

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:23.10
22

33
ENV USERNAME=backus
44

@@ -8,13 +8,14 @@ RUN apt-get -yq update && apt-get -yq install sudo
88
# create and switch to a user
99
RUN echo "backus ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
1010
RUN useradd --no-log-init --home-dir /home/$USERNAME --create-home --shell /bin/bash $USERNAME
11-
RUN adduser $USERNAME sudo
11+
RUN usermod -aG sudo $USERNAME
12+
#RUN adduser $USERNAME sudo
1213
USER $USERNAME
1314
WORKDIR /home/$USERNAME
1415

1516
# install packages
1617
RUN sudo apt-get install -yq git curl && \
17-
sudo apt-get install --no-install-recommends -yq make cmake gfortran libcoarrays-dev libopenmpi-dev open-coarrays-bin && \
18+
sudo apt-get install --no-install-recommends -yq make cmake gfortran libcoarrays-dev libopenmpi-dev libcoarrays-openmpi-dev libcaf-openmpi-3&& \
1819
sudo apt-get clean -q
1920

2021
# get modern-fortran code

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# modern-fortran-docker
22

33
Dockerfile to build a modern-fortran Docker image.
4-
It's based off Ubuntu 18.04 and installs gfortran, OpenMPI, and OpenCoarrays for you.
4+
It's based off Ubuntu 23.10, which has several enhancements to the Linux kernel and supports
5+
GCC GFortran v13.2.0.
6+
7+
This Dockerfile installs gfortran, OpenMPI, and OpenCoarrays for you.
58
It will also git clone the modern-fortran projects.
69

7-
You will need Docker set up and running on your system.
10+
You will need Docker to be set up and running on your system.
811

912
## Build
1013

@@ -28,4 +31,5 @@ docker run -it modern-fortran:latest /bin/bash
2831

2932
## Thanks
3033

31-
Maurizio Tomassi who provided the original Dockerfile.
34+
* Maurizio Tomassi who provided the original Dockerfile
35+
* Joshua Norrid who updated the Dockerfile for use with Ubuntu 23.10

0 commit comments

Comments
 (0)