![]() ![]() Will expose port 8080 to the Raspberry Pi, that’s the Airflow’s Web UI port. Install necessary packages, Airflow and extra subpackages.Ĭopies the entrypoint.sh script from the Raspberry Pi into the image at build time. For pip to see them and avoid installing them as a dependency for airflow I’m updating the PYTHONPATH. They install in dist-packages (and might be a little older FWIW). The apt packages are pre-compiled and install much faster. numpy and pandas are installed via apt instead of pip because building them takes a long time on the Pi (~2hrs in my test ?). Will update, upgrade and install necessary packages from the apt repository.Īdds dist-packages to the PYTHONPATH. I chose it because it’s slim, stable, and familiar. I’m using python:3.7-slim-buster as the base image for our project. Here’s a brief summary of the Dockerfile content: Command entrypoint.sh /entrypoint.sh EXPOSE 8080 ENV AIRFLOW_HOME =/app/airflow ENV AIRFLOW_CORE_LOAD_EXAMPLES =FalseĮNV AIRFLOW_CORE_LOAD_DEFAULT_CONNECTIONS =FalseĮNV AIRFLOW_CORE_FERNET_KEY =this-should-be-unique-and-secret ENV AIRFLOW_WEBSERVER_EXPOSE_CONFIG =True ![]() Python3-numpy ENV PYTHONPATH = " $ :/usr/lib/python3/dist-packages" RUN pip install -U pip setuptools wheel \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |