1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:17:06 +02:00

update airflow

This commit is contained in:
kev 2019-10-17 17:38:21 +08:00
parent 4d9ebaa781
commit dc69136cf7
2 changed files with 13 additions and 1 deletions

View File

@ -26,6 +26,18 @@ $ docker stack deploy -c docker-stack.yaml airflow
$ docker service update --replicas-max-per-node=1 airflow_worker
$ docker service update --replicas 3 airflow_worker
$ docker stack services airflow
$ docker service ps airflow_webserver
$ docker exec -it airflow_webserver.1.xxxxxx sh
>>> airflow create_user -r Admin -u admin -e admin@borderxlab.com -f Super -l Admin -p secret
>>> airflow list_users
╒══════╤════════════╤══════════════════════╤══════════════╤═════════════╤═════════╕
│ Id │ Username │ Email │ First name │ Last name │ Roles │
╞══════╪════════════╪══════════════════════╪══════════════╪═════════════╪═════════╡
│ 1 │ admin │ admin@borderxlab.com │ Super │ Admin │ [Admin] │
╘══════╧════════════╧══════════════════════╧══════════════╧═════════════╧═════════╛
>>> exit
$ curl http://localhost:8080/
$ curl http://localhost:5555/
```

View File

@ -295,7 +295,7 @@ hide_paused_dags_by_default = False
page_size = 100
# Use FAB-based webserver with RBAC feature
rbac = False
rbac = True
# Define the color of navigation bar
navbar_color = #007A87