Commit Graph

581 Commits

Author SHA1 Message Date
yuvipanda
edfbbd8ae9 Use jupyterhub_config.d rather than config.d for overrides
Makes it clearer that these are jupyterhub_config.py snippets
rather than config.yaml snippets
2018-08-02 10:59:26 -07:00
yuvipanda
3124cf1f80 Load arbitrary .py config files from a conf.d dir
We want to keep the amount of custom code we support extremely
small. This provides a nice escape hatch for everything else.
2018-08-02 10:59:26 -07:00
Yuvi Panda
02695e4687 Merge pull request #94 from yuvipanda/tljh-bin
Symlink tljh-config to /usr/local/bin
2018-08-02 10:50:23 -07:00
yuvipanda
6e29dd5db9 Error out if there's a tljh-config that isn't ours in PATH 2018-08-01 18:53:50 -07:00
yuvipanda
381deaa399 Document all the actions the installer performs 2018-08-01 18:10:50 -07:00
Yuvi Panda
fb680dc85d Merge pull request #95 from minrk/fix-coverage
fix coverage uploads
2018-08-01 10:00:35 -07:00
Min RK
7b1dcc8b99 move tljh_dir fixture to conftest
so it can be used everywhere
2018-08-01 17:05:43 +02:00
Min RK
9e76345276 activate test env
needed for codecov to find necessary commands

codecov appears to need git as well

environment variables must be set at runtime using a weird [$BASH_ENV trick](https://circleci.com/docs/2.0/env-vars/#using-bash_env-to-set-environment-variables) since circle doesn't support simple `PATH: bin:$PATH` in the environment variable spec.
2018-08-01 16:19:36 +02:00
yuvipanda
912d5a5e17 Install sudo in the integration-test container 2018-07-31 13:37:31 -07:00
yuvipanda
48441e2d22 Use sudo -E to invoke tljh-config in integration tests
This is how users invoke it, so we should use this to
validate that this works.
2018-07-31 13:32:46 -07:00
yuvipanda
6394652025 Fix ensure_symlinks to use method that actually exists 2018-07-31 13:23:43 -07:00
yuvipanda
816e9a01a1 Test symlinking tljh-config 2018-07-31 13:19:45 -07:00
yuvipanda
a6373200ec Symlink tljh-config to /usr/local/bin
This lets `sudo -E` work when calling tljh-config. It currently
does not, since we do not add the hub venv to PATH
2018-07-31 13:16:57 -07:00
Yuvi Panda
573956eb38 Merge pull request #93 from yuvipanda/code-review
Document code-review practices
2018-07-31 13:06:02 -07:00
yuvipanda
c6f2ecfd7f Soften tone for code review guidelines 2018-07-31 12:59:24 -07:00
yuvipanda
b5e6a27fa8 Add a pull request template 2018-07-31 12:55:01 -07:00
yuvipanda
a012b6ebda Add documentation on code review guidelines 2018-07-31 12:36:16 -07:00
Yuvi Panda
505c76499c Merge pull request #89 from minrk/fix-config
tests and fixes in tljh-config
2018-07-31 10:06:36 -07:00
Chris Holdgraf
ccac483c50 small updates to the docs 2018-07-31 09:38:25 -07:00
Min RK
a4427068cc tests and fixes in tljh-config
- add remove-item to cli
- fix setting non-string values (int, bool, float)
- show help when no action is given
- test coverage for cli
2018-07-31 13:25:30 +02:00
Min RK
d0f3b581e0 Merge pull request #88 from yuvipanda/reload-traefik
Fix traefik config reload
2018-07-31 12:39:55 +02:00
Min RK
c6654aea08 avoid circular imports 2018-07-31 12:05:47 +02:00
Min RK
2760e1adcd consolidate paths in config.py 2018-07-31 12:04:40 +02:00
yuvipanda
75ffa91c85 Fix traefik config reload
Simply reloading traefik is not enough - we need to actually
write the new traefik.toml file.
2018-07-30 23:59:33 -07:00
Yuvi Panda
41a12a975e Merge pull request #86 from yuvipanda/fix-readme
Fix notebook user interface switching docs
2018-07-30 17:43:46 -07:00
yuvipanda
6c0ae9a1ef Use tljh-config for notebook interface switching 2018-07-30 17:26:04 -07:00
yuvipanda
d674b546ea Fix notebook user interface documentation casing
Not using current casing
2018-07-30 17:23:37 -07:00
Yuvi Panda
ef697860f9 Merge pull request #85 from jupyterhub/fix-readme
Remove README note about HTTPS not being supported
2018-07-30 11:32:09 -07:00
yuvipanda
f733e74777 Remove README note about HTTPS not being supported
It is now!
2018-07-30 11:27:40 -07:00
Yuvi Panda
c980987181 Merge pull request #67 from minrk/traefik
Add HTTPS support with traefik
2018-07-30 11:19:28 -07:00
Yuvi Panda
e76bb5ffb3 Merge pull request #79 from jupyterhub/github-links
Customize theme to have better links in sidebar
2018-07-30 10:54:15 -07:00
yuvipanda
72744d390c Better placement of 'file an issue' link
Remove navigation.html from sidebar, since I could not figure
out how to control it. The autogenerated links are not very
useful
2018-07-30 10:21:07 -07:00
Min RK
5a76d036f1 docs for setting up HTTPS 2018-07-30 16:08:47 +02:00
Min RK
ad3b08abd8 traefik: only log errors and redact headers 2018-07-30 15:45:37 +02:00
Min RK
8e75a44502 grant traefik write access to state/acme.json
and ensure the file exists and is private before launching
2018-07-30 15:26:09 +02:00
Min RK
7f07bfbec4 reload traefik on tljh-config reload proxy 2018-07-30 15:04:37 +02:00
Min RK
581b4969f5 traefik can give 502 while starting up 2018-07-30 14:33:02 +02:00
Min RK
c2d6cb38cd include traefik template in MANIFEST
so it gets installed
2018-07-30 14:26:17 +02:00
Min RK
fcdce11cae ensure state dir exists before putting files in it 2018-07-30 14:04:36 +02:00
Min RK
000ac05e14 Add traefik in front of CHP
introduces configuration for manual tls and letsencrypt
2018-07-30 14:04:35 +02:00
Min RK
2cb7d10ac7 add load_config top-level function to configurer
for easy loading of the full config
2018-07-30 14:01:43 +02:00
yuvipanda
ecfe733309 Set-up sidebar to show nav / about sections 2018-07-29 23:36:56 -07:00
Yuvi Panda
e2d46a2562 Merge pull request #82 from jupyterhub/logging
Log bootstrap / installer messages to file as well
2018-07-29 13:00:59 -07:00
yuvipanda
94354b8e64 Add documentation to logging on where to find installer logs
Also send bootstrap & installer logs to same file.
2018-07-29 12:53:04 -07:00
yuvipanda
44df8906cb Create /opt/tljh if it does not exist in installer
This helps when you are just running the installer,
without the bootstrap
2018-07-29 02:19:30 -07:00
yuvipanda
414d3932ac Log bootstrap / installer messages to file as well
This enables debugging when a server does not come up as
expected.

Fixes #22
2018-07-29 02:17:12 -07:00
Yuvi Panda
25475916c5 Merge pull request #80 from jupyterhub/auth-docs
Add docs on using arbitrary authenticators
2018-07-28 14:36:36 -07:00
yuvipanda
1740df326d Add docs on using arbitrary authenticators
Fixes #78
2018-07-28 14:32:31 -07:00
yuvipanda
bf73783ef6 Customize theme to have better links in sidebar
Fixes #61
2018-07-28 13:45:06 -07:00
Yuvi Panda
1ba7a3a565 Merge pull request #77 from jupyterhub/config
Add tljh-config command
2018-07-28 13:12:46 -07:00