Ray Bell
514ee6372d
extra logger.info
2021-12-29 01:18:10 -05:00
Erik Sundell
e0aaa4f995
pre-commit: run black with string normalization
2021-11-03 23:55:34 +01:00
Erik Sundell
2ba942ba76
pre-commit: manual adjustments following black
2021-11-03 23:53:43 +01:00
Erik Sundell
771ae59636
pre-commit: run black without string normalization
2021-11-03 23:53:41 +01:00
Erik Sundell
c2c4d708f5
pyupgrade fixes
2021-10-31 11:26:40 +01:00
Erik Sundell
3596039bbd
ci: ensure to --yes adding apt-get repository
2021-10-20 11:31:37 +02:00
Erik Sundell
26c34524b2
bootstrap: DEBIAN_FRONTEND=noninteractive during apt-get install
2021-10-20 11:31:37 +02:00
Erik Sundell
ba25e09b82
Pin pip to 21.3.*
2021-10-19 14:42:36 +02:00
Erik Sundell
4042967437
Unpin pip to support 20.04
2021-10-19 14:42:36 +02:00
Erik Sundell
9179365a4f
docs: fix language regarding master
2021-10-19 11:33:58 +02:00
Erik Sundell
b1b867bd4e
bootstrap: tweak language in progress logs emitted
2021-10-18 19:38:56 +02:00
Erik Sundell
d36c53da1b
Require python 3.6+
2021-10-18 19:30:40 +02:00
Erik Sundell
ba84229c8f
Refactor bootstrap.py script for readability
2021-10-18 01:13:34 +02:00
Richard Brinkman
755752f048
Fix HTML of bootstrap
2020-10-19 11:56:56 +02:00
GeorgianaElena
1ce172ae3e
Added more comments
2020-08-17 19:04:25 +03:00
GeorgianaElena
cef898fd31
Rename flags and work with sys.argv copy
2020-08-17 16:54:16 +03:00
GeorgianaElena
43c38bc09d
Embed HTML file in bootstrap script
2020-08-17 15:36:02 +03:00
GeorgianaElena
d1bee23a7d
Pass the pid to the installer as a cmd arg
2020-08-11 16:01:44 +03:00
GeorgianaElena
fcb5257901
Put the temp page under a flag
2020-08-11 14:09:11 +03:00
GeorgianaElena
69a6f89518
Only serve explicit routes
2020-08-11 12:23:50 +03:00
GeorgianaElena
972b15b95a
Serve a temporary html page while tljh is building
2020-08-03 14:55:22 +03:00
GeorgianaElena
d00245e3bf
Upgrade pip
2020-04-23 13:14:32 +03:00
yuvipanda
8ec3fab3f3
Make installer.log non-readable by non-root users
...
Doesn't have any sensitive info right now but might
in the future.
Fixes #142
2019-05-29 11:27:53 -07:00
yuvipanda
f5ecce77a1
Add unit tests for run_subprocess
2019-05-29 11:27:53 -07:00
yuvipanda
7071332445
Provide much better error messages
...
- When processes fail, they actually print a failure message
on the user's terminal
- Regardless of success or failure, we print all output to
/opt/tljh/installer.log
This should make debugging people's issues *much* easier, since
we can actually see the output of failing commands rather than
having to guess.
2019-05-29 11:27:53 -07:00
Yuvi Panda
5a3ca1fd8c
Merge pull request #242 from owah/master
...
Adds the universe repository to the used sources
2019-05-28 13:15:42 -07:00
yuvipanda
1cb6717fea
Say 'running inside a docker container', not 'plain docker'
...
'Plain docker' makes no sense
2019-05-20 09:52:50 -07:00
yuvipanda
9f2a04ac49
Add more validation to bootstrap.py
...
- Check for Python Version
- Check if systemd is present
- Provide more useful error message when running inside
an unprepared docker container
Ref #16
2019-05-19 22:46:16 -07:00
yuvipanda
a8b28744a6
bootstrap: Explicitly mark python3-pip as installed
...
We need it to work, so we mark it as an explicit
dependency.
2019-05-19 20:39:27 -07:00
yuvipanda
948548b033
bootstrap: Install software-properties-common
...
Gets us add-apt-repository, which helps ensure the
universe repository is enabled.
2019-05-19 20:38:30 -07:00
owah
395cb93290
Adds the universe repository to the used sources
...
This change is required, to support Ubuntu Server 18.04.01, which by default doesn't ship with universe. Universe contains python3-venv which is needed for tljh
2019-05-19 20:38:30 -07:00
yuvipanda
d7672bf907
Install git explicitly during bootstrap
...
Some servers don't have git on by default
2019-01-09 15:56:28 -08:00
yuvipanda
599c9d37dd
Get '.strip()' right
2018-11-13 14:46:16 -08:00
yuvipanda
ca38dcd413
Decode output from subprocess before performing string operations
2018-11-13 14:40:24 -08:00
yuvipanda
43d9f02203
Fix putting literal {}s in python format string
2018-11-13 14:28:59 -08:00
yuvipanda
e9462bb7ae
Do not use deprecated platform module
...
Since bootstrap.py needs to restrict itself to
stdlib python, we read from /etc/os-release than trying
to install the distro package.
2018-11-13 12:47:05 -08:00
yuvipanda
5374f5eaf5
Provide better error message when running on unsupported distro
2018-11-13 12:35:41 -08: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
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
eeffc6e197
Merge pull request #64 from jupyterhub/hub-venv
...
Use venv for base hub environment
2018-07-23 14:41:15 -07:00
yuvipanda
5064979a57
Replace pointers to yuvipanda/ on github with jupyterhub/
2018-07-20 16:17:33 -07:00
yuvipanda
e609a840c7
Install gpg2 if required when adding apt keys
...
Not installed by default in many docker containers
2018-07-19 18:38:58 -07:00
yuvipanda
fc0ecb6699
Use venv for base hub environment
...
- TLJH should support raspberry pi, which runs ARM. conda does
not support ARM.
- Get nodejs from nodesource instead of conda or default repositories.
Default repositories get out of date pretty quickly.
- Install CHP from npm
2018-07-19 18:01:30 -07:00
Yuvi Panda
9196d75200
Merge pull request #58 from minrk/fix-conda-check
...
bootstrap: allow conda to be upgraded
2018-07-19 10:33:43 -07:00
Min RK
bcf31a979c
fix permissions on initial install
...
running installer as root allows some file ownership from the archive to be set as a user other than root
2018-07-19 01:30:04 -07:00
Min RK
ab5dd0e0d8
bootstrap: allow conda to be upgraded
...
use >= instead of == to check installed version
2018-07-18 23:07:06 -07:00
Min RK
03d0884bec
remove —no-cache-dir arg
...
caches are good! disabling cache should ~only be used when building docker images
2018-07-13 15:11:39 -05:00
yuvipanda
56e573bd86
Make TLJH_BOOTSTRAP_DEV take effect for reals
2018-07-12 16:55:51 -07:00
yuvipanda
154cc00a31
Add --admin params to bootstrap / installer to set up admin accts
...
This removes a big step requiring file changes from the quickstart
path. You can specify the admin username on the commandline.
2018-07-03 16:18:32 -07:00
yuvipanda
3ee26118ae
Fix incomplete refactor of miniconda version specification
2018-07-02 16:03:16 -07:00