Last active
October 7, 2018 07:28
-
-
Save masuidrive/676c571d81f02d569eaa29921382f0a0 to your computer and use it in GitHub Desktop.
Install gcloud cli to CODER.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install for gcloud cli | |
# https://docs.coder.com/docs/tech-faqs | |
apt install python2.7 python-pip -y | |
# install yarn for node | |
curl -o- -L https://yarnpkg.com/install.sh | sh | |
# install gcloud | |
curl -o- -L https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-219.0.1-linux-x86_64.tar.gz | tar xfz - -C /usr/local | |
# sometime python2.7 was automatically overrided to latest python. Probablly It's CODER's bug. | |
# So, Take it to safe folder. | |
cp /usr/bin/python2.7 /usr/local/google-cloud-sdk/bin/ | |
echo "" >> ~/.bashrc | |
echo "export PATH=/usr/local/google-cloud-sdk/bin:\$PATH" >> ~/.bashrc | |
echo "export CLOUDSDK_PYTHON=/usr/local/google-cloud-sdk/bin/python2.7" >> ~/.bashrc | |
echo "export CLOUDSDK_CONFIG=.config/gcloud" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CODERのProjectのTerminalで下記を実行してください。
gcloud
コマンドを実行した際に表示されるURLをコピーすると、改行コードが入ってしまうのでペーストした後に取り除いてください。