Our directory contains dags and plugins subdirectories. We have been trying for an hour to make this Dockerfile work :
...
# Set AIRFLOW_HOME
ENV AIRFLOW_HOME="/root/airflow"
# Create airflow directory to populate it with dags
RUN mkdir -vp $AIRFLOW_HOME
## Import dags
ADD dags '${AIRFLOW_HOME}/dags'
ADD plugins '${AIRFLOW_HOME}/plugins'
...
No matter what we tried, the dags and plugins subdirectories would just not be created under the specified path. Until we did this :
ADD dags ${AIRFLOW_HOME}'/dags'
ADD plugins ${AIRFLOW_HOME}'/plugins'
I.E. Removed the ${AIRFLOW_HOME} from under the string brackets... Why is this behaving this way? Could you provide an explanation of what we're doing wrong?