-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 997 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (26 loc) · 997 Bytes
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
VERSION := 0.0.9
all: docker-build docker docker-shell
live: docker-build docker-live docker-shell-live
docker-build:
docker build . --tag="dotfiles:$(VERSION)"
docker:
-docker stop dotfiles
-docker rm dotfiles
docker run -d --name dotfiles dotfiles:$(VERSION)
docker-shell:
docker run -it dotfiles:$(VERSION)
docker-live:
docker stop dotfiles
docker rm dotfiles
docker run -d --volume .:/root/dotfiles --name dotfiles dotfiles:$(VERSION)
docker-shell-live:
docker run --volume .:/root/dotfiles -it dotfiles:$(VERSION)
# ── Neovim config test (isolated, glibc base with Neovim 0.12) ──────────────
nvim-test: nvim-build nvim-shell
nvim-build:
docker build -f Dockerfile.nvim . --tag="dotfiles-nvim:$(VERSION)"
nvim-shell:
docker run --rm -it dotfiles-nvim:$(VERSION)
# Live-mount the config for editing; plugins still come from the baked image.
nvim-shell-live:
docker run --rm --volume ./nvim:/root/.config/nvim -it dotfiles-nvim:$(VERSION)