forked from QMCPACK/qmcpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update ci ubuntu images from 20.04 to 22.04
- Loading branch information
Showing
3 changed files
with
116 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
config/docker/dependencies/ubuntu22/clang-latest/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive &&\ | ||
apt-get update -y &&\ | ||
apt-get upgrade -y apt-utils &&\ | ||
apt-get install -y gpg wget | ||
|
||
# Dependencies | ||
RUN wget https://apt.kitware.com/kitware-archive.sh &&\ | ||
sh kitware-archive.sh | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive &&\ | ||
apt-get install gcc g++ \ | ||
python3 \ | ||
cmake \ | ||
ninja-build \ | ||
libboost-all-dev \ | ||
git \ | ||
libhdf5-serial-dev \ | ||
hdf5-tools \ | ||
libfftw3-dev \ | ||
libopenblas-openmp-dev \ | ||
libxml2-dev \ | ||
sudo \ | ||
curl \ | ||
rsync \ | ||
wget \ | ||
software-properties-common \ | ||
vim \ | ||
-y | ||
|
||
# add the latest clang development | ||
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - &&\ | ||
apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | ||
RUN apt-get update -y &&\ | ||
apt-get install clang-12 clang-tools-12 libomp-12-dev -y | ||
|
||
# must add a user different from root | ||
# to run MPI executables | ||
RUN useradd -ms /bin/bash user | ||
# allow in sudoers to install packages | ||
RUN adduser user sudo | ||
RUN echo "user:user" | chpasswd | ||
|
||
USER user | ||
WORKDIR /home/user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive &&\ | ||
apt-get clean &&\ | ||
apt-get update -y &&\ | ||
apt-get upgrade -y apt-utils &&\ | ||
apt-get install -y gpg wget | ||
|
||
# Dependencies | ||
RUN wget https://apt.kitware.com/kitware-archive.sh &&\ | ||
sh kitware-archive.sh | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive &&\ | ||
apt-get install gcc g++ \ | ||
clang \ | ||
clang-format \ | ||
clang-tidy \ | ||
libomp-dev \ | ||
gcovr \ | ||
python3 \ | ||
cmake \ | ||
ninja-build \ | ||
libboost-all-dev \ | ||
git \ | ||
libopenmpi-dev \ | ||
libhdf5-openmpi-dev \ | ||
libhdf5-serial-dev \ | ||
hdf5-tools \ | ||
libfftw3-dev \ | ||
libopenblas-openmp-dev \ | ||
libxml2-dev \ | ||
sudo \ | ||
curl \ | ||
rsync \ | ||
wget \ | ||
software-properties-common \ | ||
vim \ | ||
numdiff \ | ||
-y | ||
|
||
# Python packages for tests | ||
RUN export DEBIAN_FRONTEND=noninteractive &&\ | ||
apt-get install python3-numpy \ | ||
python3-h5py \ | ||
python3-pandas \ | ||
python3-pip \ | ||
-y | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive &&\ | ||
pip3 install cif2cell | ||
|
||
# must add a user different from root | ||
# to run MPI executables | ||
RUN useradd -ms /bin/bash user | ||
# allow in sudoers to install packages | ||
RUN adduser user sudo | ||
RUN echo "user:user" | chpasswd | ||
|
||
USER user | ||
WORKDIR /home/user |