You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/23 23:11:50 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #21052: Fixed instructions for custom image build with docker compose

potiuk commented on a change in pull request #21052:
URL: https://github.com/apache/airflow/pull/21052#discussion_r790344541



##########
File path: docs/docker-stack/build.rst
##########
@@ -81,7 +81,9 @@ In the simplest case building your image consists of those steps:
 
 4) Once you build the image locally you have usually several options to make them available for your deployment:
 
-* For ``docker-compose`` deployment, that's all you need. The image is stored in Docker engine cache
+* For ``docker-compose`` deployment, open your ``docker-compose.yaml`` file and search for the phrase "In order 
+  to add custom dependencies". Follow these instructions of commenting the "image" line and uncommenting the 
+  "build" line. Then run `docker-compose build` to build the images. The image is stored in Docker engine cache
   and Docker Compose will use it from there.

Review comment:
       ```suggestion
   * For ``docker-compose`` deployment, if you've already built your image, and want to continue
     building the image manually when needed with ``docker build``, you can edit the 
     docker-compose.yaml and replace the "apache/airflow:<version>" image with the
     image you've just built ``my-image:0.0.1`` - it will be used from your local Docker
     Engine cache. You can also simply set ``AIRFLOW_IMAGE_NAME`` variable to
     point to your image and ``docer-compose` will use it automatically without having
     to modify the file.
   
   * Also for ``docker-compose`` deployment, you can delegate image building to the docker-compose.
     To do that - open your ``docker-compose.yaml`` file and search for the phrase "In order
      to add custom dependencies".  Follow these instructions of commenting the "image"
      line and uncommenting the "build" line. This is a standard docker-compose feature
      and you can read about it in 
     `Docker Compose build reference <https://docs.docker.com/compose/reference/build/>`_.
     Run `docker-compose build` to build the images. Simoilarly as in the previous case, the
     image is stored in Docker engine cache and Docker Compose will use it from there.
     The `docker-compose build` command uses the same `docker build` command that
     you can run manually under-the-hood.
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org