Skip to content

Commit 73c93ef

Browse files
authored
Merge pull request #14 from vim-denops/fix-build-failure
Modernize build system: Migrate to Debian Bookworm and Docker Compose
2 parents afedfa9 + 440f183 commit 73c93ef

File tree

5 files changed

+52
-59
lines changed

5 files changed

+52
-59
lines changed

Makefile

Lines changed: 0 additions & 46 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,20 @@ See [examples/ddc.vim](./examples/ddc.vim) for details.
9696
Build [ghcr.io/vim-denops/vim][] and [ghcr.io/vim-denops/neovim][] with
9797

9898
```
99-
make build
99+
docker compose build
100100
```
101101

102-
The push it with
102+
Then push it with
103103

104104
```
105-
make push
105+
docker compose push
106+
```
107+
108+
You can also specify the Denops version and Docker tag:
109+
110+
```
111+
DENOPS_VERSION=v6.0.0 DOCKER_TAG=v6.0.0 docker compose build
112+
DOCKER_TAG=v6.0.0 docker compose push
106113
```
107114

108115
## License

compose.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
services:
2+
vim:
3+
image: ghcr.io/vim-denops/vim:${DOCKER_TAG:-latest}
4+
build:
5+
context: .
6+
dockerfile: dockerfiles/vim
7+
platforms:
8+
- linux/amd64
9+
- linux/arm64
10+
args:
11+
DENOPS_VERSION: ${DENOPS_VERSION:-main}
12+
cache_from:
13+
- ghcr.io/vim-denops/vim/cache
14+
- ghcr.io/vim-denops/vim
15+
cache_to:
16+
- type=registry,ref=ghcr.io/vim-denops/vim/cache,mode=max
17+
18+
neovim:
19+
image: ghcr.io/vim-denops/neovim:${DOCKER_TAG:-latest}
20+
build:
21+
context: .
22+
dockerfile: dockerfiles/neovim
23+
platforms:
24+
- linux/amd64
25+
- linux/arm64
26+
args:
27+
DENOPS_VERSION: ${DENOPS_VERSION:-main}
28+
cache_from:
29+
- ghcr.io/vim-denops/neovim/cache
30+
- ghcr.io/vim-denops/neovim
31+
cache_to:
32+
- type=registry,ref=ghcr.io/vim-denops/neovim/cache,mode=max

dockerfiles/neovim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker.io/docker/dockerfile:1.4
22
#------------------------------------------------------------------------------------------------------------
3-
FROM debian:bullseye-backports as neovim
3+
FROM debian:bookworm-backports as neovim
44
ENV DEBIAN_FRONTEND=noninteractive
55

66
# Install requirements
@@ -32,7 +32,7 @@ RUN git clone https://github.com/neovim/neovim \
3232

3333

3434
#------------------------------------------------------------------------------------------------------------
35-
FROM debian:bullseye-backports as deno
35+
FROM debian:bookworm-backports as deno
3636
ENV DEBIAN_FRONTEND=noninteractive
3737

3838
# Install requirements
@@ -50,7 +50,7 @@ RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/opt/deno sh -s ${DEN
5050

5151

5252
#------------------------------------------------------------------------------------------------------------
53-
FROM debian:bullseye-backports as denops
53+
FROM debian:bookworm-backports as denops
5454
ENV DEBIAN_FRONTEND=noninteractive
5555

5656
# Install requirements
@@ -72,15 +72,15 @@ RUN mkdir -p denops.vim \
7272

7373

7474
#------------------------------------------------------------------------------------------------------------
75-
FROM debian:bullseye-slim as runtime
75+
FROM debian:bookworm-slim as runtime
7676
ENV DEBIAN_FRONTEND=noninteractive
7777

7878
LABEL org.opencontainers.image.url https://github.com/orgs/vim-denops/packages/container/package/neovim
7979
LABEL org.opencontainers.image.source https://github.com/vim-denops/denops-dockerfile
8080

8181
# Prefer to use Debian Backports
8282
# https://backports.debian.org/
83-
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' > /etc/apt/sources.list.d/backports.list
83+
RUN echo 'deb http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/backports.list
8484

8585
# Runtime environment
8686
ENV LC_ALL=C.UTF-8 \

dockerfiles/vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker.io/docker/dockerfile:1.4
22
#------------------------------------------------------------------------------------------------------------
3-
FROM debian:bullseye-backports as vim
3+
FROM debian:bookworm-backports as vim
44
ENV DEBIAN_FRONTEND=noninteractive
55

66
# Install requirements
@@ -26,7 +26,7 @@ RUN make install
2626

2727

2828
#------------------------------------------------------------------------------------------------------------
29-
FROM debian:bullseye-backports as deno
29+
FROM debian:bookworm-backports as deno
3030
ENV DEBIAN_FRONTEND=noninteractive
3131

3232
# Install requirements
@@ -44,7 +44,7 @@ RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/opt/deno sh -s ${DEN
4444

4545

4646
#------------------------------------------------------------------------------------------------------------
47-
FROM debian:bullseye-backports as denops
47+
FROM debian:bookworm-backports as denops
4848
ENV DEBIAN_FRONTEND=noninteractive
4949

5050
# Install requirements
@@ -66,15 +66,15 @@ RUN mkdir -p denops.vim \
6666

6767

6868
#------------------------------------------------------------------------------------------------------------
69-
FROM debian:bullseye-slim as runtime
69+
FROM debian:bookworm-slim as runtime
7070
ENV DEBIAN_FRONTEND=noninteractive
7171

7272
LABEL org.opencontainers.image.url https://github.com/orgs/vim-denops/packages/container/package/vim
7373
LABEL org.opencontainers.image.source https://github.com/vim-denops/denops-dockerfile
7474

7575
# Prefer to use Debian Backports
7676
# https://backports.debian.org/
77-
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' > /etc/apt/sources.list.d/backports.list
77+
RUN echo 'deb http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/backports.list
7878

7979
# Runtime environment
8080
ENV LC_ALL=C.UTF-8 \

0 commit comments

Comments
 (0)