Skip to content

Commit 3fe6c75

Browse files
authored
Merge pull request #1287 from yuvipanda/bump
Upgrade base image from to Ubuntu 22.04 from 18.04
2 parents d414e99 + c53971b commit 3fe6c75

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/source/design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Many ingredients go into making an image from a repository:
4949

5050
`repo2docker` controls the first two, the user controls the third one. The current
5151
policy for the version of the base image is that we will use the current LTS
52-
version Bionic Beaver (18.04) for the foreseeable future.
52+
version Jammy Jellyfish (22.04) for the foreseeable future.
5353

5454
The version of `repo2docker` used to build an image can influence which packages
5555
are installed by default and which features are supported during the build

docs/source/howto/base_image.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To do so, use the `base_image` traitlet when invoking `repo2docker`.
77
Note that this is not configurable by individual repositories, it is configured when you invoke the `repo2docker` command.
88

99
```{note}
10-
By default repo2docker builds on top of the `buildpack-deps:bionic` base image, an Ubuntu-based image.
10+
By default repo2docker builds on top of the `buildpack-deps:jammy` base image, an Ubuntu-based image.
1111
```
1212

1313
## Requirements for your base image
@@ -26,8 +26,8 @@ Changing the base image may have an impact on the reproducibility of repositorie
2626
There are **no guarantees that repositories will behave the same way as other repo2docker builds if you change the base image**.
2727
For example these are two scenarios that would make your repositories non-reproducible:
2828

29-
- **Your base image is different from `Ubuntu:bionic`.**
30-
If you change the base image in a way that is different from repo2docker's default (the Ubuntu `bionic` image), then repositories that **you** build with repo2docker may be significantly different from those that **other** instances of repo2docker build (e.g., those from [`mybinder.org`](https://mybinder.org)).
29+
- **Your base image is different from `Ubuntu:jammy`.**
30+
If you change the base image in a way that is different from repo2docker's default (the Ubuntu `jammy` image), then repositories that **you** build with repo2docker may be significantly different from those that **other** instances of repo2docker build (e.g., those from [`mybinder.org`](https://mybinder.org)).
3131
- **Your base image changes over time.**
3232
If you choose a base image that changes its composition over time (e.g., an image provided by some other community), then it may cause repositories build with your base image to change in unpredictable ways.
3333
We recommend choosing a base image that you know to be stable and trustworthy.

repo2docker/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def _dry_run_changed(self, change):
448448
)
449449

450450
base_image = Unicode(
451-
"docker.io/library/buildpack-deps:bionic",
451+
"docker.io/library/buildpack-deps:jammy",
452452
config=True,
453453
help="""
454454
Base image to use when building docker images.

repo2docker/buildpacks/r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def get_rspm_snapshot_url(self, snapshot_date, max_days_prior=7):
217217
),
218218
},
219219
).json()
220-
# Construct a snapshot URL that will give us binary packages for Ubuntu Bionic (18.04)
220+
# Construct a snapshot URL that will give us binary packages for appropriate ubuntu version
221221
if "upsi" in snapshots:
222222
return (
223223
# Env variables here are expanded by envsubst in the Dockerfile, after sourcing

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def base_image():
105105
"""
106106
Base ubuntu image to use when testing specific BuildPacks
107107
"""
108-
return "buildpack-deps:bionic"
108+
return "buildpack-deps:jammy"
109109

110110

111111
def _add_content_to_git(repo_dir):

0 commit comments

Comments
 (0)