ess / c3tk

CLI tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Containerized Command Center Tool Kit (c3tk)

This is a busybox style tool kit for being able to leverage many tools on any workstation without having to install them on the host system in a repeatably and consistently.

Prerequsites

First install a container runtime:

Installation Via GitHub

Security Note: Please inspect the script before you run it so you understand what is happening! Also feel free to download and install as separate steps. :)

curl -o - https://raw.githubusercontent.com/c3tk/c3tk/main/bin/c3tk | sudo bash

Follow the output of the instructions emitted from the install such as adding to your `PATH:

grep -q c3tk ~/.profile || echo 'export PATH="$(c3tk paths):$PATH"' >> ~/.profile

Then open a new shell and start adding the commands you are interested in.

Configuration

Individual commands may be added from the command line as follows,

c3tk add <name> <image>

Run c3tk add to see a full description of the help output.

So for example to add the aws cli we run:

c3tk add aws image=amazon/aws-cli

Alternatively we can install sets of commands via .c3tk files. First place the files into your ~/.c3tk/config directory such as

ls ~/.c3tk/config
clouds.c3tk
hashicorp.c3tk
k8s.c3tk

Then run c3tk configure and c3tk will install the commands referenced in these files.

This will install links for the commands in the INSTALL_PATH, which defaults to /usr/local/bin/c3tk/bin.

Ensure that /usr/local/bin/c3tk/bin is in your path and then use the commands in your terminal!

NOTE: You can override the installation directory by exporting the environment variable INSTALL_PATH like so:

export INSTALL_PATH="/usr/local/bin" ./

Development Installation Via Repository

  1. Download the c3tk repo
  2. Run make

About

CLI tools

License:MIT License


Languages

Language:Shell 83.7%Language:Dockerfile 12.6%Language:Makefile 3.6%