-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from KxSystems/licensing_dev
Licensing dev
- Loading branch information
Showing
22 changed files
with
644 additions
and
203 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,32 @@ | ||
usage=\ | ||
"Usage:\n\tdoit.sh [repodir] | ||
\tbuilds conda package, set NOTEST in env to skip tests during conda build (faster) | ||
" | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
printf "$usage" >&2 | ||
exit 1 | ||
elif [ ! -d $1 ] | ||
then | ||
printf "$1 doesn't exist\n\n$usage" >&2 | ||
exit 1 | ||
fi | ||
|
||
: "${JUPYTERQ_VERSION:=local_dev}" | ||
[ -z "$NOTEST" ] && export QLIC="${QLIC:=$QHOME}" | ||
|
||
JUPYTERQ_REQS=$(paste -sd "|" $1/requirements.txt) | ||
|
||
export JUPYTERQ_REQS | ||
export JUPYTERQ_VERSION | ||
export QLIC | ||
|
||
set -x | ||
if [ ! -z "$QLIC" ] | ||
then | ||
conda build -c kx --no-long-test-prefix $1/conda-recipe | ||
else | ||
conda build -c kx --no-test conda-recipe | ||
fi |
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
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,5 +1,5 @@ | ||
#!/bin/bash | ||
if [ -e ${QLIC}/kc.lic ] | ||
if [ -e ${QLIC}/kc.lic ] || [ -e ${QLIC}/k4.lic ] | ||
then | ||
tests/test.sh | ||
else | ||
|
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
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,19 @@ | ||
#!/bin/sh | ||
/usr/sbin/xinetd -d & | ||
|
||
HOME=/home/kx | ||
export HOME | ||
|
||
target=$NBROOT | ||
if find "$target" -mindepth 1 -print -quit 2>/dev/null | grep -q .; then | ||
echo "Not empty, do nothing" | ||
else | ||
echo "'$NBROOT' is empty, copying default file" && cp -R /opt/kx/jupyterq/examples $NBROOT && cp /opt/kx/jupyterq/kdb+Notebooks.ipynb $NBROOT | ||
fi | ||
|
||
chmod -R a+w $NBROOT | ||
chmod -R a+w $NBDATA | ||
|
||
printf '\npoint your browser at http://localhost:%s/notebooks/kdb%%2BNotebooks.ipynb\n\n' "$PORT" | ||
|
||
exec chpst -u kx /bin/sh -l -c "cd /opt/kx/jupyterq && QLIC=/home/kx exec jupyter notebook --notebook-dir='$NBROOT' --ip='0.0.0.0' --port='$PORT' --no-browser" |
Oops, something went wrong.