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
Simon Li
1735925116
Use enum to standardise `phase`
2022-10-03 22:49:22 +01:00
Dara Adib
991c249141
Remove unused sys import
2022-06-02 20:54:43 -04:00
Dara Adib
49d47b855e
Shallow clone HEAD
...
Previously repo2docker only performed shallow clones when refspec
was not provided. We now also perform shallow clones if refspec is
explicitly set to HEAD. Binder always specifies a refspec, often
HEAD, so this should improve some build times.
2022-06-02 20:54:43 -04:00
Tim Head
1ebb4b5d87
Add explicit error message when `master` is specified
...
Provide a specific error messaeg with a hint towards solution
when a user specifies `master` as ref and we can't find it.
2020-10-22 08:04:29 +02:00
Tim Head
ee38137aac
Remove explicit checkout when ref given
2019-11-07 23:15:29 +01:00
David Brochart
f440daeb8b
Check out hash, not ref
2019-11-07 14:45:26 +01:00
David Brochart
908161aecb
Dot gets added later
2019-11-07 13:26:26 +01:00
David Brochart
39eeb82342
Raise ValueError if not able to checkout ref
2019-11-06 09:32:08 +01:00
David Brochart
97c8bfb68f
Clone and check out branch in two steps
2019-11-05 18:53:45 +01:00
David Brochart
56e6c116f3
Add test
2019-11-05 18:01:06 +01:00
David Brochart
e4e9c1fdce
Fix submodule check out
2019-11-05 15:10:19 +01: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
Alistair Miles
62005f6f15
ensure git submodules are updated and initialised
2019-04-08 08:09:19 -05: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
James Bourbeau
3cadb1832d
Another f-string
2018-12-18 09:07:52 -06: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
Yuvi Panda
aeec658149
Revert "[MRG] Start reusing existing docker images if content hasn't changed"
2018-12-05 11:51:22 -08:00
Tim Head
b9e182791e
Use a subset of the git SHA1 to make image names unique
2018-11-29 18:22:05 +01:00
Tim Head
39c2ae276b
Start reusing existing docker images if content hasn't changed
...
Content providers can specify a "content ID" which is used to identify
versions of the content. The ID is used in the docker image name and if
we find an existing image for a given content ID the build step is
skipped.
2018-11-04 13:23:04 +01:00
Tim Head
866dd4f800
Start using content providers
2018-10-16 08:04:13 +02:00
yuvipanda
18f11b8c1f
[WIP] base contentproviders commit
...
Very much a WIP, but some thougts on how we can support more
than just git.
2018-10-16 08:04:13 +02:00