forked from aws/aws-mwaa-local-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: enable DockerOperator usage (#4)
* mount docker.sock & set perms; required for DockerOperator usage 🧦 * Move docker/.env into docker/.env.example
- Loading branch information
1 parent
6bcabcb
commit 6a865fe
Showing
4 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ dags/**/*.pyc | |
/logs | ||
/db-data | ||
.DS_Store | ||
/docker/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
source "$AIRFLOW_HOME/startup/startup.sh" | ||
declare -p | grep -v '^declare \-[aAilnrtux]*r ' > stored_env | ||
declare -p | grep -v '^declare \-[aAilnrtux]*r ' > stored_env | ||
|
||
# allows the airflow user on the airflow docker container to access | ||
# the host's docker.sock. This is needed for the DockerOperator to work. | ||
sudo chmod 666 /var/run/docker.sock |