-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/dags/ | ||
/logs/ | ||
.bash_history |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG AIRFLOW_VERSION | ||
ARG AIRFLOW_VERSION | ||
|
||
FROM apache/airflow:${AIRFLOW_VERSION} | ||
ARG PLUGIN_VERSION | ||
|
||
USER root | ||
# Install git | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
git \ | ||
&& apt-get autoremove -yqq --purge \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
USER airflow | ||
|
||
# Install Airflow | ||
COPY requirements-optional.txt . | ||
RUN pip install --no-cache-dir airflow-code-editor==${PLUGIN_VERSION} -r requirements-optional.txt && rm requirements-optional.txt | ||
# Init airflow db | ||
RUN airflow db init | ||
# Create user 'admin' with password 'admin' | ||
RUN airflow users create -r Admin -u admin -e [email protected] -f admin -l admin -p admin | ||
RUN airflow sync-perm | ||
|
||
ENV PYTHONPATH = /home/airflow |
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