Просмотр исходного кода

Add "install-service" justfile command

It should be noted that this cannot be used for the initial install
of services which require a database or have other dependencies.
Those would typically need to invoke the playbook with
`--tags=install-postgres,install-SERVICE`, etc.

The purpose of this shortcut is to easily rebuild and restart
a single serice subsequently. For those cases, often times there's no need to
reinitialize the database and other components and simply running a
single component's tasks is enough.
pull/2588/head
Slavi Pantaleev 3 лет назад
Родитель
Сommit
3e84e354a8
1 измененных файлов: 4 добавлений и 0 удалений
  1. +4
    -0
      justfile

+ 4
- 0
justfile Просмотреть файл

@@ -14,6 +14,10 @@ lint:
# Runs the playbook with --tags=install-all,ensure-matrix-users-created,start and optional arguments
install-all *extra_args: (run-tags "install-all,ensure-matrix-users-created,start" extra_args)

# Runs installation tasks for a single service
install-service service:
just --justfile {{ justfile() }} run --tags=install-{{ service }},start-group --extra-vars=group={{ service }}

# Runs the playbook with --tags=setup-all,ensure-matrix-users-created,start and optional arguments
setup-all *extra_args: (run-tags "setup-all,ensure-matrix-users-created,start" extra_args)



Загрузка…
Отмена
Сохранить