-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
49 lines (40 loc) · 2.56 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM debian:jessie
MAINTAINER Ben Cao <benb88@gmail.com>
RUN apt-get update && \
apt-get update && \
apt-get install -y vim-nox curl git exuberant-ctags silversearcher-ag && \
apt-get clean
ENV TERM=xterm-256color PLUGINDIR=/usr/share/vim/vimfiles
# use pathogen as a runtime
RUN mkdir -p $PLUGINDIR/autoload $PLUGINDIR/bundle && \
curl -LSso $PLUGINDIR/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# install plugins
RUN git clone https://github.com/rking/ag.vim.git $PLUGINDIR/bundle/ag.vim && \
git clone https://github.com/ctrlpvim/ctrlp.vim.git $PLUGINDIR/bundle/ctrlp.vim && \
git clone https://github.com/lambdatoast/elm.vim.git $PLUGINDIR/bundle/elm.vim && \
git clone https://github.com/scrooloose/nerdtree.git $PLUGINDIR/bundle/nerdtree && \
git clone https://github.com/ervandew/supertab.git $PLUGINDIR/bundle/supertab && \
git clone https://github.com/bling/vim-airline.git $PLUGINDIR/bundle/vim-airline && \
git clone https://github.com/ntpeters/vim-better-whitespace.git $PLUGINDIR/bundle/vim-better-whitespace && \
git clone https://github.com/altercation/vim-colors-solarized.git $PLUGINDIR/bundle/vim-colors-solarized && \
git clone https://github.com/tpope/vim-commentary.git $PLUGINDIR/bundle/vim-commentary && \
git clone https://github.com/elixir-lang/vim-elixir.git $PLUGINDIR/bundle/vim-elixir && \
git clone https://github.com/tpope/vim-fugitive.git $PLUGINDIR/bundle/vim-fugitive && \
git clone https://github.com/airblade/vim-gitgutter.git $PLUGINDIR/bundle/vim-gitgutter && \
git clone https://github.com/easymotion/vim-easymotion.git $PLUGINDIR/bundle/vim-easymotion && \
git clone https://github.com/junegunn/vim-easy-align.git $PLUGINDIR/bundle/vim-easy-align && \
git clone https://github.com/terryma/vim-multiple-cursors.git $PLUGINDIR/bundle/vim-multiple-cursors && \
git clone https://github.com/tpope/vim-repeat.git $PLUGINDIR/bundle/vim-repeat && \
git clone https://github.com/pangloss/vim-javascript.git $PLUGINDIR/bundle/vim-javascript && \
git clone git://github.com/tpope/vim-sleuth.git $PLUGINDIR/bundle/vim-sleuth && \
git clone https://github.com/tpope/vim-surround.git $PLUGINDIR/bundle/vim-surround
# add customized vimrc
ADD vimrc /etc/vim/vimrc.local
# entrypoint where the magical mapping happens
ADD ./entrypoint.sh /usr/local/bin/entrypoint.sh
# add vim_in_docker help doc in vim
ADD doc/vim_in_docker.txt $PLUGINDIR/bundle/vim_in_docker/doc/vim_in_docker.txt
# build helps
RUN vim -T xterm +Helptags +qall
WORKDIR /mnt/host_fs
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]