-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update containers and deploy at LLNL
- Loading branch information
1 parent
c15e5a7
commit f31772b
Showing
8 changed files
with
89 additions
and
39 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,34 +1,34 @@ | ||
FROM centos:7 AS base | ||
FROM almalinux:8 AS base | ||
MAINTAINER Giorgis Georgakoudis <[email protected]> | ||
RUN \ | ||
yum install -y dnf &&\ | ||
dnf install -y epel-release &&\ | ||
dnf group install -y "Development Tools" &&\ | ||
dnf install -y curl findutils gcc-gfortran gnupg2 hostname iproute redhat-lsb-core python3 python3-pip python3-setuptools unzip python-boto3 centos-release-scl-rh &&\ | ||
dnf install -y devtoolset-11 environment-modules &&\ | ||
dnf install -y git gcc-toolset-11 environment-modules &&\ | ||
dnf upgrade -y | ||
COPY repo repo | ||
RUN \ | ||
mkdir -p ams-spack-env | ||
COPY spack.yaml ams-spack-env/spack.yaml | ||
|
||
|
||
FROM base AS setup-spack-env | ||
RUN \ | ||
source /etc/profile &&\ | ||
mkdir -p /usr/share/Modules/modulefiles/gcc &&\ | ||
/usr/share/Modules/bin/createmodule.sh /opt/rh/devtoolset-11/enable > /usr/share/Modules/modulefiles/gcc/11.2.1 &&\ | ||
/usr/share/Modules/bin/createmodule.sh /opt/rh/gcc-toolset-11/enable > /usr/share/Modules/modulefiles/gcc/11.2.1 &&\ | ||
module load gcc/11.2.1 &&\ | ||
git clone --depth 1 --branch releases/v0.20 https://github.com/spack/spack.git &&\ | ||
source spack/share/spack/setup-env.sh &&\ | ||
spack compiler find &&\ | ||
spack compiler rm gcc@4.8.5 &&\ | ||
spack compiler rm [email protected].0 &&\ | ||
sed -i "s/modules.*/modules: [gcc\/11.2.1]/" ~/.spack/linux/compilers.yaml | ||
|
||
FROM setup-spack-env AS install-spack-env | ||
RUN \ | ||
source /etc/profile &&\ | ||
module load gcc/11.2.1 &&\ | ||
source spack/share/spack/setup-env.sh &&\ | ||
spack env activate -p ams-spack-env &&\ | ||
spack install &&\ | ||
spack clean --all | ||
spack install --fail-fast &&\ | ||
spack clean --all &&\ | ||
dnf clean all | ||
|
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deploy containers | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-containers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Free up disk space on runner | ||
run: | | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /usr/share/dotnet | ||
sudo apt-get remove -y '^aspnetcore-.*' | ||
sudo apt-get remove -y '^dotnet-.*' --fix-missing | ||
sudo apt-get remove -y '^llvm-.*' --fix-missing | ||
sudo apt-get remove -y google-cloud-cli --fix-missing | ||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing | ||
sudo apt-get autoremove -y | ||
sudo apt-get clean | ||
sudo docker image prune --all --force | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Build and push almalinux8 container | ||
uses: docker/build-push-action@v6 | ||
with: | ||
platforms: linux/amd64 | ||
context: "{{defaultContext}}:.github/containers/x86_64-broadwell-gcc11.2.1" | ||
push: true | ||
provenance: false | ||
tags: ghcr.io/llnl/ams-ci-almalinux8:latest | ||
|
||
- name: Build and push cuda container | ||
uses: docker/build-push-action@v6 | ||
with: | ||
platforms: linux/amd64 | ||
context: "{{defaultContext}}:.github/containers/x86_64-broadwell-cuda11.6.1" | ||
push: true | ||
provenance: false | ||
tags: ghcr.io/llnl/ams-ci-cuda11.6.1:latest |
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