Code Monkey home page Code Monkey logo

tin-foil-hat's Introduction

tin-foil-hat

For paranoid folks who want to test code away from their home environment.

What's in it?

The image is based on Ubuntu 19.10 and comes with various things installed, notably:

  • Go version 1.14.1
  • Kind version 0.8.0-alpha
  • Kubectl version 1.17.0
  • Some pimped out Vim and Tmux

Running

To simply run the container as a sandbox for cloning and looking at stuff:

docker run -it callisto13/tin-foil-hat /bin/bash

To clone stuff and then deploy it to kube:

Running docker in docker is a pain in the ass and not generally advised. (Running containers in containers is doable, but I can't be bothered to set that up right now.)

So if whatever you are testing needs to deploy to docker/kube, you can run the container with your host socket mounted. Any containers you create within the tin-foil-hat container will appear as siblings on the host. Likewise, the tin-foil-hat container will be visible from the inside. Try not to do anything stupid with it.

docker run -v /var/run/docker.sock:/var/run/docker.sock -it callisto13/tin-foil-hat /bin/bash

Creating and connecting to clusters

Once inside you can create a kind cluster as you would normally, and connect to it via kubectl (no bash shortcuts installed yet).

There is currently one manual step: the clusters you create will be in sibling containers, which means you will need to connect to them via the host network, not localhost.

Update the server field in /root/.kube/config to https://host.docker.internal:<port>.

coming soon: connect to some other kube cluster already running on the host.

Vim

If you want to use (decent) Vim while in the container, run the following:

/root/.vimupdate

It may complain at the start but don't worry about it.

tin-foil-hat's People

Watchers

 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.