Rename label of build corpus services

This commit is contained in:
Patrick Jentsch 2020-11-22 16:03:19 +01:00
parent d1b39449e8
commit ece2d450d7

View File

@ -17,7 +17,7 @@ def create_build_corpus_service(corpus):
'command': 'docker-entrypoint.sh build-corpus', 'command': 'docker-entrypoint.sh build-corpus',
'constraints': ['node.role==worker'], 'constraints': ['node.role==worker'],
'labels': {'origin': 'nopaque', 'labels': {'origin': 'nopaque',
'type': 'corpus.prepare', 'type': 'corpus.build',
'corpus_id': str(corpus.id)}, 'corpus_id': str(corpus.id)},
'mounts': [corpus_file + ':/root/files/corpus.vrt:ro', 'mounts': [corpus_file + ':/root/files/corpus.vrt:ro',
corpus_data_dir + ':/corpora/data:rw', corpus_data_dir + ':/corpora/data:rw',