fmt
This commit is contained in:
@@ -11,7 +11,6 @@ tags: [airflow, idea, web, helper]
|
|||||||
|
|
||||||
A module that adds Apache Airflow in your Coder template.
|
A module that adds Apache Airflow in your Coder template.
|
||||||
|
|
||||||
|
|
||||||
```tf
|
```tf
|
||||||
module "airflow" {
|
module "airflow" {
|
||||||
source = "registry.coder.com/modules/airflow/coder"
|
source = "registry.coder.com/modules/airflow/coder"
|
||||||
@@ -29,9 +28,9 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
|
|||||||
|
|
||||||
```tf
|
```tf
|
||||||
module "airflow" {
|
module "airflow" {
|
||||||
source = "registry.coder.com/modules/airflow/coder"
|
source = "registry.coder.com/modules/airflow/coder"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
extensions = [
|
extensions = [
|
||||||
"dracula-theme.theme-dracula"
|
"dracula-theme.theme-dracula"
|
||||||
]
|
]
|
||||||
@@ -49,8 +48,8 @@ module "airflow" {
|
|||||||
source = "registry.coder.com/modules/airflow/coder"
|
source = "registry.coder.com/modules/airflow/coder"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
extensions = [ "dracula-theme.theme-dracula" ]
|
extensions = ["dracula-theme.theme-dracula"]
|
||||||
settings = {
|
settings = {
|
||||||
"workbench.colorTheme" = "Dracula"
|
"workbench.colorTheme" = "Dracula"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,10 @@ PATH=$PATH:~/.local/bin
|
|||||||
pip install --upgrade apache-airflow
|
pip install --upgrade apache-airflow
|
||||||
|
|
||||||
filename=~/airflow/airflow.db
|
filename=~/airflow/airflow.db
|
||||||
if ! [ -f $filename ] || ! [ -s $filename ]
|
if ! [ -f $filename ] || ! [ -s $filename ]; then
|
||||||
then
|
|
||||||
airflow db init
|
airflow db init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
airflow webserver >${LOG_PATH} 2>&1 &
|
airflow webserver > ${LOG_PATH} 2>&1 &
|
||||||
|
|
||||||
airflow users create -u admin -p admin -r Admin -e admin@admin.com -f Coder -l User
|
airflow users create -u admin -p admin -r Admin -e admin@admin.com -f Coder -l User
|
||||||
|
|||||||
Reference in New Issue
Block a user