GithubHelp home page GithubHelp logo

devteds / cloudcli Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 21 KB

Package of CLI tools for the cloud: AWS CLI, Kubectl, Helm, Terraform, doctl (DigitalOcean)

License: MIT License

Dockerfile 65.28% Makefile 2.69% Shell 32.03%
devteds cli aws terraform helm doctl cloudcli ruby kubectl kuberentes

cloudcli's Introduction

Devteds CloudCLI

Package of commonly used CLI tools. Below are a few,

  • AWS
  • doctl (DigitalOcean CLI)
  • Terraform
  • kubectl
  • Helm
  • Ruby
  • Python
  • Git
  • Go
  • OpenSSH
  • RKE

How to use?

You could download cloudcli.sh, and run. See the instructions below.

curl -o /usr/local/bin/cloudcli https://raw.githubusercontent.com/devteds/cloudcli/master/dist/cloudcli.sh
chmod +x /usr/local/bin/cloudcli

cd <WORKDIR>

# Example Commands
cloudcli version

cloudcli exec helm version
cloudcli exec terraform version
cloudcli exec aws configure

# Work within CLI container (mounts current directory)
cloudcli ssh
> ls
> exit

# Optional: Copy SSH key-pair for SSH from cloudcli
mkdir -p .cloudcli/ssh
cp ~/.ssh/id_rsa* ./.cloudcli/ssh/

# Test SSH from cloudcli
cloudcli ssh
> ssh USER@HOST

Can't use the script or using windows?

If you are using windows, you might want to create a script similar to cloudcli.sh. Below are a few examples of running this CLI using docker image instead of the wrapper script,

Launch CLI container and SSH

docker  run -it --rm \
  -v ${PWD}/.cloudcli/aws:/root/.aws:ro \
  -v ${PWD}/.cloudcli/helm:/root/.helm:rw \
  -v ${PWD}/.cloudcli/kube:/root/.kube:rw \
  -v ${PWD}/.cloudcli/doctl:/root/.config:rw \
  -v ${HOME}/.cloudcli/ssh:/root/.ssh:rw \  
  -v ${PWD}/:/cloudcli-home/workspace/:rw \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e AWS_REGION=us-west-2 \
  devteds/cloudcli:latest

> terraform version
> helm version
> aws configure
> python --version
> exit  

Launch CLI container and run a specific CLI command (eg: aws, dotctl, kubectl etc.)

docker  run -it --rm \
  -v ${PWD}/.aws:/root/.aws:ro \
  -v ${PWD}/.helm:/root/.helm:rw \
  -v ${PWD}/.kube:/root/.kube:rw \
  -v ${HOME}/.ssh:/root/.ssh:rw \
  -v ${PWD}/:/cloudcli-home/workspace/:rw \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e AWS_REGION=us-west-2 \
  devteds/cloudcli:latest \
  terraform version

Image on Docker Hub

devteds/cloudcli

cloudcli's People

Contributors

shettigarc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.