summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-11-03 22:19:43 +0800
committerGitHub <noreply@github.com>2020-11-03 08:19:43 -0600
commita920ef50dd7ccacaac6735b50460d414434faab2 (patch)
treed33b5f69b648b3919a832157bdf76da4db5c628c
parent5a54e39d71ff3a9ae6f65b931dd7101ec47d6117 (diff)
downloadspack-a920ef50dd7ccacaac6735b50460d414434faab2.tar.gz
spack-a920ef50dd7ccacaac6735b50460d414434faab2.tar.bz2
spack-a920ef50dd7ccacaac6735b50460d414434faab2.tar.xz
spack-a920ef50dd7ccacaac6735b50460d414434faab2.zip
Add new package: istio (#17829)
-rw-r--r--var/spack/repos/builtin/packages/istio/package.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/istio/package.py b/var/spack/repos/builtin/packages/istio/package.py
new file mode 100644
index 0000000000..6a3aad6111
--- /dev/null
+++ b/var/spack/repos/builtin/packages/istio/package.py
@@ -0,0 +1,50 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+import platform
+
+_versions = {
+ '1.6.7': {
+ 'Linux-aarch64': '22b0f94efafe9f221c00f4599d9a04e473554515e5fdf8d119fd27e27e36c89f',
+ 'Linux-x86_64': '3243d2c4bb7a116aa04a6bc21d289fb73cdc704988af1749d2a1f0fb5426be36'},
+ '1.6.6': {
+ 'Linux-aarch64': 'b122a0abde24b7680194f504815db5e054483b3657292a6150104e9d129787a5',
+ 'Linux-x86_64': '3f092ffb3a1c13eccfadb42fe14166049535945f349241f90a91d97e57036da7'},
+ '1.6.5': {
+ 'Linux-aarch64': 'c32ed12be0e2bb33bae510fd6b680656990bf2c2ba6059277b6f463a195355a0',
+ 'Linux-x86_64': '68e58e8aec544c2b72377f7c334f90f6215bc819f3ed71ac952692cc5c9b73ac'},
+ '1.6.4': {
+ 'Linux-aarch64': '700416965f48f91ce5a654513b5aa4ed56dd5875e98af203389b3d20d55016b2',
+ 'Linux-x86_64': '97ce26edad734b4a324b1a3914cead3a38ac70a029dbe09777a483ec192d04df'},
+}
+
+
+class Istio(Package):
+ """An open platform to connect, manage, and secure microservices."""
+
+ homepage = "https://istio.io/"
+ url = "https://github.com/istio/istio/releases/download/1.6.5/istio-1.6.5-linux-arm64.tar.gz"
+ list_url = "https://github.com/istio/istio/releases/download"
+ list_depth = 1
+
+ for ver, packages in _versions.items():
+ key = "{0}-{1}".format(platform.system(), platform.machine())
+ sha_val = packages.get(key)
+ if sha_val:
+ version(ver, sha256=sha_val)
+
+ def url_for_version(self, version):
+ url = 'https://github.com/istio/istio/releases/download/{0}/istio-{0}-linux-{1}.tar.gz'
+ if platform.machine() == 'aarch64':
+ aarch = 'arm64'
+ elif platform.machine() == 'x86_64':
+ aarch = 'amd64'
+ else:
+ aarch = 'unknown'
+ return url.format(version, aarch)
+
+ def install(self, spec, prefix):
+ install_tree('.', prefix)