-
-
Save rbs392/758919a7fbf788e38895d6ac9fa3c7f1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ubuntu:16.04 | |
| WORKDIR /apps | |
| RUN apt-get update && \ | |
| apt-get -y install openssl clang g++ python-dev make cmake git ncurses-dev wget | |
| RUN wget https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz -P /tmp && \ | |
| cd /tmp && tar xf boost_1_65_1.tar.gz && \ | |
| cd boost_1_65_1 && ./bootstrap.sh && ./b2 install | |
| RUN apt-get install -y libssl-dev && \ | |
| wget https://github.com/nghttp2/nghttp2/releases/download/v1.27.0/nghttp2-1.27.0.tar.gz -P /tmp && \ | |
| cd /tmp && \ | |
| tar xf /tmp/nghttp2-1.27.0.tar.gz && \ | |
| cd nghttp2-1.27.0 && \ | |
| ./configure --enable-asio-lib LDFLAGS="-L/usr/lib/python2.7" && make && make install && \ | |
| wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz -P /tmp/ && \ | |
| cd /tmp && \ | |
| tar xf /tmp/release-1.8.0.tar.gz && \ | |
| cd /tmp/googletest-release-1.8.0 && \ | |
| mkdir build && cd build && cmake .. && make && make install | |
| RUN cd /tmp && git clone https://github.com/vim/vim.git && \ | |
| cd vim && \ | |
| ./configure --with-features=huge \ | |
| --enable-multibyte \ | |
| --enable-pythoninterp=yes \ | |
| --with-python-config-dir=/usr/lib/python2.7/config \ | |
| --enable-python3interp=yes \ | |
| --with-python3-config-dir=/usr/lib/python3.5/config \ | |
| --enable-cscope \ | |
| --prefix=/usr && \ | |
| make && make install | |
| RUN git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/Vundle.vim && \ | |
| printf "set nocompatible\n \ | |
| set encoding=utf-8\n \ | |
| syntax on\n \ | |
| colorscheme elflord\n \ | |
| filetype off \n \ | |
| set rtp+=~/.vim/bundle/Vundle.vim\n \ | |
| call vundle#begin()\n \ | |
| Plugin 'VundleVim/Vundle.vim'\n \ | |
| Plugin 'Valloric/YouCompleteMe'\n \ | |
| Plugin 'rdnetto/YCM-Generator'\n \ | |
| call vundle#end()\n \ | |
| filetype plugin indent on\n \ | |
| let g:ycm_confirm_extra_conf=0" > ~/.vimrc && \ | |
| vim +PluginInstall +qall && \ | |
| cd ~/.vim/bundle/YouCompleteMe && \ | |
| ./install.py --clang-completer --system-libclang | |
| RUN apt-get -y install cscope | |
| ENV term xterm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment