Skip to content

Commit

Permalink
Bump Alpine base image to 3.6
Browse files Browse the repository at this point in the history
neovim: install lpeg/mpack via lua5.1 packages
  • Loading branch information
blueyed committed Jun 11, 2017
1 parent 3d7bad7 commit 8959745
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.5
FROM alpine:3.6

RUN adduser -h /home -s /bin/sh -D -u 8465 vimtest

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build push test

TAG:=3
TAG:=4

build:
docker build -t testbed/vim:$(TAG) .
Expand Down
15 changes: 2 additions & 13 deletions scripts/install_vim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ EOF
libuv-dev \
libtermkey-dev \
libvterm-dev \
lua5.1-lpeg \
lua5.1-mpack \
luajit-dev \
m4 \
make \
Expand All @@ -167,19 +169,6 @@ EOF
unzip \
unibilium-dev \
xz

# Install luarocks manually for Alpine's luajit.
# I could not make it work through LUAROCKS_OPTS in DEPS_CMAKE_FLAGS.
( cd /tmp
curl -SL https://luarocks.org/releases/luarocks-2.4.1.tar.gz | tar zxp
cd luarocks-*
./configure --lua-suffix=jit --with-lua-bin=/usr/bin/luajit \
--with-lua-include=/usr/include/luajit-2.1
make bootstrap
for rock in lpeg mpack; do
luarocks install $rock
done
)
else
bail "Unexpected FLAVOR: $FLAVOR (use vim or neovim)."
fi
Expand Down

0 comments on commit 8959745

Please sign in to comment.