pre-commit-ci[bot]
27c2b403db
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-31 22:32:14 +00:00
Erik Sundell
15a1fb6e2d
refactor: manually add transitions to f-strings
2022-10-31 21:22:32 +01:00
pre-commit-ci[bot]
5a93542321
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-31 21:22:32 +01:00
Erik Sundell
b3234b54f0
Refactor to f-strings to comply with pyupgrade
2022-10-31 12:57:23 +01:00
Min RK
6826d72aa2
allow user to specify a single port with default command
...
Allows specifying `-p9999` or `-p5555:9999` without also needing to override the default command
app retrieves port arguments from length-1 port mapping for default command,
instead of requiring random port OR overriding the whole command
2022-10-31 12:57:23 +01:00
Simon Li
1735925116
Use enum to standardise `phase`
2022-10-03 22:49:22 +01:00
Min RK
8bf808bd4c
consistent log handling when not using JSON loggers
...
our logger was never being quite hooked up when not using JSON loggers,
meaning that log messages (such as those fixed here to include newlines) were never shown.
2022-08-22 15:16:40 +02:00
yoogottamk
c8d86b9b3d
Pass build_args to `render()` during `--no-build` for consistency with regular builds
2022-02-13 12:50:08 +05:30
Min RK
710d533f75
add `--help-all` support
...
a bit funky, since we are combining two separate parsers
2022-01-27 14:01:45 +01:00
YuviPanda
885cb464b6
Allow passing in traitlets via commandline
...
Without this, you *always* needed a repo2docker_config.py
file to configure anything. This PR makes r2d match the
behavior of most traitlets based applications (like jupyter_server,
jupyterhub, nbconvert, etc)
Fixes https://github.com/jupyterhub/repo2docker/issues/1112
2022-01-26 14:48:11 +05:30
Timo Rothenpieler
9f4827132f
Add command line option to pass extra build args
2021-12-16 13:35:58 +01:00
Timo Rothenpieler
86df151414
Add --label command line option
2021-11-24 13:22:33 +01:00
Sylvain Corlay
92999d64aa
Default to JupyterLab
2021-09-06 11:58:58 +02:00
Min RK
ab1e33bc4c
move docker timestamp-parsing quirk to docker itself
...
our Container API can be more sensible and symmetrical than docker itself
2021-07-09 10:24:09 +02:00
Min RK
164efd31ab
reduce redundant output when capturing late logs
...
it's unclear if late logs ever captures logs not already echoed,
but this at least eliminates the redundant output
2021-07-06 09:45:16 +02:00
Simon Li
0e7e0f003e
Use standard-ish image_inspect format
2021-07-02 12:43:58 +01:00
Simon Li
ad5701dd3a
Remove unnecessary import
2021-07-02 12:43:18 +01:00
Simon Li
00df21069e
ContainerEngine .build .push default to returning strings (stream)
2021-07-02 12:43:18 +01:00
Simon Li
17af0c7293
BuildError only takes positional params
2021-07-02 12:43:18 +01:00
Simon Li
4a06ef19d9
ContainerEngine is now LoggingConfigurable
2021-07-02 12:43:18 +01:00
Simon Li
a73595ce4c
Require image info in a fixed format
2021-07-02 12:43:18 +01:00
Simon Li
787d1d3aeb
Container engine is an entrypoint: repo2docker.engines
2021-07-02 12:43:15 +01:00
Simon Li
c521c3c950
Remove constant docker args
2021-07-02 12:42:12 +01:00
Simon Li
9ac8a8314c
Handle attrs["State"]["ExitCode"]
2021-07-02 12:42:10 +01:00
Simon Li
2864b692ef
app: use DockerEngine
2021-07-02 12:39:42 +01:00
Tim Head
6e372b5bc9
Extreme measures
2021-01-28 09:17:34 +01:00
David Douard
e54c24ce2e
Add support for the SWHID content provider
...
This content provider allows to retrieve the content from a
Software Heritage (SWH) persistent identifier (SWHID).
Typical usage:
repo2docker swh:1:rev:94dca98c006b80309704c717b5d83dff3c1fa3a0
It uses the SWH public vault API to retrieve the content of the given
directory.
Most of the times, this will not need an authentication
token to bypass the rate-limiting of the SWH API.
Without authentication, one should be allowed to retrieve one
directory content per minute.
If this is not enought, then the user must use authenticated calls to
the SWH API.
For this, a new `swh_token` config item has been added to the Repo2Docker
application class.
To use authentication:
repo2docker --config cfg.json swh:1:rev:94dca98c006b80309704c717b5d83dff3c1fa3a0
with the swh_token config option being defined in the cfg.json config file.
2021-01-19 18:04:46 +01:00
David Douard
983607fed7
Fix the docker image name generation
...
make sure all the parts that constitute the generated docker image name
are escaped, otherwise the docker building process can fail (with a rather
hard to understand error).
Before this fix, the `provider.content_id` was not escaped.
2021-01-19 18:03:50 +01:00
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