Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
50 additions
and
25 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
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,3 @@ | ||
.PHONY: latest | ||
latest: | ||
docker build -t memsql/quickstart:latest -f Dockerfile . |
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
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,3 @@ | ||
export OPS_VERSION=5.5.0 | ||
export MEMSQL_VERSION=321074d63e5f6f4bb6229c1fce597993e720daae | ||
|
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ "$1" = "memsqld" ]; then | ||
# Start up the cluster | ||
if [[ "$1" = "memsqld" ]]; then | ||
memsql-ops start | ||
memsql-ops memsql-start --all | ||
memsql-ops memsql-list | ||
|
||
# Check for a schema file at /schema.sql and load it | ||
if [[ -e /schema.sql ]]; then | ||
echo "Loading schema from /schema.sql" | ||
cat /schema.sql | ||
memsql < /schema.sql | ||
fi | ||
|
||
# Tail the logs to keep the container alive | ||
exec tail -F /memsql/master/tracelogs/memsql.log /memsql/leaf/tracelogs/memsql.log | ||
else | ||
exec "$@" | ||
fi | ||
|
||
exec "$@" | ||
|
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