Created
March 6, 2019 14:41
-
-
Save drdavella/8941f2cbcf7163f10cf75f297b414960 to your computer and use it in GitHub Desktop.
Dockerfile for provisioning my Python development environment (with conda) on Centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
RUN yum -y update; yum clean all | |
RUN yum -y install epel-release sudo | |
RUN yum -y install zsh vim tmux git git-gui bzip2 | |
RUN yum -y install gcc cscope valgrind freeglut-devel | |
RUN yum -y install python36 python36-pip | |
RUN pip3.6 install pip --upgrade | |
RUN pip3.6 install ipython | |
RUN useradd --create-home --shell /bin/zsh ddavella --user-group | |
RUN usermod -aG wheel ddavella | |
USER ddavella | |
WORKDIR /home/ddavella | |
# User environment configuration/customization | |
RUN git clone https://github.com/drdavella/dotfiles | |
RUN python ./dotfiles/setup.py | |
# Set up oh-my-zsh | |
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
RUN sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/g' .zshrc | |
RUN set -i 's/plugins=(git)/plugins=(python vi-mode virtualenv pip git git-extras)/g' .zshrc | |
RUN echo "source \$HOME/.zshrc_user" >> .zshrc | |
# Set up vundle | |
RUN git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
RUN vim +PluginInstall +qall | |
# Set up miniconda | |
RUN curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh | |
RUN bash ~/miniconda.sh -b -p $HOME/miniconda3 | |
RUN $HOME/miniconda3/bin/conda update -y -n base -c defaults conda | |
ENTRYPOINT ["/bin/zsh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment