pre-commit-ci[bot]
f2c1cb7a8c
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-02-05 20:28:56 +00:00
YuviPanda
e586b26110
Upgrade base image to Ubuntu 22.04
...
18.04 was EOL May 2023, with only paid support now available
(https://ubuntu.com/blog/18-04-end-of-standard-support ).
Let's bump the default base image to 22.04. This might break
some repos that have apt.txt based packages, but I don't
really think there's a way around that. If specific package pinning
is needed, users unfortunately need to use a Dockerfile.
Ref https://github.com/jupyterhub/repo2docker/issues/1258
2023-06-13 13:03:05 +05:30
Yuvi Panda
99125ab179
Merge branch 'main' into feat/new-base
2023-01-06 22:28:27 -08:00
Simon Li
8f3f57ada7
Make platform configurable instead of only auto-detecting
2023-01-02 19:51:51 +00:00
YuviPanda
4d83abc2df
Add note about what base images are supported
2022-12-10 13:18:16 -08:00
Yuvi Panda
f776d8efcb
Use full image tag
...
Fixes #1146
Co-authored-by: Simon Li <orpheus+devel@gmail.com>
2022-12-10 13:17:49 -08:00
Yuvi Panda
c21374d305
Fix typo
...
Co-authored-by: Simon Li <orpheus+devel@gmail.com>
2022-12-10 13:17:49 -08:00
YuviPanda
f35a948e75
Set base image for default buildpack too
2022-12-10 13:17:16 -08:00
YuviPanda
20b0815257
Make base_image configurable
...
Fixes https://github.com/jupyterhub/repo2docker/issues/487
2022-12-10 13:17:16 -08:00
Min RK
d5f291bec1
move cleanup_checkout / local repo, dry_run/push/run relationships to app
...
so app behaves more consistently when run without cli
2022-11-08 16:27:45 +01:00
Min RK
b841dea4ac
reconcile CLI/config priority
...
- avoid CLI defaults clobbering values from config.
Mostly by using `default=None`, and adding `if args.name is not None` checks
before assigning attributes
2022-11-08 15:25:27 +01:00
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