-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #671 from lukemartinlogan/dev
Update actions to be ubuntu22
- Loading branch information
Showing
4 changed files
with
21 additions
and
15 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
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
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
#!/bin/bash | ||
if ! shopt -q login_shell; then | ||
if [ -d /etc/profile.d ]; then | ||
for i in /etc/profile.d/*.sh; do | ||
if [ -r $i ]; then | ||
. $i | ||
fi | ||
done | ||
fi | ||
fi | ||
if [ -d /etc/profile.d ]; then | ||
for i in /etc/profile.d/*.sh; do | ||
if [ -r $i ]; then | ||
. $i | ||
fi | ||
done | ||
fi |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# NOTE(llogan): This dockerfile assumes that | ||
# hermes github is mounted on /hermes | ||
|
||
# Install ubuntu 22.04 | ||
FROM ubuntu:22.04 | ||
LABEL maintainer="[email protected]" | ||
|
@@ -35,10 +38,9 @@ ENV SPACK_DIR="${HOME}/spack" | |
ENV SPACK_VERSION="v0.20.2" | ||
ENV HERMES_DEPS_DIR="${HOME}/hermes_deps" | ||
ENV HERMES_DIR="${HOME}/hermes" | ||
COPY ci/module_load.sh /module_load.sh | ||
|
||
# Install Spack | ||
RUN . /module_load.sh && \ | ||
RUN . /hermes/ci/module_load.sh && \ | ||
git clone -b ${SPACK_VERSION} https://github.com/spack/spack ${SPACK_DIR} && \ | ||
. "${SPACK_DIR}/share/spack/setup-env.sh" && \ | ||
git clone -b dev https://github.com/lukemartinlogan/hermes.git ${HERMES_DEPS_DIR} && \ | ||
|
@@ -48,7 +50,7 @@ RUN . /module_load.sh && \ | |
spack external find | ||
|
||
# Install hermes_shm | ||
RUN . /module_load.sh && \ | ||
RUN . /hermes/ci/module_load.sh && \ | ||
. "${SPACK_DIR}/share/spack/setup-env.sh" && \ | ||
spack external find && \ | ||
spack install hermes_shm@master+vfd+mpiio^[email protected] | ||
|