Skip to content

Commit

Permalink
YANET build images is ready to Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kiselev committed Jan 14, 2025
1 parent af3531a commit 28719ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
12 changes: 7 additions & 5 deletions build/Dockerfile.debian-package
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG RELEASE=22.04
FROM --platform=linux/amd64 ubuntu:${RELEASE}
ARG BUILD_PLATFORM=linux/amd64
ARG RELEASE=24.04
FROM --platform=${BUILD_PLATFORM} ubuntu:${RELEASE} AS environment

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
ninja-build \
pkg-config \
Expand All @@ -27,7 +27,9 @@ RUN apt-get install -y --no-install-recommends \
bison \
debhelper-compat

RUN python3 -m pip install meson==0.61.2
# PEP 668 strict recommends to use virtualenv
RUN python3 -m pip install meson==0.61.2 --break-system-packages \
|| python3 -m pip install meson==0.61.2

COPY . /opt/yanet
WORKDIR /opt/yanet
Expand Down
11 changes: 7 additions & 4 deletions build/Dockerfile.image
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG RELEASE=22.04
FROM --platform=linux/amd64 ubuntu:${RELEASE} AS environment
ARG BUILD_PLATFORM=linux/amd64
ARG RELEASE=24.04
FROM --platform=${BUILD_PLATFORM} ubuntu:${RELEASE} AS environment

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand All @@ -26,7 +27,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bison \
debhelper-compat

RUN python3 -m pip install meson==0.61.2
# PEP 668 strict recommends to use virtualenv
RUN python3 -m pip install meson==0.61.2 --break-system-packages \
|| python3 -m pip install meson==0.61.2


FROM environment AS builder
Expand All @@ -52,7 +55,7 @@ RUN meson setup --prefix=/target \
RUN meson compile -C build


FROM --platform=linux/amd64 ubuntu:${RELEASE}
FROM --platform=${BUILD_PLATFORM} ubuntu:${RELEASE}

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down

0 comments on commit 28719ae

Please sign in to comment.