Files
catalyst/etc/docker_cmd.sh
Conner Fromknecht fce97176d6 Changed zipline -> catalyst import paths
* Updated cython build scripts
 * Updated setup.py to to install catalyst package
 * Updated momentum example to use catalyst package
 * catalyst executable now supports loading pipelines from multiple bundles
2017-06-19 14:43:10 -07:00

20 lines
667 B
Bash
Executable File

#!/bin/bash
#
# generate configuration, cert, and password if this is the first run
#
if [ ! -f /var/tmp/catalyst_init ] ; then
jupyter notebook --generate-config
if [ ! -f ${SSL_CERT_PEM} ] ; then
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=127.0.0.1" \
-keyout ${SSL_CERT_KEY} -out ${SSL_CERT_PEM}
fi
echo "c.NotebookApp.password = ${PW_HASH}" >> ${CONFIG_PATH}
touch /var/tmp/catalyst_init
fi
jupyter notebook -y --no-browser --notebook-dir=${PROJECT_DIR} \
--certfile=${SSL_CERT_PEM} --keyfile=${SSL_CERT_KEY} --ip='*' \
--config=${CONFIG_PATH}