Simple Ubuntu 17.04 image with various packages installed for remote server management.
478
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.
kubectlgcloudgcsfusegcloud init to get started with Google CloudNote: Run these commands on the host
You'll need Google Cloud SDKโ , gcsfuseโ and Docker Community Editionโ
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
gcloud auth application-default loginMount 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
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.
sudo umount /mnt/gcsbucket/secret/.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.
Content type
Image
Digest
Size
602 MB
Last updated
about 9 years ago
docker pull chepurko/remote-comm-zapus