Personnaliser l'environnement

De Wiki de Jordan LE NUFF
Sauter à la navigation Sauter à la recherche

Présentation

Cette page a pour objet de décrire comment personnaliser l'environnement Cloud Shell.

Documentation

Cette page s'est appuyé sur la documentation officielle de GCP : https://cloud.google.com/shell/docs/configuring-cloud-shell?hl=fr#environment_customization

Mise en œuvre

#!/bin/sh
apt-get update
apt-get -y install google-cloud-sdk-gke-gcloud-auth-plugin iputils-ping
# Installaing crcmod
apt-get -y install gcc python3-dev python3-setuptools
pip3 install --no-cache-dir -U crcmod
# Set timezone
unlink /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
# Install MongoDB shell
#wget https://downloads.mongodb.com/compass/mongodb-mongosh_1.5.4_amd64.deb
dpkg -i mongodb-mongosh_1.5.4_amd64.deb
# Install tfswitch
curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | bash
export PATH=$HOME/bin:$PATH
# Enf of tfswitch