Skip to content
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

ubuntu: support for noble #9

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions rocky/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
ARG tag=8
FROM spack/rockylinux${tag}:latest as builder
FROM spack/rockylinux${tag}:latest AS builder
ARG ARCH=x86_64
ENV ARCH=${ARCH}

RUN dnf update -y && dnf install -y gettext
# rocky 9 doesn't easily install texlive, which has a makeinfo
RUN dnf update -y && dnf install -y gettext wget && \
yum install dnf-plugins-core || true && \
dnf config-manager --enable crb || true && \
dnf install -y texlive bison make

# Specify flux deps in the spack manifest file (spack.yaml)
RUN mkdir /opt/spack-environment \
&& (echo spack: \
&& echo ' specs: [flux-sched, flux-core, libzmq@4.3.4]' \
&& echo ' specs: [flux-sched, flux-core, pmix@4.2.2, flux-pmix, libzmq]' \
&& echo ' view: /opt/views/view' \
&& echo ' concretizer:' \
&& echo ' unify: true' \
Expand All @@ -25,6 +29,7 @@ RUN envsubst < /opt/spack-environment/spack-template.yaml > /opt/spack-environme
RUN cd /opt/spack-environment && \
. /opt/spack/share/spack/setup-env.sh && \
spack env activate . && \
spack external find bison && \
spack install --fail-fast && spack gc -y

# Strip all the binaries
Expand All @@ -36,7 +41,9 @@ RUN find -L /opt/views/view/* -type f -exec readlink -f '{}' \; | \

# Modifications to the environment that are necessary to run
RUN cd /opt/spack-environment && \
spack env activate --sh -d . > activate.sh
spack env activate --sh -d . > activate.sh && \
. ./activate.sh && \
python3 -m ensurepip

# Bare OS image to run the installed executables
ARG tag=8
Expand All @@ -56,6 +63,10 @@ RUN { \
&& chmod a+x /entrypoint.sh \
&& ln -s /opt/views/view /opt/view

# Ensure the flux module path includes lib64
# Note that this should be fixed June 2024
# ENV FLUX_MODULE_PATH=/opt/view/lib64/flux/modules:/opt/view/lib/flux/modules

# Ensure munge is installed and enabled. This is a design flaw
RUN dnf install -y munge && systemctl enable munge

Expand Down
6 changes: 4 additions & 2 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG tag=jammy
FROM spack/ubuntu-${tag}:latest as builder
FROM spack/ubuntu-${tag}:latest AS builder
ARG ARCH=x86_64
ENV ARCH=${ARCH}

Expand Down Expand Up @@ -37,7 +37,9 @@ RUN find -L /opt/views/view/* -type f -exec readlink -f '{}' \; | \

# Modifications to the environment that are necessary to run
RUN cd /opt/spack-environment && \
spack env activate --sh -d . > activate.sh
spack env activate --sh -d . > activate.sh && \
. ./activate.sh && \
python3 -m ensurepip

# Bare OS image to run the installed executables
ARG tag=jammy
Expand Down
1 change: 1 addition & 0 deletions ubuntu/uptodate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dockerbuild:
- "focal"
- "jammy"
- "bionic"
- "noble"
Loading