Skip to content

Commit 79ea0e4

Browse files
authored
Add x86_64_v2 architecture support (#147)
1 parent cdad5e9 commit 79ea0e4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

alts/shared/constants.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@
2121
# YYYYMMDD format for API version
2222
API_VERSION = '20210512'
2323
COSTS = [str(i) for i in range(5)]
24-
ARCHITECTURES = ('x86_64', 'aarch64', 'ppc64le', 's390x')
24+
ARCHITECTURES = (
25+
'x86_64',
26+
'x86_64_v2',
27+
'aarch64',
28+
'ppc64le',
29+
's390x',
30+
)
2531
DRIVERS = ('docker', 'opennebula')
2632
X32_ARCHITECTURES = [
2733
'i386',
@@ -31,6 +37,7 @@
3137
]
3238
X64_ARCHITECTURES = [
3339
'x86_64',
40+
'x86_64_v2',
3441
'amd64',
3542
'arm64',
3643
'aarch64',

alts/worker/runners/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ class BaseRunner(object):
177177
ARCHITECTURES_MAPPING = ImmutableDict(
178178
aarch64=['arm64', 'aarch64'],
179179
x86_64=['x86_64', 'amd64', 'i686', 'i386', 'i486', 'i586'],
180+
x86_64_v2=['x86_64_v2'],
180181
ppc64le=['ppc64le'],
181182
s390x=['s390x'],
182183
)

alts/worker/runners/docker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'i686': 'linux/386',
4545
'amd64': 'linux/amd64',
4646
'x86_64': 'linux/amd64',
47+
'x86_64_v2': 'linux/amd64/v2',
4748
'arm64': 'linux/arm64/v8',
4849
'aarch64': 'linux/arm64/v8',
4950
'ppc64le': 'linux/ppc64le',

0 commit comments

Comments
 (0)