-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (18 loc) · 821 Bytes
/
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
FROM ubuntu:jammy
RUN apt-get update
RUN apt-get -y install wget curl git
RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
WORKDIR /nvim
RUN wget https://github.com/neovim/neovim/releases/download/v0.9.0/nvim.appimage
RUN chmod +x ./nvim.appimage
RUN ./nvim.appimage --appimage-extract
WORKDIR /src
RUN git clone https://github.com/sourcegraph/create.git
CMD mkdir /root/.config/nvim
COPY . sourcegraph.nvim
COPY test/configs/minimal.vimrc /root/.vimrc
COPY test/configs/init.vim /root/.config/nvim/init.vim
RUN /nvim/squashfs-root/AppRun --headless -c "PlugInstall --sync" -c "qa"
WORKDIR /src/create
CMD ["/nvim/squashfs-root/AppRun", "--headless", "-c", "PlenaryBustedFile /src/sourcegraph.nvim/test/plenary/test.lua", "-c", "qa"]