Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/column-store' into column-store
Browse files Browse the repository at this point in the history
  • Loading branch information
MdSahil-oss committed Sep 18, 2023
2 parents 70d8c97 + 08f1f27 commit 7b7d460
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile.cs.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# %%MARIADB_VERSION%% will be set by update.sh according to generating mariadb version image.
FROM mariadb:%%MARIADB_VERSION%%

RUN apt-get update && \
apt-get install -y mariadb-plugin-columnstore=$MARIADB_VERSION ; \
rm -rf /var/lib/apt/lists/*

COPY docker-entrypoint-cs.sh /usr/local/bin/

ENTRYPOINT ["docker-entrypoint-cs.sh"]
32 changes: 32 additions & 0 deletions docker-entrypoint-cs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
set -eo pipefail

# logging functions
mysql_log() {
local type="$1"; shift
printf '%s [%s] [Entrypoint]: %s\n' "$(date --rfc-3339=seconds)" "$type" "$*"
}
mysql_note() {
mysql_log Note "$@"
}
mysql_warn() {
mysql_log Warn "$@" >&2
}
mysql_error() {
mysql_log ERROR "$@" >&2
exit 1
}

_main() {
if [ "$1" = 'mariadbd' ]; then
# simply start maridb with column-store
exec docker-entrypoint.sh "$@"
elif [ "$1" = 'StorageManager' ]; then
# Run StorageManage of column-store
elif [ "$1" = 'brm' ]; then
# Run brm
fi
}

# Runs _main() function.
_main "$@"

0 comments on commit 7b7d460

Please sign in to comment.