forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
31 lines (22 loc) · 948 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from jetson_containers import handle_text_request
def create_package(version, branch=None, default=False) -> list:
pkg = package.copy()
if not branch:
branch = f'v{version}'
wanted_version = handle_text_request(f'https://raw.githubusercontent.com/rhasspy/wyoming-satellite/{branch}/wyoming_satellite/VERSION')
pkg['name'] = f'wyoming-assist-microphone:{wanted_version}'
pkg['build_args'] = {
'SATELLITE_VERSION': wanted_version,
'SATELLITE_BRANCH': branch
}
builder = pkg.copy()
builder['name'] = f'wyoming-assist-microphone:{wanted_version}-builder'
builder['build_args'] = {**pkg['build_args'], **{'FORCE_BUILD': 'on'}}
if default:
pkg['alias'] = 'wyoming-assist-microphone'
builder['alias'] = 'wyoming-assist-microphone:builder'
return pkg, builder
package = [
create_package("1.3.0", branch="master", default=True),
create_package("1.2.0"),
]