Commit Graph

76 Commits

Author SHA1 Message Date
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
yuvipanda
f3cfd36d52 Cleanup bootstrap + add docstrings 2018-07-02 15:57:38 -07:00
yuvipanda
715860707b Rewrite bootstrapper in Python
- This was going to get too complex for bash. Only way to
  kill those scripts is before they get too complex.
- Better progress messages from bootstrapper.
- Differentiate between bootstrapper & installer
- Cleanup documentation a little bit
2018-07-02 15:12:26 -07:00