Skip to content

Commit 3a9a3dc

Browse files
authored
cartridge: bump version to 1.0.0 (#11)
1 parent c8d558b commit 3a9a3dc

File tree

4 files changed

+21
-29
lines changed

4 files changed

+21
-29
lines changed

examples/kv/Dockerfile

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
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
144
EXPOSE 3301
15-
165
# Application HTTP API
176
EXPOSE 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+
2318
COPY ./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"]

examples/kv/deployment.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ spec:
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:

examples/kv/docker-entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,4 @@ fi
1313

1414
mkdir -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-
2016
exec "$@"

examples/kv/key-value-store/key-value-scm-1.rockspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ source = {
88
dependencies = {
99
'tarantool',
1010
'lua >= 5.1',
11-
'cartridge',
11+
'checks == 3.0.1-1',
12+
'cartridge == 1.0.0-1',
1213
}
1314

1415
build = {

0 commit comments

Comments
 (0)