Skip to content

Commit

Permalink
Add ldecnumber installation
Browse files Browse the repository at this point in the history
According to PR-109 [1] it was decided to add ldecnumber installation.
Depending that 2.x images are lack of decimals support for now checked
Tarantool releases and tags that need to be updated with it. Found that
Tarantool since 2.2 release branches and 2.2.1 release tags are lack of
it, than ldecnumber number installation was added to the earlier tags
and release branches.

[1] - #109

Co-authored-by: parihaaraka <lukyanov@kickico.com>
  • Loading branch information
avtikhon and parihaaraka committed Oct 19, 2020
1 parent fe1eb1f commit 905e110
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ before_script:
VER: '1.10.0'
PORT: 5101
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.5 1.10.1':
<<: *build_definition
Expand All @@ -52,6 +53,7 @@ before_script:
VER: '1.10.1'
PORT: 5101
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.5 1.10.2':
<<: *build_definition
Expand All @@ -62,6 +64,7 @@ before_script:
VER: '1.10.2'
PORT: 5102
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.5 1.10.3':
<<: *build_definition
Expand All @@ -72,6 +75,7 @@ before_script:
VER: '1.10.3'
PORT: 5103
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 1.10.4':
<<: *build_definition
Expand All @@ -83,6 +87,7 @@ before_script:
PORT: 5104
ROCKS_INSTALLER: 'luarocks'
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 1.10.5':
<<: *build_definition
Expand All @@ -94,6 +99,7 @@ before_script:
PORT: 5105
ROCKS_INSTALLER: 'luarocks'
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 1.10.6':
<<: *build_definition
Expand All @@ -105,6 +111,7 @@ before_script:
PORT: 5106
ROCKS_INSTALLER: 'luarocks'
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 1.10.7':
<<: *build_definition
Expand All @@ -115,6 +122,7 @@ before_script:
VER: '1.10.7'
PORT: 5107
ROCKS_INSTALLER: 'luarocks'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 1.x':
<<: *build_definition
Expand All @@ -125,6 +133,7 @@ before_script:
VER: '1.x'
PORT: 5100
ROCKS_INSTALLER: 'luarocks'
INSTALL_LDECNUMBER: 'ON'

# Tarantool branch 2.1

Expand All @@ -137,6 +146,7 @@ before_script:
VER: '2.1.0'
PORT: 5211
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.5 2.1.1':
<<: *build_definition
Expand All @@ -147,6 +157,7 @@ before_script:
VER: '2.1.1'
PORT: 5211
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.5 2.1.2':
<<: *build_definition
Expand All @@ -157,6 +168,7 @@ before_script:
VER: '2.1.2'
PORT: 5212
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 2.1.3':
<<: *build_definition
Expand All @@ -168,6 +180,7 @@ before_script:
PORT: 5213
ROCKS_INSTALLER: 'luarocks'
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.9 2.1':
<<: *build_definition
Expand All @@ -179,6 +192,7 @@ before_script:
PORT: 5210
ROCKS_INSTALLER: 'luarocks'
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

# Tarantool branch 2.2

Expand All @@ -191,6 +205,7 @@ before_script:
VER: '2.2.0'
PORT: 5220
ENABLE_BUNDLED_LIBYAML: 'OFF'
INSTALL_LDECNUMBER: 'ON'

'alpine 3.5 2.2.1':
<<: *build_definition
Expand Down
1 change: 1 addition & 0 deletions .gitlab.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build:
docker build --no-cache --network=host \
--build-arg ROCKS_INSTALLER=${ROCKS_INSTALLER} \
--build-arg ENABLE_BUNDLED_LIBYAML=${ENABLE_BUNDLED_LIBYAML} \
--build-arg INSTALL_LDECNUMBER=${INSTALL_LDECNUMBER} \
--build-arg TNT_VER=${TNT_VER} \
--build-arg BASE_IMAGE="${OS}:${DIST}" \
-t ${IMAGE}:${TAG} -f dockerfiles/${OS}_${DIST}$${DOCKERFILE_SUFFIX} .
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ is only one Tarantool instance running in the container.
- [mqtt](https://github.com/tarantool/mqtt): Client for MQTT message brokers
- [gis](https://github.com/tarantool/gis): store and query geospatial data
- [gperftools](https://github.com/tarantool/gperftools): collect CPU profile to find bottlenecks in your code
- [ldecnumber](https://github.com/tarantool/ldecnumber): decimal arithmetic package

If the module you need is not listed here, there is a good chance we may add it. Open an issue [on our GitHub](https://github.com/tarantool/docker).

Expand Down
10 changes: 9 additions & 1 deletion dockerfiles/alpine_3.5
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ENV TARANTOOL_VERSION=${TNT_VER} \
LUAROCK_TARANTOOL_MQTT_VERSION=1.2.1 \
LUAROCK_TARANTOOL_GIS_VERSION=1.0.0 \
LUAROCK_TARANTOOL_PROMETHEUS_VERSION=1.0.4 \
LUAROCK_TARANTOOL_GPERFTOOLS_VERSION=1.0.1
LUAROCK_TARANTOOL_GPERFTOOLS_VERSION=1.0.1 \
LDECNUMBER_ROCKSPEC=https://raw.githubusercontent.com/tarantool/ldecnumber/master/ldecnumber-scm-1.rockspec

COPY files/gperftools_alpine.diff /

Expand Down Expand Up @@ -233,6 +234,13 @@ RUN set -x \
&& : "---------- remove build deps ----------" \
&& apk del .build-deps

ARG INSTALL_LDECNUMBER
RUN if [ "${INSTALL_LDECNUMBER}" == "ON" ]; then \
cd / && \
&& : "ldecnumber" \
&& ${ROCKS_INSTALLER} install $LDECNUMBER_ROCKSPEC \
fi

# gh-170: needed for luarocks
RUN apk update \
&& apk add wget git
Expand Down
10 changes: 9 additions & 1 deletion dockerfiles/alpine_3.9
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ENV TARANTOOL_VERSION=${TNT_VER} \
LUAROCK_TARANTOOL_MQTT_VERSION=1.2.1 \
LUAROCK_TARANTOOL_GIS_VERSION=1.0.0 \
LUAROCK_TARANTOOL_PROMETHEUS_VERSION=1.0.4 \
LUAROCK_TARANTOOL_GPERFTOOLS_VERSION=1.0.1
LUAROCK_TARANTOOL_GPERFTOOLS_VERSION=1.0.1 \
LDECNUMBER_ROCKSPEC=https://raw.githubusercontent.com/tarantool/ldecnumber/master/ldecnumber-scm-1.rockspec

COPY files/gperftools_alpine.diff /

Expand Down Expand Up @@ -224,6 +225,13 @@ RUN set -x \
&& : "---------- remove build deps ----------" \
&& apk del .build-deps

ARG INSTALL_LDECNUMBER
RUN if [ "${INSTALL_LDECNUMBER}" == "ON" ]; then \
cd / && \
&& : "ldecnumber" \
&& ${ROCKS_INSTALLER} install $LDECNUMBER_ROCKSPEC \
fi

# gh-170: needed for luarocks
RUN apk update \
&& apk add wget git
Expand Down
9 changes: 8 additions & 1 deletion dockerfiles/centos_7
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ENV TARANTOOL_VERSION=${TNT_VER} \
LUAROCK_TARANTOOL_MYSQL_VERSION=2.0.1 \
LUAROCK_TARANTOOL_GIS_VERSION=1.0.0 \
LUAROCK_TARANTOOL_PROMETHEUS_VERSION=1.0.4 \
LUAROCK_TARANTOOL_GPERFTOOLS_VERSION=1.0.1
LUAROCK_TARANTOOL_GPERFTOOLS_VERSION=1.0.1 \
LDECNUMBER_ROCKSPEC=https://raw.githubusercontent.com/tarantool/ldecnumber/master/ldecnumber-scm-1.rockspec

RUN yum -y install epel-release && \
yum -y update && \
Expand Down Expand Up @@ -216,6 +217,12 @@ RUN set -x \
&& rpm -qa | grep devel | xargs yum -y remove \
&& rm -rf /var/cache/yum

ARG INSTALL_LDECNUMBER
RUN if [ "${INSTALL_LDECNUMBER}" == "ON" ]; then \
cd / && \
&& : "ldecnumber" \
&& ${ROCKS_INSTALLER} install $LDECNUMBER_ROCKSPEC \
fi

RUN set -x \
&& : "---------- gosu ----------" \
Expand Down

0 comments on commit 905e110

Please sign in to comment.