Skip to content

Commit c7e9b7e

Browse files
committed
refactoring: updated examples/kv to latest cartridge
1 parent a5c46b7 commit c7e9b7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+648
-958
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515
- Bump operator-sdk version (and other dependencies)
1616
- Refactor project structure, all helm charts are collected in one place
1717
- Update crds api version from `apiextensions.k8s.io/v1beta1` to `apiextensions.k8s.io/v1`
18+
- Updated kv example to the most recent cartridge version
1819

1920
### Fixed
2021

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ReplicasetTemplate.
2020
* [Resource ownership](#resource-ownership)
2121
* [Documentation](#documentation)
2222
* [Deploying the Tarantool operator on minikube](#deploying-the-tarantool-operator-on-minikube)
23-
* [Example: key-value storage](#example-key-value-storage)
23+
* [Example: key-value storage](#example-application-key-value-storage)
2424
* [Application topology](#application-topology)
2525
* [Running the application](#running-the-application)
2626
* [Scaling the application](#scaling-the-application)

examples/kv/.cartridge.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# Here you can specify default parameters for local running, such as:
3+
4+
# cfg: path-to-cfg-file
5+
# log-dir: path-to-log-dir
6+
# run-dir: path-to-run-dir
7+
# data-dir: path-to-data-dir
8+
9+
stateboard: false # If no arguments are supplied, --stateboard flag is true

examples/kv/.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.rocks
2+
.swo
3+
.swp
4+
CMakeCache.txt
5+
CMakeFiles
6+
cmake_install.cmake
7+
*.dylib
8+
*.idea
9+
__pycache__
10+
*pyc
11+
.cache
12+
.pytest_cache
13+
.vagrant
14+
.DS_Store
15+
*.xlog
16+
*.snap
17+
*.rpm
18+
*.deb
19+
*.tar.gz
20+
node_modules
21+
/tmp/*
22+
!/tmp/.keep

examples/kv/.luacheckrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include_files = {'**/*.lua', '*.luacheckrc', '*.rockspec'}
2+
exclude_files = {'.rocks/', 'tmp/'}
3+
max_line_length = 120
4+
redefined = false

examples/kv/.luacov

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
statsfile = 'tmp/luacov.stats.out'
3+
reportfile = 'tmp/luacov.report.out'
4+
exclude = {
5+
'/test/',
6+
}

examples/kv/Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Simple Dockerfile
2+
# Used by "pack" command as a base for build image
3+
# when --use-docker option is specified
4+
#
5+
# Image based on centos:7 is expected to be used
6+
FROM centos:7
7+
8+
# Here you can install some packages required
9+
# for your application build
10+
#
11+
# RUN set -x \
12+
# && curl -sL https://rpm.nodesource.com/setup_10.x | bash - \
13+
# && yum -y install nodejs

examples/kv/Dockerfile.cartridge

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Simple Dockerfile
2+
# Used by "pack docker" command as a base for runtime image
3+
#
4+
# Image based on centos:7 is expected to be used
5+
FROM centos:7
6+
7+
# Here you can install some packages required
8+
# for your application in runtime
9+
#
10+
#
11+
# For example, if you need to install some python packages,
12+
# you can do it this way:
13+
#
14+
# COPY requirements.txt /tmp
15+
# RUN yum install -y python3-pip
16+
# RUN pip3 install -r /tmp/requirements.txt

examples/kv/Makefile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)