paugier
979c4abe00
Add Mercurial in content_providers in repo2docker/app.py
2020-09-07 10:06:58 +02:00
Scott Black
0549577a51
Merge branch 'master' of git://github.com/jupyter/repo2docker
2019-09-24 13:37:50 -06:00
Kacper Kowalik (Xarthisius)
331a610324
Add Dataverse content provider
2019-09-13 13:42:41 -05:00
Daniel Nüst
0e4029bb8d
add Figshare content provider
...
moving common functions to a DoiProvider
2019-09-08 14:51:17 +02:00
Min RK
8e1bdd9765
only log Dockerfile at debug-level if not dry_run
...
avoids double-display when using --debug --no-build
2019-09-07 14:28:14 +02:00
Min RK
e9c39e2596
respect self.log_level with json logs
2019-09-07 14:25:25 +02:00
Min RK
7f0cac84b5
print Dockerfile to stdout when `--no-build`
...
Removes need to also specify `--debug` to see the dockerfile, which goes to the logs
2019-09-07 14:25:07 +02:00
Min RK
8ef5faa2ab
Merge pull request #779 from nuest/docker_daemon_logmessage
...
add explicit log message on failing Docker connection
2019-09-07 14:07:03 +02:00
Daniel Nüst
b3f82db558
exit and show clean error message (no log) if docker connection fails
2019-09-07 12:16:41 +02:00
Daniel Nüst
c8cd3269c0
add explicit log message on failing Docker connection, see #774
2019-09-07 09:22:00 +02:00
Scott Black
fc9326cbf3
add hydroshare as a content provider
2019-08-22 16:39:42 -06:00
Min RK
6385097d20
comment about multiple json events per chunk
2019-07-09 16:17:56 +02:00
Min RK
19e0255bb7
include full docker progress data in push events
...
Most useful is probably progressDetail.progress which is the docker rendered
Example event:
```json
"layers": {
"25b373f5f7f1": {
"status": "Waiting",
"progressDetail": {},
"id": "25b373f5f7f1"
},
"e9f2b5eca21e": {
"status": "Pushing",
"progressDetail": {
"current": 747589632,
"total": 758965327
},
"progress": "[=================================================> ] 747.6MB/759MB",
"id": "e9f2b5eca21e"
},
"7753d7e0913b": {
"status": "Pushed",
"progressDetail": {},
"id": "7753d7e0913b"
},
"ed03b06eb165": {
"status": "Pushed",
"progressDetail": {},
"id": "ed03b06eb165"
},
"01cb88e6c1af": {
"status": "Pushed",
"progressDetail": {},
"id": "01cb88e6c1af"
},
"adda4de99b3d": {
"status": "Mounted from library/buildpack-deps",
"progressDetail": {},
"id": "adda4de99b3d"
},
"3a034154b7b6": {
"status": "Mounted from library/buildpack-deps",
"progressDetail": {},
"id": "3a034154b7b6"
}
```
2019-07-02 15:05:08 +02:00
Kacper Kowalik (Xarthisius)
f80fb4b39b
Handle root user case more gracefully. Fixes #696
...
If user_id is root, exit only from cmdline. Raise exception if r2d was
invoked as a library.
2019-06-28 11:46:01 -05:00
Fabien Maussion
85b0d80b16
Update target_repo_dir docstring
...
See https://discourse.jupyter.org/t/users-home-in-jupyterhub/1463/3
2019-06-27 08:58:29 +01:00
Erik Sundell
e58b5c316e
Merge remote-tracking branch 'upstream/master' into pipenv-support
2019-06-04 08:53:56 +02:00
Tim Head
8b004e06dc
Apply auto formatting
...
Apologies to anyone finding this commit via git blame or log
run the autoformatting by
pre-commit run --all-files
2019-06-03 21:37:25 +02:00
Tim Head
dce6c1e8d7
Add basic Zenodo content provider
2019-05-29 22:27:09 +02:00
Tim Head
02ec2255d6
Use getpass instead of pwd to fetch username
...
getpass is available onn windows as well as unix, whereas pwd is not
available on windows.
2019-05-23 09:45:28 +02:00
Erik Sundell
42787d28f7
extract pipfile: add to ordered list
2019-05-12 15:57:03 +02:00
Kacper Kowalik (Xarthisius)
caef6686d1
Do not try to build the image with root as the primary user
...
Fixes #267 and #395
2019-05-09 13:06:02 -05:00
Tim Head
e66f0af23c
Revert "[MRG] Do not try to build the image with root as the primary user."
2019-05-09 13:14:32 +02:00
Kacper Kowalik (Xarthisius)
7d948bda8d
Do not try to build the image with root as the primary user
...
Fixes #267 and #395
2019-05-08 14:55:43 -05:00
David Anthoff
47e09b2adb
Rename julia build packs
2019-02-26 08:52:44 -08:00
David Anthoff
3e9f8ec1de
Rearrange inputs
2019-02-25 15:18:02 -08:00
David Anthoff
c9770ee41e
Split julia support into legacy and current
2019-02-25 15:18:02 -08:00
Gladys Nalvarte
7609e7f0aa
Update build method in docker and legacy files
2019-02-19 10:45:48 +01:00
Gladys Nalvarte
5bf2eadcf8
Exposes CPU limit
2019-02-15 14:57:58 +01:00
Yuvi Panda
9eb78c34ab
Merge pull request #534 from betatim/test-test-test
...
[MRG] Add tests for port mapping conversion
2018-12-22 10:46:16 -08:00
Tim Head
7067663763
Add tests for port mapping conversion
2018-12-21 15:58:56 +01:00
Tim Head
e7018d7ca5
Add caching of already built repositories
...
Add tests for image caching
Adjust tests and main app for cached builds
Remove obsolete command-line handling
Remove print statement from test
Fix subdirectory handling
Put back exception instead of sys.exit()
2018-12-21 11:20:51 +01:00
yuvipanda
21154d3b86
Use REPO_DIR rather than REPO_PATH
...
https://github.com/jupyter/repo2docker/pull/507#issuecomment-448184651
is a good justification
2018-12-18 11:50:35 -08:00
yuvipanda
7f72a02108
Explicitly specify log message for docker build failures
2018-12-18 11:50:30 -08:00
yuvipanda
4858f42d7f
Only set REPO_PATH if explicitly passed in
...
Expanding env vars through ARG and ENV is too confusing
to get right.
2018-12-18 11:50:24 -08:00
yuvipanda
8b26bbe4e0
Allow setting REPO_PATH from commandline
2018-12-18 11:50:24 -08:00
James Bourbeau
929deaceb4
Remove f-strings
2018-12-18 08:57:53 -06:00
Min RK
22de9f40d0
get unittests passing again
...
fix some relative paths, temporary dirs, etc.
2018-12-17 13:11:45 +01:00
yuvipanda
8f56061e69
Don't call sys.exit from inside the class
...
Instead, we raise exceptions that can be caught and
handled by calling code instead
2018-12-14 13:15:33 -08:00
yuvipanda
a0ad3f92e3
Rename 'build' to 'dry_run'
...
A better description
2018-12-14 13:15:33 -08:00
yuvipanda
ac700c49be
Split 'build' function out of start
2018-12-14 13:15:33 -08:00
yuvipanda
cd04da56fc
Move cleanup_checkout automatic determination to main()
...
This is automaticaly determined only from commandline args,
so it should be in __main__
2018-12-14 13:15:33 -08:00
yuvipanda
e1ead75302
Move argument parsing out of Repo2Docker class
...
Argument parsing should only be used when calling from
the command line, and not be deeply tied into the class
itself. This makes it easier for folks to just set
traitlets on an empty class and start it, without having to
deal with passing arguments.
This breaks how people might already be using Repo2Docker as
a library, so should not be part of 0.7
2018-12-14 13:15:33 -08:00
James Bourbeau
db00d4982c
Use "local" label for local directory
2018-12-13 17:12:09 -06:00
James Bourbeau
2448730b75
Refactor test to use mock
2018-12-13 16:40:39 -06:00
James Bourbeau
99b1e7548a
Update test_labels.py
2018-12-13 12:43:45 -06:00
James Bourbeau
624ad94073
Remove getattr usage
2018-12-13 11:09:50 -06:00
James Bourbeau
2e31e6e80e
Add Dockerfile repo2docker labels
2018-12-12 22:05:06 -06:00
Tim Head
19d7c165d1
Merge pull request #482 from yuvipanda/push-log
...
Log a 'success' message when push is complete
2018-12-12 08:35:33 +01:00
Tim Head
69cd760e07
Merge pull request #494 from yuvipanda/util-tests
...
Add unit tests for repo2docker/utils.py
2018-12-11 13:05:08 +01:00
Tim Head
153765aa70
Add shutil import
2018-12-11 10:54:06 +01:00