Skip to content

Commit

Permalink
docs: rewrite section to add user ID
Browse files Browse the repository at this point in the history
  • Loading branch information
tskir committed Nov 5, 2023
1 parent f622513 commit ebc383e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/development/airflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ docker build . --tag extending_airflow:latest
### Set Airflow user ID

!!!note Setting Airflow user ID
This command allows Airflow running inside Docker to access the credentials file which was generated earlier.
These commands allow Airflow running inside Docker to access the credentials file which was generated earlier.

```bash
USER_ID=$(id -u)
sed -Ei "s|^AIRFLOW_UID=.*|AIRFLOW_UID=${USER_ID}|" .env
# If any user ID is already specified in .env, remove it.
grep -v "AIRFLOW_UID" .env > .env.tmp
# Add the correct user ID.
echo "AIRFLOW_UID=$(id -u)" >> .env.tmp
# Move the file.
mv .env.tmp .env
```

### Initialise
Expand Down

0 comments on commit ebc383e

Please sign in to comment.