This is a quick "how-to" built off of several other's blogs, twitter posts, gists and such. The goal is to create a workable environment for basic GCP (gcloud) development with VSCode.
This installation process takes about 30-45 minutes each time a container is built from scratch (purely based on network performance, so could be faster or slower, this was my experience).
- Enable chromebook for development (https://github.com/lstoll/cros-crostini/blob/master/README.md)
- Run the script (vscode-gcloud-chromebook.sh) to setup VSCode + GCloud
- Create service account
- Copy/download service account to local
- https://console.cloud.google.com/iam-admin/serviceaccounts/project?project=[YOUR PROJECT]
- Run
gcloud auth activate-service-account --key-file my_service_account.json
gcloud config set project [YOUR PROJECT]
- Stop container:
lxc stop [container-name]
- Start up the same container (easiest and same as starting it up the first time):
run_container.sh --container_name=[container-name] --user=[user] --shell
- Start up alternative:
lxc start [container-name]
lxc exec [container-name] -- /bin/bash