update some file names

default config file is now `jupyterhub_config.py`,
to be consistent with everything else

add config files, runtime files to .gitignore
This commit is contained in:
Min RK
2014-10-31 14:40:19 -07:00
parent b1f6a286f9
commit e6335482c5
6 changed files with 10 additions and 5 deletions

5
.gitignore vendored
View File

@@ -4,6 +4,11 @@ node_modules
.DS_Store .DS_Store
build build
dist dist
# ignore config file at the top-level of the repo
# but not sub-dirs
/jupyterhub_config.py
jupyterhub_cookie_secret
jupyterhub.sqlite
share/jupyter/static/components share/jupyter/static/components
share/jupyter/static/css/style.min.css share/jupyter/static/css/style.min.css
share/jupyter/static/css/style.min.css.map share/jupyter/static/css/style.min.css.map

View File

@@ -30,5 +30,5 @@ WORKDIR /srv/jupyterhub/
EXPOSE 8000 EXPOSE 8000
ONBUILD ADD jupyter_hub_config.py /srv/jupyterhub/jupyter_hub_config.py ONBUILD ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyter_hub_config.py"] CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyterhub_config.py"]

View File

@@ -93,7 +93,7 @@ class JupyterHubApp(Application):
generate default config file: generate default config file:
jupyterhub --generate-config -f myconfig.py jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub.py
spawn the server on 10.0.1.2:443 with https: spawn the server on 10.0.1.2:443 with https:
@@ -110,7 +110,7 @@ class JupyterHubApp(Application):
PAMAuthenticator, PAMAuthenticator,
]) ])
config_file = Unicode('jupyter_hub_config.py', config=True, config_file = Unicode('jupyterhub_config.py', config=True,
help="The config file to load", help="The config file to load",
) )
generate_config = Bool(False, config=True, generate_config = Bool(False, config=True,

View File

@@ -11,7 +11,7 @@ def test_help_all():
assert '--JupyterHubApp.ip' in out assert '--JupyterHubApp.ip' in out
def test_generate_config(): def test_generate_config():
with NamedTemporaryFile(prefix='jupyter_hub_config', suffix='.py') as tf: with NamedTemporaryFile(prefix='jupyterhub_config', suffix='.py') as tf:
cfg_file = tf.name cfg_file = tf.name
out = check_output([sys.executable, '-m', 'jupyterhub', out = check_output([sys.executable, '-m', 'jupyterhub',