Skip to content

whatwedo/iac-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whatwedo iac-shell

shell in a container with tools for managing our infrastructure:

  • ansible
  • molecule (ansible testing)
  • prettier, yamllint, ...

Requirements

  • podman

Setup

tbd

Usage

source <(curl -s https://raw.githubusercontent.com/whatwedo/iac-shell/refs/heads/main/source.sh)

provides the iac command. You might want to add it to your .bashrc.

Tools

Containers (podman / docker)

The host's rootless podman socket is forwarded into the container, so both the podman and docker CLIs work inside the shell — they are thin clients driving the host's podman (which serves a Docker-API-compatible endpoint on the same socket). Nothing runs a container engine daemon inside the shell.

podman ps          # host podman
docker ps          # same host podman, via the Docker API
docker compose up  # docker-compose-plugin is installed

DOCKER_HOST / CONTAINER_HOST both point at the forwarded socket, and it is also symlinked to /var/run/docker.sock for tools that hardcode that path.

Helper Commands

go: does ssh and sudo su - in one single command, usage: go my-server

Open Source ❤️

whatwedo

We love whatwedo — a software studio in Bern, Switzerland, fighting the good fight against bad software. But here's the thing: we also love open source.

Curious what else we've been building in the open? → github.com/whatwedo

About

shell in a container for managing our infrastructure

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages