2018-03-31 18:56:34 -04:00
|
|
|
ARG PYTHON_IMAGE
|
|
|
|
|
|
|
|
FROM python:${PYTHON_IMAGE}
|
|
|
|
|
|
|
|
ARG VIM_VERSION
|
|
|
|
|
|
|
|
COPY scripts/install_packages.sh src/scripts/
|
|
|
|
RUN src/scripts/install_packages.sh
|
|
|
|
COPY scripts/download_vim.sh src/scripts/
|
|
|
|
RUN src/scripts/download_vim.sh
|
|
|
|
COPY scripts/build_vim.sh src/scripts/
|
|
|
|
RUN src/scripts/build_vim.sh
|
|
|
|
|
2018-04-01 14:57:57 -04:00
|
|
|
# We clone the plugins we currently depend on manually here. Initially we check
|
|
|
|
# if their master has changed since last time we build, this will invalidate
|
|
|
|
# the cache.
|
2018-03-31 18:56:34 -04:00
|
|
|
RUN mkdir -p /tmp/UltiSnips_test_vim_plugins
|
|
|
|
|
|
|
|
ADD https://api.github.com/repos/tpope/vim-pathogen/git/refs/heads/master \
|
|
|
|
/src/scripts/vim-pathogen_version.json
|
|
|
|
RUN git clone --recursive --depth 1 https://github.com/tpope/vim-pathogen /tmp/UltiSnips_test_vim_plugins/vim-pathogen
|
|
|
|
|
|
|
|
ADD https://api.github.com/repos/ervandew/supertab/git/refs/heads/master \
|
|
|
|
/src/scripts/supertab_version.json
|
|
|
|
RUN git clone --recursive --depth 1 https://github.com/ervandew/supertab /tmp/UltiSnips_test_vim_plugins/supertab
|
|
|
|
|
2018-04-01 14:57:57 -04:00
|
|
|
# Unidecode is not a Vim plugin, but a Python library we depend on. We also
|
|
|
|
# install the latest version through pip. But we still use GitHub activity as a
|
|
|
|
# marker to invalidate the installation step, just to make sure we occasionally
|
|
|
|
# reinstall a new version.
|
|
|
|
ADD https://api.github.com/repos/avian2/unidecode/git/refs/heads/master \
|
|
|
|
/src/scripts/unidecode_version.json
|
|
|
|
RUN pip install unidecode
|
|
|
|
|
2018-03-31 18:56:34 -04:00
|
|
|
COPY . /src/UltiSnips
|
|
|
|
WORKDIR /src/UltiSnips
|