Functions for DigitalOcean (DO) droplets
There's a lot of functions for working with droplets. Here's a breakdown of what they all do.
The main functions for creating/deleting droplets:
droplet()
: get a droplet object from a droplet IDdroplet_create()
: create a dropletdroplets_create()
: create two or more dropletsdroplet_delete()
: delete a dropletdroplets()
: get your dropletsas.droplet()
: coerce various things to droplet objectsModify a droplet:
droplet_resize()
: resize a droplet to a different sizedroplet_rebuild()
: reinstall a droplet with a different imagedroplet_rename()
: rename a dropletdroplet_change_kernel()
: change droplet to a new kernelTake and restore snapshots:
droplet_snapshot()
: make a snapshot of a dropletdroplet_snapshots_list()
: list snapshots on a dropletdroplet_backups_list()
: list droplet backupsdroplet_restore()
: Restore a droplet with a previous image or snapshotssh interactions with droplets:
droplet_ssh()
: Remotely execute code on your droplet via sshdroplet_upload()
: Upload files to your droplet via sshdroplet_download()
: Download files from your droplet via sshPerform various actions on droplets:
droplet_actions()
: retrieve a droplet action or list all actions associated with a dropletdroplet_disable_backups()
: Disables backups for a dropletdroplet_do_actions()
: Perform actions on one or more droplets associated with a tagdroplet_enable_backups()
: Enables backups for a dropletdroplet_enable_ipv6()
: Enable IPv6 networking on an existing droplet (within a region that has IPv6 available)droplet_enable_private_networking()
: Enable private networking on an existing droplet (within a region that has private networking available)droplet_execute()
: Execute R code on a dropletdroplet_kernels_list()
: List all available kernels for a dropletdroplet_neighbors()
: List a droplet's neighbors on the same physical serverdroplet_power_cycle()
: power cycle a droplet. will turn off the droplet and then turn it back ondroplet_power_off()
: Shutdown a running droplet. The droplet will remain in your account and you will continue to be charged for itdroplet_power_on()
: Turn on a droplet that's turned offdroplet_reboot()
: reboot a droplet. This is the preferred method to use if a server is not respondingdroplet_reset_password()
: reset the root password for a dropletdroplet_reuse()
: Reuse a droplet or image by name, creating a new dropletdroplet_shutdown()
: Shutdown a running droplet. The droplet will remain in your account and you will continue to be charged for it.droplet_upgrade()
: Migrate a droplet - NOT SURE IF THIS STILL WORKS OR NOTdroplet_upgrades_list()
: List all droplets that are scheduled to be upgradeddroplet_wait()
: Wait for a droplet to be ready. mostly used internallydroplets_cost()
: Calculate cost across dropletsFreeze/thaw droplets:
droplet_freeze()
: power off a droplet, snapshots to create an image, and deletes the dropletdroplet_thaw()
: takes an image and turns it into a running dropletWe named a DO droplet with the Docker application installed a "docklet" for convienence
The main two functions for creating docklets:
docklet_create()
: create a docklet (a droplet using the docker image)docklets_create()
: create many dockletsRunning docker commands on your docklet:
docklet_images()
: list docker images on your dockletdocklet_ps()
: list running docker containersdocklet_pull()
: pull a docker image to your dockletdocklet_rm()
: remove a docker image from your dockletdocklet_run()
: run a docker command on your dockletdocklet_stop()
: stop a running docker containerdocklet_docker()
: low level fxn for running docker commands on your, not realy intended for public useInstall RStudio things:
docklet_rstudio()
: install RStudio on your docklet using Rocker images (https://hub.docker.com/u/rocker)docklet_rstudio_addusers()
: add users to an RStudio docker imagedocklet_shinyserver()
: install Shiny server on your docklet using Rocker images (https://hub.docker.com/u/rocker)docklet_shinyapp()
: install a Shiny app on your Shiny server docker container