Skip to content

Instantly share code, notes, and snippets.

View qykong's full-sized avatar
🐢

Quyu Kong qykong

🐢
View GitHub Profile
@qykong
qykong / Dockerfile
Last active December 1, 2020 23:28
Customized rstudio dockerfile
FROM rocker/rstudio
RUN /rocker_scripts/install_tidyverse.sh
RUN Rscript -e "install.packages(c('cowplot', 'poweRlaw', 'pbmcapply', 'devtools', 'tidyverse', 'data.table', 'bit64', 'nloptr', 'furrr', 'future', 'future.batchtools', 'igraph', 'caret', 'see', 'flexclust', 'ggrepel', 'tsne', 'R.utils', 'Hmisc', 'reticulate'))"
RUN apt-get -y update && apt-get -y install libglpk40
RUN Rscript -e "devtools::install_github('behavioral-ds/evently')"
RUN Rscript -e "evently::setup_ampl('/home/rstudio')"
RUN echo "PATH=$PATH:/home/rstudio/ampl" >> /home/rstudio/.Renviron
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
@qykong
qykong / get_docker.sh
Created February 16, 2021 06:25 — forked from sequoiap/get_docker.sh
Install docker on Ubuntu
#!/usr/bin/env bash
# Convenience script for setting up docker and docker-compose on Ubuntu.
# Steps essentially copied and pasted from:
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
# https://docs.docker.com/compose/install/
# Uninstall any existing docker installations
sudo apt-get remove docker docker-engine docker.io containerd runc