The Beta release of Google Cloud Shell

The Beta release of Google Cloud Shell

張貼者:2016年1月20日 下午12:02黃景煌   [ 已更新 2016年1月20日 下午12:14 ]

Google Cloud Shell provides you with command-line access to computing resources hosted on Google Cloud Platform and is available now in the Google Cloud Platform Console. Cloud Shell makes it easy for you to manage your Cloud Platform Console projects and resources without having to install the Google Cloud SDK and other tools on your system. With Cloud Shell, the Cloud SDK gcloud command and other utilities you need are always available when you need them.

Features

Google Cloud Shell provides the following:

Virtual machine instance

When you launch Cloud Shell, the Google Cloud Platform Console provisions an f1-micro Google Compute Engine virtual machine running a Debian-based Linux operating system. Cloud Shell instances are provisioned on a per-user, per-session basis. The instance persists while your Cloud Shell session is active and terminates after a hour of inactivty.

Command-line access

Cloud Shell provides command-line access to the virtual machine instance in a terminal window that opens in the Cloud Platform Console. You can open multiple shell connections to the same instance. The instance persists between sessions.

Persistent disk storage

Cloud Shell provisions 5 GB of persistent disk storage mounted as your $HOME directory on the virtual machine instance. This storage is on a per-user basis and is available across projects. Unlike the instance itself, this storage does not time out on inactivity. All files you store in your home directory, including installed software, scripts and user configuration files like .bashrcand .vimrc, persist between sessions. Note that your $HOME directory is private to you and cannot be accessed by other users.

Available tools

The Cloud Shell virtual machine instance has the following pre-installed tools:

Type

Tool

Linux shell interpreters

bash

sh

Linux utilities

Standard Debian system utilities

Google SDKs and tools

Google App Engine SDK

Google Cloud SDK including the gcloud command

gsutil for Cloud Storage

Text editors

Emacs

Vim

Nano

Build and package tools

Gradle

Make

Maven

npm

nvm

pip

Source control tools

Git

Mercurial

Additional tools

Docker

iPython

MySQL client

gRPC compiler

You can install additional software packages on the virtual machine instance but the installation will not persist after the instance terminates unless you install the software in your $HOME directory.

Language support

The Cloud Shell virtual machine instance provides pre-installed language support for the following:

Language

Version

Java

JRE/JDK 1.7 and 1.8

Go

1.5

Python

2.7

Node.js

v0.12.2 and v4.1.2 (use nvm to switch versions)

Ruby

2.2.3

PHP

5.6.14

Web preview

Cloud Shell provides web preview functionality that allows you to run web applications on the virtual machine instance and preview them from the Cloud Platform Console. The web applications must listen for HTTP requests on ports within the permitted range 8080 to 8084. These ports are only available to the secure Cloud Shell proxy service, which restricts access over HTTPS to your user account only.

To connect to a web application running on an instance, click the Web Preview button 

 above the Cloud Shell terminal window in the Cloud Platform Console. Then, select the port number from the displayed menu. This opens a preview URL on the Cloud Shell proxy service in a new browser window.

Authorization

Cloud Shell provides built-in authorization for access to projects and resources hosted on Google Cloud Platform. You don't need to perform additional authorization steps to access platform resource using the Cloud SDK gcloud command-line tool.

Limitations

This Beta release of Google Cloud Shell has the following known limitations.

Custom installed software packages and persistence

The virtual machine instance that backs your Cloud Shell session is not permanently allocated to a Cloud Shell session and terminates if the session is inactive for an hour. After the instance is terminated, any modifications that you made to it outside your$HOME are lost.

Slow connection performance

Connecting to a Cloud Shell for the very first time involves creating your home disk and can currently take up to 25 seconds. Subsequent connections to existing virtual machine instances should take about five seconds.

Browser support

Cloud Shell supports the latest versions of Google Chrome, Firefox, Microsoft Edge, Microsoft Internet Explorer 11+ and Safari 8+. Safari in private browser mode is not supported.