Skip to content

trevorwhitney/docker-pairing-environment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 68.5%
  • Shell 31.5%