Coder Social home page Coder Social logo

docker-pairing-environment's Introduction

Docker Pairing Environment

This repo includes a Dockerfile and Kubernetes StatefulSet to set up a pod that can be used as a shared pairing environment. To use it, follow the following steps:

  1. Build the Dockerfile with docker build -t some/tag .

  2. Edit statefulset.yaml to use image tag you specified when building the image (TODO: can we publish a shared image to kubernetes-dev?)

    • NOTE: you may also have to edit the storageClassName for the volumeClaimTemplate to match a valid storage class where you are running the image. For example, to run this on a local k3s cluster you would need to change it to be local-disk.
  3. Run kubectl apply -f statefulset.yaml

  4. Run k exec -it -n grafana-dev pair-box-0 -- /bin/bash in order to set up a few things in the box:

    • Run passwd pair to setup a password for the pair account

    • Copy your public ssh key into /home/pair/.ssh/authorized_keys

  5. Put the following in your SSH config (~/.ssh/config)

    Host pair-box
        ProxyCommand kubectl --kubeconfig=$HOME/.kube/config exec -i pods/pair-box-0 -- /usr/sbin/sshd -i
        HostName pair-box
        User pair
        ServerAliveInterval 300
        ServerAliveCountMax 2
    

docker-pairing-environment's People

Contributors

simonswine avatar trevorwhitney avatar

Watchers

 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.