| 1 |
# |
| 2 |
# dbrk-fedora - Fedora Test Image for DBus Broker |
| 3 |
# |
| 4 |
# A small Fedora-based image with dbus-broker included from a new build. Easy |
| 5 |
# way to test changes to dbus-broker on a real Fedora boot. |
| 6 |
# |
| 7 |
# Arguments: |
| 8 |
# |
| 9 |
# * DBRK_FROM="ghcr.io/bus1/dbrk-fedora-base:latest" |
| 10 |
# This controls the host container used as base for the image. |
| 11 |
# |
| 12 |
|
| 13 |
ARG DBRK_FROM="ghcr.io/bus1/dbrk-fedora-base:latest" |
| 14 |
FROM "${DBRK_FROM}" AS target |
| 15 |
|
| 16 |
# |
| 17 |
# Import our build sources and prepare the target environment. When finished, |
| 18 |
# we drop the build sources again, to keep the target layers small. |
| 19 |
# |
| 20 |
|
| 21 |
WORKDIR /dbrk |
| 22 |
COPY . src |
| 23 |
|
| 24 |
WORKDIR /dbrk/build |
| 25 |
RUN meson setup \ |
| 26 |
--prefix=/usr \ |
| 27 |
-Daudit=true \ |
| 28 |
-Dselinux=true \ |
| 29 |
. ../src |
| 30 |
RUN meson compile |
| 31 |
RUN meson test |
| 32 |
RUN meson install |
| 33 |
|
| 34 |
WORKDIR /dbrk/home |
| 35 |
RUN rm -rf /dbrk/src /dbrk/build |