pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
155 stars 24 forks source link

Add scripts to install openCPU on linux box #14

Closed sckott closed 4 years ago

hadley commented 10 years ago

@jeroenooms can you suggest what we need? Currently we have:

debian_install_opencpu <- function(droplet) {
  droplet %>%
    droplet_ssh(
      "sudo add-apt-repository ppa:opencpu/opencpu-1.4",
      "sudo apt-get update",
      "sudo apt-get -q -y install opencpu",
      "sudo service opencpu start"
    )
}
jeroen commented 10 years ago

Are you getting an error?

jeroen commented 10 years ago

Maybe your script halts because postfix asks for a hostname if you haven't set /etc/hostname yet. To do a silent install you can do something like:

# Prevent postfix from prompting for hostname
sudo debconf-set-selections <<< "postfix postfix/mailname string your.hostname.com"
sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
sudo apt-get install -y postfix

# Install OpenCPU
sudo add-apt-repository -y ppa:opencpu/opencpu-1.4
sudo apt-get update
sudo apt-get install -y opencpu-server
cboettig commented 10 years ago

Um, once again I think Docker is probably the fastest/easiest solution here, e.g. using @jeroenooms image to deploy on port 443:

docker run -t -d -p 5080:8006 -p 443:8007 jeroenooms/opencpu-dev
sckott commented 4 years ago

we have debian_install_opencpu