-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.x86_64.vim
111 lines (94 loc) · 3.19 KB
/
Dockerfile.x86_64.vim
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
FROM ubuntu:16.04
ENV LC_ALL="en_US.UTF-8"
RUN apt-get update && \
apt-get install -y \
python-dev \
python-pip \
python3-dev \
python3-pip \
curl \
exuberant-ctags \
libncurses-dev \
git \
shellcheck \
locales \
language-pack-en \
perl \
libperl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install --upgrade pip \
&& pip install \
pep8 \
flake8 \
pyflakes \
autopep8
RUN git clone https://github.com/vim/vim.git \
&& mkdir -p /install \
&& cd vim/src \
&& export PYTHON2_SRCDIR="/usr/lib/python2.7/config-x86_64-linux-gnu" \
&& export PYTHON3_SRCDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_config_vars("srcdir")[0])') \
&& ./configure --prefix=/install \
--enable-multibyte \
--enable-perlinterp=dynamic \
--enable-pythoninterp=dynamic \
--with-python-config-dir=$PYTHON2_SRCDIR \
--enable-python3interp \
--with-python3-config-dir=$PYTHON3_SRCDIR \
--enable-cscope \
--enable-gui=auto \
--with-features=huge \
--with-x \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--with-compiledby="vind" \
--enable-fail-if-missing \
&& make \
&& make install
FROM ubuntu:16.04
ENV LC_ALL="en_US.UTF-8"
RUN apt-get update && \
apt-get install -y \
python-dev \
python-pip \
python3-dev \
python3-pip \
curl \
exuberant-ctags \
libncurses-dev \
git \
shellcheck \
locales \
language-pack-en \
perl \
libperl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install --upgrade pip \
&& pip install \
pep8 \
flake8 \
pyflakes \
autopep8
COPY --from=0 /install /install
RUN ln -s /install/bin/vim /bin/vim
RUN mkdir -p /vim/autoload /vim/bundle
ADD https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim /vim/autoload/pathogen.vim
RUN cd /vim/bundle \
&& git clone --depth 1 https://github.com/ConradIrwin/vim-bracketed-paste.git \
&& git clone --depth 1 https://github.com/scrooloose/nerdtree.git \
&& git clone --depth 1 https://github.com/jistr/vim-nerdtree-tabs.git \
&& git clone --depth 1 https://github.com/vim-airline/vim-airline.git \
&& git clone --depth 1 https://github.com/vim-airline/vim-airline-themes.git \
&& git clone --depth 1 https://github.com/ntpeters/vim-better-whitespace.git \
&& git clone --depth 1 https://github.com/tpope/vim-fugitive.git \
&& git clone --depth 1 https://github.com/mhinz/vim-signify.git \
&& git clone --depth 1 https://github.com/vim-syntastic/syntastic.git \
&& git clone --depth 1 https://github.com/tell-k/vim-autopep8.git \
&& git clone --depth 1 --recursive https://github.com/davidhalter/jedi-vim.git \
&& git clone --depth 1 https://github.com/ekalinin/Dockerfile.vim
ADD https://raw.githubusercontent.com/vim-scripts/moria/master/colors/moria.vim /vim/colors/moria.vim
COPY vim-context /vim/
RUN chmod -R 755 /vim
ENTRYPOINT [ "/vim/entrypoint.sh" ]