Here's a list of routinely used commands to use after initial setup. For initial setup, proceed to next step.
- use gcp web ui to create a personal disk. This disk will hold all your data (being activly analyzed, not archival) and R libraries. Also, this disk can be resized later if needed.
- attach personal disk to highmem machine (use gcp web ui)
- while creating, check the box for custom name
-
log in to VM:
highmem1
in projectmacosko-lab
. Use either web consle or google cloud CLI. -
format disk using following command. Do this only ONCE right after disk creation.
formatdisk <disk-name>
-
this disk is resizable and can be resized via gcp web ui if needed via web gui and the following command.
refreshdisk <disk-name>
-
see the following docs to start a prebuilt container image for rstudio, jupyter lab, or your own custom container image. Both rstudio and jupyter can containers can be start simultaneously if needed; each can be accessed via a seperate port.
See rstudio docs
See jupyter docs
See custom docs
See own image docs
After work is completed, the following commands can be used to stop the container and release reserved system resourses.
rstudio-stop
: stop rstudio session
jupyter-stop
: stop running jupyter lab session
custom-stop
: stop running custom jupyter lab session
all-stop
: stop all jupyter or rstudio sessions (that have text 'jupyter' or 'rstudio' or 'custom' as part of the underlying container container name)