aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2019-08-31 02:39:39 +0000
committermitermayer <mitermayer.reis@gmail.com>2019-08-31 02:39:39 +0000
commit0188e98b1f8f71dcd162f0b3650c416707d38cd3 (patch)
tree5547bf08e2df53ea32214681d5dd99778d6ead19 /Dockerfile
parentda11e78133acc2ec904b5f9cbab0f85ac5401a95 (diff)
downloadvim-prettier-0188e98b1f8f71dcd162f0b3650c416707d38cd3.tar.xz
enabling-tests-to-auto-run-on-ci - Updating docker container
- Updating Dockerfile to ensure we have a compatible vim version to vim-driver
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile43
1 files changed, 38 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 002cea3..a5f428f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,34 @@
+FROM alpine:3.8 as builder
+
+WORKDIR /tmp
+
+RUN apk add --no-cache \
+ build-base \
+ ctags \
+ git \
+ libx11-dev \
+ libxpm-dev \
+ libxt-dev \
+ libxtst-dev \
+ make \
+ ncurses-dev \
+ python3 \
+ python3-dev \
+ perl-dev \
+ ruby-dev
+
+RUN git clone https://github.com/vim/vim && cd vim \
+ && ./configure \
+ --with-features=huge \
+ --with-x \
+ --with-compiledby=mitermayer.reis@gmail.com \
+ && make install
+
FROM testbed/vim:latest
+COPY --from=builder /usr/local/bin /usr/local/bin
+COPY --from=builder /usr/local/share/vim /usr/local/share/vim
+
# install pip
ENV PACKAGES="\
bash \
@@ -8,16 +37,20 @@ ENV PACKAGES="\
py-pip \
nodejs \
npm \
+ libxt \
+ libx11 \
"
+
RUN apk --update add $PACKAGES && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
-# install supported vim8 and neovim
-RUN install_vim -tag v7.4.052 -name vim7 -build \
- -tag v8.1.0519 -name vim -build \
- -tag neovim:v0.3.5 -name neovim -build
+# install supported vim8 and neovim
+RUN install_vim -tag v7.4.052 -name vim7 -build \
+ -tag v8.1.0519 -name vim8 -build \
+ -tag neovim:v0.3.5 -name neovim -build
+
# upgrade node and yarn
RUN npm install -g npm yarn
# install vint
-RUN pip install typing>=3.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19
+RUN pip install typing>=4.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19