I want my deployment pipeline to run a python 3.6 script on my GKE hosted database.
For that, locally, I use kubectl port-forward
then run the script successfully.
However, to run it in my pipeline I need to start a container that will support both GKE access and python3.6
To run python3.6 I'm using the image python:3.6
To run gcloud
and kubectl
I'm using the image google/cloud-sdk:latest
However, gcloud is using python2, hence making it very difficult for me to orchestrate a container that will include all of these tools.
For reference, I'm using Bitbucket Pipelines. Might be able to solve it with the services feature, but currently its too complicated since I need to run many commands on both potential containers.