Sign inSign up

chepurko/remote-comm-zapus

By chepurko

โ€ขUpdated about 9 years ago

Simple Ubuntu 17.04 image with various packages installed for remote server management.

Image
0

478

chepurko/remote-comm-zapus repository overview

โ remote-comm-zapus

Simple Ubuntu 17.04 image with various packages installed for remote server management. Meant to be deployed on any cloud instance and populated with SSH keys and credentials to manage Kubernetes, git repos, etc.

โ What's included

  • kubectl
  • gcloud
  • gcsfuse

โ Usage

  • Run gcloud init to get started with Google Cloud
โ Cloud Storage FUSE

Note: Run these commands on the host

  • You'll need Google Cloud SDKโ , gcsfuseโ  and Docker Community Editionโ 

    • Run the tools-*.sh script for your host's distribution, e.g:
    chmod +x tools-ubuntu-debian.sh
    ./tools-ubuntu-debian.sh
    
  • Obtain Application Default Credentials for gcsfuse

  • Mount a GCS Bucket:

    sudo mkdir /mnt/gcsbucket && sudo chown $USER:$USER /mnt/gcsbucket
    sudo sed -i 's/^#user_allow_other/user_allow_other/g' /etc/fuse.conf
    gcsfuse -o allow_other name_of_your_GCS_bucket /mnt/gcsbucket
    
โ Secrets and Credentials
  • Create a Secret directory in you bucket and encrypt it with ecryptfs

    cd /mnt/gcsbucket
    mkdir -m 700 .secret
    mkdir -m 500 secret
    sudo mount -t ecryptfs .secret/ secret/
    
  • Go through the setup steps and write down your chosen passphrase.

    • You can unmount and re-encrypt your secrets with sudo umount /mnt/gcsbucket/secret/.
    • Repeat the sudo mount -t ecryptfs .secret/ secret/ to mount your secret directory anytime, going through the interactive prompts and answering the same way as when you initially set it up.
  • Start a container with the bucket and secrets mounted: docker run -it -v /mnt/gcsbucket:/root/gcsbucket chepurko/remote-comm-zapus /bin/bash

  • NOTE: The Dockerfile relies on your directories being named gcsbucket, so if you must use a different dir name then you'll have to modify the Dockerfile on your own as welll.

Tag summary

Content type

Image

Digest

Size

602 MB

Last updated

about 9 years ago

docker pull chepurko/remote-comm-zapus