Nina Andersson
Nina Andersson

Reputation: 1

Installing specific (older) version of OpenCPU

How can I install an older version of OpenCPU?

I am running Ubuntu 22.04 and installed opencpu as described here https://www.opencpu.org/download.html

sudo add-apt-repository -y ppa:opencpu/opencpu-2.2
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get install -y opencpu-server

I got version

2.2.11-jammy

but I need

2.2.9-jammy

I'm using a CRAN snapshot from April 2023 and it contains older version of some R-packages compared to the newest versions installed via the latest opencpu. Unfortunately, due to other issues, I cannot upgrade to newer snapshot and thus I need an older opencpu-version.

Upvotes: 0

Views: 73

Answers (1)

Jeroen Ooms
Jeroen Ooms

Reputation: 32978

Option 1: running in docker

You can use the docker container for example:

docker run -it -p80:80 opencpu/base:v2.2.9-3

Will run opencpu 2.2.9. Open it in your browser: http://localhost/ocpu/info

So you can base your personal app image on that in your Dockerfile like:

FROM opencpu/base:v2.2.9-3

RUN .....

option 2: copying installers

If you do not want to run in docker, you can still copy old installers from a docker image. So you would have to start the docker (on any machine):

docker run --rm -it --name mybox --entrypoint=/bin/bash opencpu/ubuntu-22.04:v2.2.9-3

And then in another shell copy the files:

docker cp mybox:/root/opencpu-lib_2.2.9-jammy3_amd64.deb .
docker cp mybox:/root/opencpu-server_2.2.9-jammy3_all.deb .

And those deb files are the installers that you can install on your server.

Upvotes: 0

Related Questions