No versions of Astronomer Certified (AC) are currently supported by Astronomer. Astronomer stopped releasing new versions of AC with the release of Apache Airflow 2.4. Astronomer recommends creating all new Deployments with Astro Runtime, as well as migrating existing Deployments from AC to Astro Runtime as soon as your organization is ready. See Migrate to Runtime and Runtime image architecture.
Install packages to the Docker image
If you use the Astronomer Certified Docker image to run Airflow, you can install packages directly onto your image via yourDockerfile. To install OS-level packages, you can specify them using a RUN directive with apt-get. For example, the following Dockerfile would install your-os-package on the image:
RUN directive with pip install instead. For example:
The process for installing dependencies is different if you are using the Astro CLI to deploy your Docker image to Astronomer. For an Astronomer platform-based setup, see [Install packages via the Astro CLI](customize-image#add-python-and-os-level-dependencies.
docker-build, the image will have access to any packages that you specified. To confirm that a package was installed:
-
Run
docker psand retrieve the container ID of your scheduler container. -
Run the following command:
If the package was successfully installed, you should see the following output: