зеркало из https://github.com/mozilla/bugbug.git
Add an environment variable to define the path where to clone the mozilla-central repository in the HTTP service workers
This commit is contained in:
Родитель
14108175e9
Коммит
187a30d97d
|
@ -16,7 +16,9 @@ logger = logging.getLogger(__name__)
|
|||
def boot_worker():
|
||||
|
||||
# Clone mozilla central
|
||||
repo_dir = os.path.join(tempfile.gettempdir(), "bugbug-hg")
|
||||
repo_dir = os.environ.get(
|
||||
"BUGBUG_REPO_DIR", os.path.join(tempfile.gettempdir(), "bugbug-hg")
|
||||
)
|
||||
logger.info(f"Cloning mozilla-central in {repo_dir}...")
|
||||
repository.clone(repo_dir)
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ services:
|
|||
- BUGBUG_BUGZILLA_TOKEN
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
- BUGBUG_ALLOW_MISSING_MODELS
|
||||
- BUGBUG_REPO_DIR
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче