File tree Expand file tree Collapse file tree 4 files changed +21
-29
lines changed Expand file tree Collapse file tree 4 files changed +21
-29
lines changed Original file line number Diff line number Diff line change 1- FROM centos:centos7
2-
3- WORKDIR /home/tarantool
4- COPY yum-tnt.sh .
5- RUN ./yum-tnt.sh
6- RUN yum install -y epel-release && \
7- curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - && \
8- yum install -y git make nodejs cmake gcc tarantool tarantool-devel
9-
10- RUN tarantoolctl rocks install https://raw.githubusercontent.com/rosik/cartridge/master/cartridge-scm-1.rockspec
11- COPY key-value-store /home/tarantool/key-value-store
1+ FROM tarantool/tarantool:1.x-centos7
122
133# Tarantool binary protocol port
144EXPOSE 3301
15-
165# Application HTTP API
176EXPOSE 8081
187
19- ENV TARANTOOL_WORK_DIR=/tarantool/data \
20- TARANTOOL_RUN_DIR=/tarantool /run \
8+ ENV TARANTOOL_WORK_DIR=/var/lib/tarantool \
9+ TARANTOOL_RUN_DIR=/var /run \
2110 TARANTOOL_MEMTX_MEMORY=134217728
2211
12+ WORKDIR /opt/tarantool
13+ RUN yum install -y gcc make cmake git unzip
14+
15+ COPY key-value-store ./
16+ RUN tarantoolctl rocks make key-value-scm-1.rockspec
17+
2318COPY ./docker-entrypoint.sh .
2419
25- ENTRYPOINT ["/home /tarantool/docker-entrypoint.sh" ]
20+ ENTRYPOINT ["/opt /tarantool/docker-entrypoint.sh" ]
2621
27- CMD ["tarantool" , "./key-value-store /init.lua" ]
22+ CMD ["tarantool" , "/opt/tarantool /init.lua" ]
Original file line number Diff line number Diff line change 6969 value : " 1"
7070 containers :
7171 - name : pim-storage
72- image : tarantool/tarantool-operator-examples-kv:0.0.1
72+ image : tarantool/tarantool-operator-examples-kv:0.0.2
7373 volumeMounts :
74- - mountPath : " /tarantool/data "
74+ - mountPath : " /var/lib/tarantool "
7575 name : www
7676 ports :
7777 - containerPort : 3301
@@ -82,11 +82,11 @@ spec:
8282 fieldRef :
8383 fieldPath : metadata.name
8484 - name : TARANTOOL_WORK_DIR
85- value : " /tarantool/data "
85+ value : " /var/lib/tarantool "
8686 - name : TARANTOOL_MEMTX_MEMORY
8787 value : " 33554432"
8888 - name : TARANTOOL_LOG
89- value : " /tarantool/data/storage.log "
89+ value : " /dev/stdout "
9090 - name : TARANTOOL_ADVERTISE_HOST
9191 valueFrom :
9292 fieldRef :
@@ -128,9 +128,9 @@ spec:
128128 value : " 1"
129129 containers :
130130 - name : pim-router
131- image : tarantool/tarantool-operator-examples-kv:0.0.1
131+ image : tarantool/tarantool-operator-examples-kv:0.0.2
132132 volumeMounts :
133- - mountPath : " /tarantool/data "
133+ - mountPath : " /var/lib/tarantool "
134134 name : www
135135 ports :
136136 - containerPort : 3301
@@ -141,11 +141,11 @@ spec:
141141 fieldRef :
142142 fieldPath : metadata.name
143143 - name : TARANTOOL_WORK_DIR
144- value : " /tarantool/data "
144+ value : " /var/lib/tarantool "
145145 - name : TARANTOOL_MEMTX_MEMORY
146146 value : " 33554432"
147147 - name : TARANTOOL_LOG
148- value : " /tarantool/data/storage.log "
148+ value : " /dev/stdout "
149149 - name : TARANTOOL_ADVERTISE_HOST
150150 valueFrom :
151151 fieldRef :
Original file line number Diff line number Diff line change 1313
1414mkdir -p $TARANTOOL_WORK_DIR $TARANTOOL_LOG_DIR $TARANTOOL_RUN_DIR
1515
16- export PATH=/home/tarantool/tarantool-enterprise:$PATH
17-
18- cd /home/tarantool
19-
2016exec " $@ "
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ source = {
88dependencies = {
99 ' tarantool' ,
1010 ' lua >= 5.1' ,
11- ' cartridge' ,
11+ ' checks == 3.0.1-1' ,
12+ ' cartridge == 1.0.0-1' ,
1213}
1314
1415build = {
You can’t perform that action at this time.
0 commit comments