-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1675 from camptocamp/renovate/master-ubuntu-24.x
Update dependency ubuntu to v24 (master)
- Loading branch information
Showing
10 changed files
with
252 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
FROM ubuntu:22.04 AS base-all | ||
LABEL maintainer Camptocamp "[email protected]" | ||
FROM ubuntu:24.04 AS base-all | ||
LABEL maintainer='Camptocamp "[email protected]"' | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-cux"] | ||
|
||
RUN --mount=type=cache,target=/var/lib/apt/lists --mount=type=cache,target=/var/cache \ | ||
sed -i '/-backports /d' /etc/apt/sources.list \ | ||
&& apt-get update \ | ||
&& apt-get install --yes --no-install-recommends python3-pip binutils | ||
RUN --mount=type=cache,target=/var/lib/apt/lists \ | ||
--mount=type=cache,target=/var/cache,sharing=locked \ | ||
apt-get update \ | ||
&& apt-get upgrade --yes \ | ||
&& apt-get install --yes --no-install-recommends apt-utils \ | ||
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --yes tzdata \ | ||
&& apt-get install --yes --no-install-recommends binutils python3-pip python3-venv \ | ||
&& python3 -m venv /venv | ||
|
||
ENV PATH=/venv/bin:$PATH | ||
|
||
# Used to convert the locked packages by poetry to pip requirements format | ||
# We don't directly use `poetry install` because it force to use a virtual environment. | ||
FROM base-all as poetry | ||
FROM base-all AS poetry | ||
|
||
# Install Poetry | ||
WORKDIR /tmp | ||
|
@@ -24,7 +31,7 @@ RUN poetry export --extras=checks --extras=publish --extras=audit --extras=versi | |
&& poetry export --with=dev --output=requirements-dev.txt | ||
|
||
# Base, the biggest thing is to install the Python packages | ||
FROM base-all as base | ||
FROM base-all AS base | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.