reload/resh

By reload

Updated 5 days ago

Image
0

434

Reload (ops?) Shell

A small docker-based shell that eases the use of terraform.

Resh mounts ${HOME}/.config into the shell which makes your google cloud sdk state available inside the shell. It also source .resh.profile if the file exists in the directory which allows you to implement project-specific tweaks.

Installation

# Optional, this step is assumed in the remaining examples though.
ln -s /path/to/checkout/resh/run.sh /usr/local/bin/resh

# Make sure the image is build (this could be built into the image in a future release or we could just go via dockerhub)
make

Usage

# Then cd to your project that may or may not have a .resh.profile
# Launch the shell
resh

# Then (inside the shell) do the following to make the reops project admin
# service-account available.
unseal-admin

# You can now do terraform init/plan/apply/etc.

Dangerzone (probably)

# You could also launch resh like this
bash -c "$(docker run reload/resh:latest cat /opt/resh/resh.sh)"

# With all the obvious risks it may carry

Docker Pull Command

docker pull reload/resh