Skip to content

Commit 9e2cbe9

Browse files
authored
Merge pull request #36 from blueyed/alpine-3.6
Bump Alpine base image to 3.6
2 parents 3d7bad7 + df77b58 commit 9e2cbe9

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.5
1+
FROM alpine:3.6
22

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: build push test
22

3-
TAG:=3
3+
TAG:=4
44

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

scripts/install_vim.sh

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ EOF
142142
# Some of them will be installed already, but it is a good reference for
143143
# what is required.
144144
# luajit is required with Neomvim 0.2.1+ (previously only during build).
145-
apk add libuv \
145+
apk add gettext \
146+
libuv \
146147
libtermkey \
147148
libvterm \
148149
luajit \
@@ -154,11 +155,14 @@ EOF
154155
ca-certificates \
155156
cmake \
156157
g++ \
158+
gettext-dev \
157159
gperf \
158160
libtool \
159161
libuv-dev \
160162
libtermkey-dev \
161163
libvterm-dev \
164+
lua5.1-lpeg \
165+
lua5.1-mpack \
162166
luajit-dev \
163167
m4 \
164168
make \
@@ -167,19 +171,6 @@ EOF
167171
unzip \
168172
unibilium-dev \
169173
xz
170-
171-
# Install luarocks manually for Alpine's luajit.
172-
# I could not make it work through LUAROCKS_OPTS in DEPS_CMAKE_FLAGS.
173-
( cd /tmp
174-
curl -SL https://luarocks.org/releases/luarocks-2.4.1.tar.gz | tar zxp
175-
cd luarocks-*
176-
./configure --lua-suffix=jit --with-lua-bin=/usr/bin/luajit \
177-
--with-lua-include=/usr/include/luajit-2.1
178-
make bootstrap
179-
for rock in lpeg mpack; do
180-
luarocks install $rock
181-
done
182-
)
183174
else
184175
bail "Unexpected FLAVOR: $FLAVOR (use vim or neovim)."
185176
fi

0 commit comments

Comments
 (0)