Skip to content

Commit

Permalink
Fix quotes; install OpenMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Oct 10, 2023
1 parent d9436a0 commit a449e67
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=generic \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU generic
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=haswell \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU haswell
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
8 changes: 4 additions & 4 deletions tools/docker/production/Dockerfile.2023.2_openmpi_native_psmp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=native \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU native
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=skylake-avx512 \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU skylake-avx512
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
8 changes: 4 additions & 4 deletions tools/docker/production/Dockerfile.2023.2_openmpi_znver2_psmp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=znver2 \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU znver2
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
8 changes: 4 additions & 4 deletions tools/docker/production/Dockerfile.2023.2_openmpi_znver3_psmp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=znver3 \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU znver3
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tools/regtesting/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=generic \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU generic
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=haswell \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU haswell
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
8 changes: 4 additions & 4 deletions tools/docker/production/Dockerfile.master_openmpi_native_psmp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=native \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU native
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=skylake-avx512 \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU skylake-avx512
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down
8 changes: 4 additions & 4 deletions tools/docker/production/Dockerfile.master_openmpi_znver2_psmp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ubuntu:22.04 AS build

# Install packages required for the CP2K toolchain build
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 \
g++ gcc gfortran openssh-client python3 \
bzip2 ca-certificates git make patch pkg-config python3 unzip wget zlib1g-dev

# Download CP2K
Expand All @@ -21,7 +21,7 @@ RUN /bin/bash -c -o pipefail \
--install-all \
--target-cpu=znver2 \
--with-gcc=system \
--with-openmpi=system"
--with-openmpi=install"

# Build CP2K for target CPU znver2
WORKDIR /opt/cp2k
Expand All @@ -48,7 +48,7 @@ FROM ubuntu:22.04 AS install

# Install required packages
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
g++ gcc gfortran libopenmpi-dev openmpi-bin openssh-client python3 && rm -rf /var/lib/apt/lists/*
g++ gcc gfortran openssh-client python3 && rm -rf /var/lib/apt/lists/*

# Install CP2K binaries
COPY --from=build /opt/cp2k/exe/local/ /opt/cp2k/exe/local/
Expand Down Expand Up @@ -88,7 +88,7 @@ source /opt/cp2k/tools/toolchain/install/setup\n\
>/usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/entrypoint.sh

# Create shortcut for regression test
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec "mpiexec --bind-to none" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
RUN printf "/opt/cp2k/tests/do_regtest.py --mpiexec \"mpiexec --bind-to none\" --maxtasks 8 --workbasedir /mnt \$* local psmp" \
>/usr/local/bin/run_tests && chmod 755 /usr/local/bin/run_tests

# Define entrypoint
Expand Down

0 comments on commit a449e67

Please sign in to comment.