Need to set-up a Google Compute Engine Virtual Machine for development jobs. We need:
- set-up ssh keys
- java and maven
- anaconda
- docker
- Enable the OS Login feature on your project or on individual instances.
- Grant the necessary IAM roles to yourself, your project members, or your organization members.
- Add SSH keys to the account (https://cloud.google.com/compute/docs/instances/managing-instance-access#add_oslogin_keys)
Refer to: https://cloud.google.com/compute/docs/instances/managing-instance-access
- SSH into the instance using web console
- Upload using the "gear" icon on top right.
Refer to: https://cloud.google.com/compute/docs/instances/transfer-files
- Update the apt-get
- Install build-essential, default-jdk and maven
sudo apt-get update
sudo apt-get install build-essential default-jdk maven
java -version
mvn -version
- Download anaconda
- Change permission to 755
- Run the downloaded script
curl -L -O https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
chmod 755 Anaconda3-2019.07-Linux-x86_64.sh
./Anaconda3-2019.07-Linux-x86_64.sh
- Install docker from apt repository
sudo apt-get install docker.io
Refer to https://forums.docker.com/t/how-do-i-change-the-docker-image-installation-directory/1169 to re-direct.
Set-up the GCE VM for development containing:
- SSH keys
- Java
- Maven
- Anaconda
- Docker