-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/column-store' into column-store
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |