Skip to content

Commit

Permalink
Merge osbuild-ci Fedora and cXs Containerfiles
Browse files Browse the repository at this point in the history
Use a single Containerfile for building all osbuild-ci containers,
regardless of the distro.

Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Sep 17, 2024
1 parent e267156 commit 812ef22
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 65 deletions.
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ target "virtual-osbuild-ci-cXs" {
]),
OSB_DNF_ALLOW_ERASING = 1,
}
dockerfile = "src/images/osbuild-ci-cstream.Dockerfile"
dockerfile = "src/images/osbuild-ci.Dockerfile"
inherits = [
"virtual-osbuild-ci-base",
]
Expand Down
63 changes: 0 additions & 63 deletions src/images/osbuild-ci-cstream.Dockerfile

This file was deleted.

9 changes: 8 additions & 1 deletion src/images/osbuild-ci.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
# Specify the package groups to install into the container. Separate
# groups by comma. By default, no group is pulled in.
#
# * OSB_PIP_PACKAGES=""
# Specify the packages to install into the container using pip. Separate
# packages by comma. By default, no packages are installed.
#

ARG OSB_FROM="docker.io/library/fedora:latest"
FROM "${OSB_FROM}" AS target
Expand All @@ -32,7 +36,10 @@ COPY src src

ARG OSB_DNF_PACKAGES=""
ARG OSB_DNF_GROUPS=""
RUN ./src/scripts/dnf.sh "${OSB_DNF_PACKAGES}" "${OSB_DNF_GROUPS}"
ARG OSB_PIP_PACKAGES=""
ARG OSB_DNF_ALLOW_ERASING=""
RUN ./src/scripts/dnf.sh "${OSB_DNF_PACKAGES}" "${OSB_DNF_GROUPS}" ${OSB_DNF_ALLOW_ERASING}
RUN ./src/scripts/pip.sh "${OSB_PIP_PACKAGES}"
COPY src/scripts/osbuild-ci.sh .

RUN rm -rf /osb/src
Expand Down

0 comments on commit 812ef22

Please sign in to comment.