summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-04-22 08:51:26 +0200
committerGitHub <noreply@github.com>2022-04-22 08:51:26 +0200
commitf961a11187a514dab4fb4a615544d480ab6b39c2 (patch)
tree64562edf92a0542e98168f242e4b033cf9af1e8e /lib
parentb00983439fc3f11365664853d80cb7f497fd88a6 (diff)
downloadspack-f961a11187a514dab4fb4a615544d480ab6b39c2.tar.gz
spack-f961a11187a514dab4fb4a615544d480ab6b39c2.tar.bz2
spack-f961a11187a514dab4fb4a615544d480ab6b39c2.tar.xz
spack-f961a11187a514dab4fb4a615544d480ab6b39c2.zip
Update Dockerfiles and images for Spack v0.18.0 (#30216)
This PR updates the list of images we build nightly, deprecating Ubuntu 16.04 and CentOS 8 and adding Ubuntu 20.04, Ubuntu 22.04 and CentOS Stream. It also removes a lot of duplication by generating the Dockerfiles during the CI workflow and uploading them as artifacts for later inspection or reuse.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/container/images.json38
-rw-r--r--lib/spack/spack/container/images.py3
2 files changed, 27 insertions, 14 deletions
diff --git a/lib/spack/spack/container/images.json b/lib/spack/spack/container/images.json
index b82596f20c..1429864f6d 100644
--- a/lib/spack/spack/container/images.json
+++ b/lib/spack/spack/container/images.json
@@ -12,11 +12,19 @@
},
"os_package_manager": "yum_amazon"
},
- "centos:8": {
+ "centos:stream": {
"bootstrap": {
- "template": "container/centos_8.dockerfile"
+ "template": "container/centos_stream.dockerfile",
+ "image": "quay.io/centos/centos:stream"
},
- "os_package_manager": "yum"
+ "os_package_manager": "yum",
+ "build": "spack/centos-stream",
+ "final": {
+ "image": "quay.io/centos/centos:stream"
+ },
+ "build_tags": {
+ "develop": "latest"
+ }
},
"centos:7": {
"bootstrap": {
@@ -51,10 +59,24 @@
},
"os_package_manager": "apt"
},
+ "ubuntu:22.04": {
+ "bootstrap": {
+ "template": "container/ubuntu_2204.dockerfile"
+ },
+ "os_package_manager": "apt",
+ "build": "spack/ubuntu-jammy",
+ "build_tags": {
+ "develop": "latest"
+ }
+ },
"ubuntu:20.04": {
"bootstrap": {
"template": "container/ubuntu_2004.dockerfile"
},
+ "build": "spack/ubuntu-focal",
+ "build_tags": {
+ "develop": "latest"
+ },
"os_package_manager": "apt"
},
"ubuntu:18.04": {
@@ -66,16 +88,6 @@
"build_tags": {
"develop": "latest"
}
- },
- "ubuntu:16.04": {
- "bootstrap": {
- "template": "container/ubuntu_1604.dockerfile"
- },
- "os_package_manager": "apt",
- "build": "spack/ubuntu-xenial",
- "build_tags": {
- "develop": "latest"
- }
}
},
"os_package_managers": {
diff --git a/lib/spack/spack/container/images.py b/lib/spack/spack/container/images.py
index 2a43be7479..32c95c950a 100644
--- a/lib/spack/spack/container/images.py
+++ b/lib/spack/spack/container/images.py
@@ -129,5 +129,6 @@ def checkout_command(url, ref, enforce_sha, verify):
if enforce_sha or verify:
ref = _verify_ref(url, ref, enforce_sha)
- command = 'git clone {0} . && git checkout {1} '.format(url, ref)
+ command = ('git clone {0} . && git fetch origin {1}:container_branch &&'
+ ' git checkout container_branch ').format(url, ref)
return command