简体   繁体   中英

how to install apt-get packages on composer2 of GCP

I'm planning to use Composer2 as my airflow runtime. To use my airflow script, I need to install chrome binary on the machine, But I don't know how to execute 'apt-get install' command on my composer2 environment.

As I saw the document, it seems that Composer2 only supports the airflow commands, not linux commands.

Please let me know how to do it

I think the only way to install binary on Cloud Composer machines is a connection on the GKE cluster where Composer is installed.

Then you can install on the GKE nodes the chrome binary .

From the GKE console, you can access to the cluster and connect into with the following command from your schell (you have to be authenticated with an authorized identity):

gcloud container clusters get-credentials instance-name-gke --region europe-west1 --project your-project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM