Docker image with cloud provider and Confluent Cloud command lines and useful Linux tools like:
- bind-util
- openssl
- findutils
- net-tools
- nc
- jq
- which
- testssl
- hping
- proxychains
- Using credentials file:
$ docker run --rm -it -v $HOME/.aws:/home/appuser/.aws vdesabou/confluent-tools aws
- Using environment variables
This is supported, although NOT encouraged, as the environment variables can end up in command-line history, available for container inspection, etc.
$ docker run --rm -it -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY vdesabou/confluent-tools aws
Authenticate by running:
$ docker run -ti -v /home/appuser/ --name confluent-tools-azure-config vdesabou/confluent-tools az login
Once you authenticate successfully, credentials are preserved in the volume of the confluent-tools-azure-config container.
To run ccloud commands using these credentials, run the container with --volumes-from confluent-tools-azure-config
:
Example:
$ docker run --rm -ti --volumes-from confluent-tools-azure-config vdesabou/confluent-tools az group list
confluent-tools-azure-config
container now has a volume containing your Confluent Cloud credentials.
Once you're done, you can remove confluent-tools-azure-config
container:
$ docker rm -f confluent-tools-azure-config
Authenticate by running:
$ docker run -ti -v /home/appuser/ --name confluent-tools-gcloud-config vdesabou/confluent-tools gcloud auth login
Once you authenticate successfully, credentials are preserved in the volume of the confluent-tools-gcloud-config container.
To run ccloud commands using these credentials, run the container with --volumes-from confluent-tools-gcloud-config
:
Example:
$ docker run --rm -ti --volumes-from confluent-tools-gcloud-config vdesabou/confluent-tools gcloud config set project PROJECT_ID
confluent-tools-gcloud-config
container now has a volume containing your Confluent Cloud credentials.
Once you're done, you can remove confluent-tools-gcloud-config
container:
$ docker rm -f confluent-tools-gcloud-config
Authenticate by running:
$ docker run -ti -e "CCLOUD_BOOTSTRAP_SERVERS=$BOOTSTRAP_SERVERS" -e "CCLOUD_API_KEY=$CCLOUD_API_KEY" -e "CCLOUD_API_SECRET=$CCLOUD_API_SECRET" -v /home/appuser/ --name confluent-tools-ccloud-config vdesabou/confluent-tools ccloud login
Once you authenticate successfully, credentials are preserved in the volume of the confluent-tools-ccloud-config container.
To run ccloud commands using these credentials, run the container with --volumes-from confluent-tools-ccloud-config
:
Example:
$ docker run --rm -ti -e "CCLOUD_BOOTSTRAP_SERVERS=$BOOTSTRAP_SERVERS" -e "CCLOUD_API_KEY=$CCLOUD_API_KEY" -e "CCLOUD_API_SECRET=$CCLOUD_API_SECRET" --volumes-from confluent-tools-ccloud-config vdesabou/confluent-tools ccloud kafka cluster list
confluent-tools-ccloud-config
container now has a volume containing your Confluent Cloud credentials.
Once you're done, you can remove confluent-tools-ccloud-config
container:
$ docker rm -f confluent-tools-ccloud-config