Skip to content

Commit b135db4

Browse files
committed
Fix packages installation on alpine 3.9
Found that apk installation fails using '--virtual' option. Also found that there were two different degradations in Alpine 3.9 [1], one of which really caused the issue [2]. Degradations where fixed in Alpine 3.11 and backported in Alpine 3.10. To fix the issue on the current Alpine 3.9 was used the workaround - virtual package was named with additional suffix to have uniq naming. Closes #120 Closes #169 Closes #189 Co-authored-by: Alexander Turenko <alexander.turenko@tarantool.org> [1] - #195 (comment) [2] - https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/9651
1 parent 16a4cf1 commit b135db4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dockerfiles/alpine_3.9

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ COPY files/gperftools_alpine.diff /
3535

3636
ARG ENABLE_BUNDLED_LIBYAML
3737
RUN set -x \
38-
&& apk add --no-cache --virtual .run-deps \
38+
&& apk add --no-cache --virtual .run-deps.1 \
3939
libstdc++ \
4040
readline \
4141
openssl \
@@ -51,7 +51,7 @@ RUN set -x \
5151
libunwind \
5252
icu \
5353
ca-certificates \
54-
&& apk add --no-cache --virtual .build-deps \
54+
&& apk add --no-cache --virtual .build-deps.1 \
5555
gcc \
5656
g++ \
5757
cmake \
@@ -134,7 +134,7 @@ RUN set -x \
134134
&& rm -rf /usr/src/gperftools \
135135
&& rm -rf /usr/src/go \
136136
&& : "---------- remove build deps ----------" \
137-
&& apk del .build-deps
137+
&& apk del .build-deps.1
138138

139139
RUN mkdir -p /usr/local/etc/luarocks \
140140
&& mkdir -p /usr/local/etc/tarantool/rocks
@@ -144,13 +144,13 @@ COPY files/luarocks-config.lua /usr/local/etc/tarantool/rocks/config-5.1.lua
144144

145145
ARG ROCKS_INSTALLER
146146
RUN set -x \
147-
&& apk add --no-cache --virtual .run-deps \
147+
&& apk add --no-cache --virtual .run-deps.2 \
148148
mariadb-connector-c-dev \
149149
libpq \
150150
cyrus-sasl \
151151
mosquitto-libs \
152152
libev \
153-
&& apk add --no-cache --virtual .build-deps \
153+
&& apk add --no-cache --virtual .build-deps.2 \
154154
git \
155155
cmake \
156156
make \
@@ -222,7 +222,7 @@ RUN set -x \
222222
&& : "gperftools" \
223223
&& ${ROCKS_INSTALLER} install gperftools $LUAROCK_TARANTOOL_GPERFTOOLS_VERSION \
224224
&& : "---------- remove build deps ----------" \
225-
&& apk del .build-deps
225+
&& apk del .build-deps.2
226226

227227
# gh-170: needed for luarocks
228228
RUN apk update \

0 commit comments

Comments
 (0)