yuvipanda
70d7c68134
Use cwd switching to do git operations
...
Setting just --git-dir is not enough, you also need to set
--work-dir. Just setting cwd is better
2017-05-22 15:11:48 -07:00
yuvipanda
1d24fdb7c3
Make sure that the cleanup is actually conditional
2017-05-22 14:53:44 -07:00
yuvipanda
f571371b37
Usability improvements for manual usage
...
- Name no longer needs to be specified, isn't really used anywhere
- Cleans up checkout by default
2017-05-22 14:41:52 -07:00
Yuvi Panda
b59c8f5886
Merge pull request #2 from minrk/conda
...
add conda detector
2017-05-22 11:53:29 -07:00
Min RK
6917839d30
comments for pull cases
2017-05-22 11:52:53 -07:00
Yuvi Panda
e8b7d5eccc
Merge pull request #1 from minrk/conda
...
update conda builder
2017-05-22 11:47:49 -07:00
Min RK
0e3da8f2f0
catch ImageNotFound on initial pull
2017-05-22 10:35:13 -07:00
Min RK
28d6573fcb
launch docker with kwargs_from_env
...
respects DOCKER_HOST, etc.
2017-05-22 10:29:48 -07:00
Min RK
b5194c9165
add conda detector
...
and S2I buildpack base for common python/conda
2017-05-22 10:29:09 -07:00
Min RK
51d96fe441
cleanup after installing in assemble step
2017-05-22 09:54:17 -07:00
Min RK
ec02d793f4
update conda builder
...
- update miniconda to 4.3
- pin more packages
- install conda and required packages in one layer
- install in conda root env
- avoid updating dependencies automatically when pulling in new packages
2017-05-22 09:54:02 -07:00
yuvipanda
cf6674cce8
Make s2i builder work on non-master refs
2017-05-21 20:39:36 -07:00
yuvipanda
e81bfe8c89
Actually check out the ref that is passed to builder
...
We weren't actually doing this earlier. boo
2017-05-21 20:32:02 -07:00
yuvipanda
f717ed4e04
Include the .git directory when copying files
...
Useful to push / pull later on when the user is running
2017-05-21 15:40:28 -07:00
yuvipanda
02ea11a0bf
Use ubuntu 17.04 instead of 16.10 as base
2017-05-21 15:37:47 -07:00
yuvipanda
82425bbaf3
Allow checking out a non-master ref
...
- No longer doing deep clones. Caching should happen at a different
layer!
- Actually report failures and stop if something bad happens!
2017-05-19 00:07:39 -07:00
yuvipanda
91e41fca90
Revamp logging to provide structured JSON logs
...
- Filter out useless info from docker build / push steps
- Use JSON logging everywhere. User readable messages go into
message, extra useful info goes into extra.
- Capture output from all spawned processes and stuff them
into an appropriate JSON structure
2017-05-15 18:54:51 -07:00
yuvipanda
e0f75520db
Do a hacky attempt at not rebuilding already-built images
...
This is such a complete and utter hack, and I should be somewhat
ashamed of myself. *However*, the docker registry API seems to be
a piece of poop, and there seem to be absolutely no client libraries
for it in python :(
2017-05-09 20:45:45 -07:00
yuvipanda
4881ba2088
Update gitignore + add dockerignore
2017-05-09 20:43:27 -07:00
yuvipanda
4b8f6d0435
Bump version of venv builders
2017-05-09 18:30:46 -07:00
yuvipanda
9e2a16929d
Have Dockerfile build off current dir
...
Makes it much easier to test!
2017-05-09 13:39:50 -07:00
yuvipanda
66fce0592f
Add a dockerfile based BuildPack
...
Great escape hatch
2017-05-09 13:39:47 -07:00
yuvipanda
53268f2d74
Add a simple but fully functional Dockerfile
2017-05-09 03:07:56 -07:00
yuvipanda
e7d51c3fe9
Update venv image version again
...
Should move these out to config soon
2017-05-09 02:57:08 -07:00
yuvipanda
4856db7e79
Print entire progress object
...
Should be moved into structlog soon
2017-05-09 02:50:32 -07:00
yuvipanda
a052ac2d71
Bump s2i builder images
2017-05-09 02:50:24 -07:00
yuvipanda
d7c04ab58e
Switch to an even older docker API version
...
This works with GKE which has Docker 1.11
2017-05-09 02:29:15 -07:00
yuvipanda
d5cafb2822
Make builder a real module
2017-05-09 01:58:06 -07:00
yuvipanda
0399583ba8
Add setup.py
2017-05-09 01:46:26 -07:00
yuvipanda
aa7eb895c1
Add basic builder code
...
- Takes in config via traitlets
- Pushes image after it is built
- Can run different detectors easily as well
- Single straight up application that runs from start to end,
no concurrency (woot!)
2017-05-09 01:37:19 -07:00
yuvipanda
8ddf7704ce
Initial commit
2017-05-09 01:37:07 -07:00
yuvipanda
1d2e7adab9
Add python2 builder as well
...
- Uses virtualenv instead of venv
- Is ok for Dockerfiles to diverge, we keep assemble scripts the
same
- Change name to account for venv + python version present
- Add a ugly hack to get some packages (tiffiles and others) to
work properly when using sdists + py2
2017-05-09 01:34:18 -07:00
yuvipanda
5dc6fcec2b
Fail and give up at getting miniconda working again
2017-05-08 20:19:29 -07:00
yuvipanda
488f70112d
try, fail and give up on getting miniconda to work
...
Someone else should do this :)
2017-05-08 17:43:42 -07:00
yuvipanda
bafa6d7d50
Add simple hacky version of a miniconda builder
2017-05-08 16:27:24 -07:00
yuvipanda
efd55a9bff
Bump builder version to v0.1.1
2017-04-18 23:44:27 -07:00
yuvipanda
acadff0d5b
Copy github source into to working directory too
...
This is a hack to make sure that binder-like workflows work
ok
2017-04-18 23:36:45 -07:00
yuvipanda
98f45966bd
Properly install ipywidgets in base image
2017-04-18 23:36:30 -07:00
yuvipanda
b73f1be863
Cleanup assemble script to keep workspace clean
2017-04-14 11:43:27 -07:00
yuvipanda
12a89763eb
Install ipywidgets in base
...
I consider it part of base notebook install :)
2017-04-14 11:43:06 -07:00
yuvipanda
4aa5eb60cf
Make the makefile versioned + more useful
2017-04-13 16:18:17 -07:00
yuvipanda
31d07fe1b3
Cleanup the singleuser builder image
2017-04-13 16:17:55 -07:00
yuvipanda
8e60b2c03c
Pin versions of notebook & jupyterhub being installed
2017-04-12 13:43:07 -07:00
yuvipanda
53ce3919e7
Set PATH to include the venv's bin
2017-04-12 13:42:58 -07:00
yuvipanda
7687d4777b
Cleanup apt after installing things we want
2017-04-12 13:42:43 -07:00
yuvipanda
7240600ed0
Rename image to be jupyterhub specific
...
Matches reality!
2017-04-12 13:36:59 -07:00
yuvipanda
3dc2ff4fc5
Install git into base image
2017-04-06 15:53:59 -07:00
yuvipanda
66a79d2aa6
Succeed even if no requirements.txt is present
...
Will just get default jupyter installation + venv
2017-04-05 11:49:46 -07:00
yuvipanda
90b8c3d601
Initial commit
...
- Simple virtualenv based docker builder
- Not re-using saved artifacts yet
- No application tester
- Installs Jupyter Notebooks and JupyterHub by default
2017-04-05 11:31:49 -07:00