1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:10:06 +08:00
SpaceVim/docker
Maxim 7606e57177
Chore: Add compatibility with podman for build task. (#4064)
Change in Makefile for build with docker or podman via one interface. Also add error if no docker or podman installed.

Co-authored-by: Maxim Albeschenko <admin013@mnalb-n01.localdomain>
2021-02-09 12:41:33 +08:00
..
Dockerfile.nvim-python3 Add docker spacevim (#2238) 2018-10-06 12:51:37 +08:00
init.toml Update copyright (#3744) 2020-08-31 21:24:27 +08:00
Makefile Chore: Add compatibility with podman for build task. (#4064) 2021-02-09 12:41:33 +08:00
README.md fix alias in Docker Hub README.md (#2715) 2019-03-31 08:03:19 +08:00

SpaceVim and Neovim in Docker

Docker Build Status

This Dockerfile builds neovim HEAD and installs the latest available version of SpaceVim. You might want to use this for several reasons:

  • Have a consistent version of Neovim and SpaceVim as long as the machine supports Docker.
  • Try SpaceVim without modifying your current Vim/Neovim configuration.
  • Try the latest Neovim with SpaceVim.
  • Try SpaceVim with a newer version of Python.
  • Debug SpaceVim configurations. e.g. when posting a bug report if you can reproduce it in this container then there's a higher chance that it is a true bug and not just an issue with your machine.

FAQ

Isn't Docker stateless? Won't I have to reinstall all plugins each time I launch the container?

  • During the build we call dein#install() so all plugins are installed and frozen. Your custom configurations can be added as an additional build step using the Docker COPY command.

Build

You can build using the supplied Makefile:

make build

or call the command manually using:

docker build -t nvim -f Dockerfile.nvim-python3 .

Run

You can run the container using:

docker run -it nvim

but that isn't terribly useful since changes made inside the container won't be visible outside. More useful is mounting the current working directory inside the container:

docker run -it -v $(pwd):/home/spacevim/src nvim

Even better is an alias dnvim which will do this automatically:

alias dnvim='docker run -it -v $(pwd):/home/spacevim/src nvim'