Wykres commitów

1072 Commity (381d21c25b01f237bcac58ed4f27ed1ba1fd040c)

Autor SHA1 Wiadomość Data
yuvipanda a0f539faaf Don't use host network for running containers
- Doesn't really work on OS X. BOO!
2017-05-22 23:33:23 -07:00
yuvipanda 9adb8aa947 Use host networking when running
Since we only expect this to be happening on users computers
when they are running this to test, host networking solves a
bunch of surprises around access to ports, as well as figuring
out which port the notebook should be listening on (since it
can just rely on the logic inside the notebook)

Dangerous when run on a cloud environment!
2017-05-22 23:02:18 -07:00
yuvipanda 9fca3bf480 Kill the container when our program exits 2017-05-22 23:00:37 -07:00
yuvipanda eac759ccd4 Add explicit dependency on escapism 2017-05-22 22:55:44 -07:00
yuvipanda 6505ddc564 Allow running just-built container
- make push optional
2017-05-22 22:55:17 -07:00
yuvipanda ae124ec2f7 Make push optional and default to False
Let's optimize the defaults for good commandline usage rather
than for binderhub usage
2017-05-22 22:17:02 -07:00
yuvipanda 542c7a9a1c Set default repo source to full path of current dir
Rather than just '.'
2017-05-22 22:16:46 -07:00
yuvipanda 657db33017 Set a default image name if none is provided
It's kind of shitty but better than just erroring.
2017-05-22 22:16:30 -07:00
yuvipanda a7d85c48fc Fix __main__ entrypoint to actually work 2017-05-22 21:30:28 -07:00
yuvipanda e3224392e0 Add a __main__ and an entrypoint 2017-05-22 20:39:12 -07:00
yuvipanda 13226e1f27 Rename source_url and source_ref to repo and ref
Makes more sense, and also now consistent with the repository
name
2017-05-22 20:32:13 -07:00
yuvipanda 310bc0fbfe Add a little more bit of documentation 2017-05-22 20:28:28 -07:00
yuvipanda e2991f614a Specify the type of buildpack list elements 2017-05-22 20:26:47 -07:00
yuvipanda 25c203c356 Minor variable name cleanup 2017-05-22 20:26:27 -07:00
yuvipanda adbe908355 Rename alias for output image
Makes more sense
2017-05-22 20:13:20 -07:00
yuvipanda 46b08a21dd Add more docs 2017-05-22 20:10:59 -07:00
yuvipanda 93972e9b58 Rename builder to repo2docker
Package name is jupyter-repo2docker
2017-05-22 16:22:36 -07:00
yuvipanda 03eb650acb Move the s2i builders into a subdir 2017-05-22 16:18:49 -07:00
yuvipanda 8811588fa0 Merge s2i-builders repo to the builder repo
These are fairly tightly coupled so let's make them in the same repo
2017-05-22 16:05:27 -07:00
yuvipanda f77b95a9e8 Remove .gitignore in anticipation of merging with s2i 2017-05-22 16:00:33 -07:00
yuvipanda 86b97f8d46 Fix typos in README 2017-05-22 15:36:02 -07:00
yuvipanda 2ce071c714 Add a simple README 2017-05-22 15:29:11 -07:00
yuvipanda 2d31b2c289 Upgrade version of s2i 2017-05-22 15:15:31 -07:00
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