Skip to content

Commit b0c31fe

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
docs: add dnf repo support to scc builder example
In the development doc the *Build Stage* section documents a method for building sambacc packages that will become part of the final samba-server image. This is very handy for practical testing of sambacc changes. But the document is a bit out of date in that the pure "find rpms and install them" method doesn't work well when the extras are needed. Update the file to document creating a yum/dnf repo and .repo file such that dnf will be used with the sambacc target package in order for `Recommends` to be considered during the install. Signed-off-by: John Mulligan <[email protected]>
1 parent 4b01636 commit b0c31fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/development.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ ARG SAMBACC_VER=my-cool-branch
7474
ARG SAMBACC_REPO=https://github.com/example-user/sambacc
7575
RUN SAMBACC_DISTNAME=latest \
7676
/usr/local/bin/build.sh ${SAMBACC_VER} ${SAMBACC_REPO}
77+
# create yum/dnf repo for temp. packages (file uses paths in dest container)
78+
RUN dnf install -y /usr/bin/createrepo_c \
79+
&& createrepo_c /srv/dist/latest \
80+
&& echo -e '[sambacc]\nbaseurl=file:///tmp/sambacc-dist-latest\nenabled=1\ngpgcheck=0\n' > /srv/dist/latest/sambacc.repo
7781
# --- end new stuff ---
7882
7983
FROM registry.fedoraproject.org/fedora:38

0 commit comments

Comments
 (0)