Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an image with default Vims (including Neovim) #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# A set of default Vims, including the latest Neovim release.
#
# This is available online at https://hub.docker.com/r/testbed/vim-default/.
FROM testbed/vim

# Currently tested versions:
# - v7.3.429 (Ubuntu Precise, 12.04LTS; same as on Travis currently)
# - v7.4.052 (Ubuntu Trusty, 14.04LTS)
# - v7.4.1689 (Ubuntu Xenial, 16.04LTS)
# - v8.1.0000 (Stable release according to Windows download at
# http://www.vim.org/download.php)
RUN install_vim -tag v7.3.429 -name vim73 -py -build \
-tag v7.4.052 -name vim74-trusty -build \
-tag v7.4.1689 -name vim74-xenial -build \
-tag v8.1.0000 -name vim -py2 -py3 -build \
-tag neovim:v0.3.1 -name nvim -py2 -py3 -build
10 changes: 10 additions & 0 deletions Dockerfile.latest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# The latest Vim and Neovim releases.
#
# The Vim release (tag) is based on the Windows release at
# http://www.vim.org/download.php (assuming this to be considered stable).
#
# This is available online at https://hub.docker.com/r/testbed/vim-latest/.
FROM testbed/vim

RUN install_vim -tag v8.1.0000 -name vim -py3 -build \
-tag neovim:v0.3.1 -py2 -py3 -build
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
.PHONY: build push test

DOCKER_REPO_BASE:=testbed/vim
DOCKER_REPO_VIMS_DEFAULT:=testbed/vim-default
DOCKER_REPO_VIMS_LATEST:=testbed/vim-latest

TAG:=11

build:
docker build -t testbed/vim:$(TAG) .

docker build -t $(DOCKER_REPO_BASE):$(TAG) .
push:
docker push testbed/vim:$(TAG)
docker push $(DOCKER_REPO_BASE):$(TAG)

build_default:
docker build -f Dockerfile.default -t $(DOCKER_REPO_VIMS_DEFAULT) .
push_default:
docker push $(DOCKER_REPO_VIMS_DEFAULT)

update_latest:
docker tag testbed/vim:$(TAG) testbed/vim:latest
docker push testbed/vim:latest

build_latest:
docker build -f Dockerfile.latest -t $(DOCKER_REPO_VIMS_LATEST) .
push_latest:
docker push $(DOCKER_REPO_VIMS_LATEST)

# test: build the base image and example image on top, running tests therein.
DOCKER_BASE_IMAGE:=vim-testbed-base
test:
Expand Down