System Management

Docker Ubuntu 이미지에서 R 설치

kogun82 2022. 12. 27. 13:55
docker run -i -t -d -p 13118:13118 -v /BiO/storage/docker/gedie:/BiO --name gedie ubuntu:latest

sudo apt update -qq

sudo apt install --no-install-recommends software-properties-common dirmngr

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

sudo wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc

sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"

sudo apt install --no-install-recommends r-base

sudo -i R

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y libgit2-dev 
sudo apt-get install -y libcurl4-openssl-dev libssl-dev
sudo apt-get install -y zlib1g-dev libssh2-1-dev libpq-dev libxml2-dev
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libxml2-dev
sudo apt-get install libharfbuzz-dev  libfribidi-dev
sudo apt install libtiff-dev
sudo apt install libfreetype6-dev
sudo apt install libfontconfig1-dev
sudo apt install libclang-dev
sudo apt-get install sudo wget vim net-tools
sudo apt-get install gnupg gnupg2 gnupg1
sudo apt-get install libblas-dev liblapack-dev

install.packages("devtools")
반응형