Skip to content

Commit 3fa5b6b

Browse files
anoopcs9mergify[bot]
authored andcommitted
images/ad-server: Add Containerfile for CentOS flavour
Adding a Containerfile for building ad-server images on CentOS 9 where we could install AD DC components from repository holding nightly builds of Samba for CentOS. Signed-off-by: Anoop C S <[email protected]>
1 parent 299872a commit 3fa5b6b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

images/ad-server/Containerfile.centos

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM quay.io/centos/centos:stream9
2+
ARG INSTALL_PACKAGES_FROM=default
3+
ARG SAMBA_VERSION_SUFFIX=""
4+
ARG SAMBACC_VERSION_SUFFIX=""
5+
ARG SAMBA_SPECIFICS=
6+
ARG INSTALL_CUSTOM_REPO=
7+
8+
MAINTAINER John Mulligan <[email protected]>
9+
10+
LABEL org.opencontainers.image.title="Samba ADDC container"
11+
LABEL org.opencontainers.image.description="Samba ADDC container"
12+
LABEL org.opencontainers.image.vendor="Samba in Kubernetes"
13+
14+
COPY install-packages.sh /usr/local/bin/install-packages.sh
15+
RUN /usr/local/bin/install-packages.sh \
16+
"${INSTALL_PACKAGES_FROM}" \
17+
"${SAMBA_VERSION_SUFFIX}" \
18+
"${INSTALL_CUSTOM_REPO}"
19+
20+
# If you want to install a custom version of sambacc into this image mount
21+
# a directory containing a sambacc RPM, or a sambacc wheel, or a .repo
22+
# file at /tmp/sambacc-dist-latest
23+
# If the directory is empty the script automatically falls back to using
24+
# the latest continuously built RPM from our sambacc COPR:
25+
# https://copr.fedorainfracloud.org/coprs/phlogistonjohn/sambacc
26+
COPY .common/install-sambacc-common.sh /usr/local/bin/install-sambacc-common.sh
27+
COPY install-sambacc.sh /usr/local/bin/install-sambacc.sh
28+
RUN /usr/local/bin/install-sambacc.sh \
29+
"/tmp/sambacc-dist-latest" \
30+
"${SAMBACC_VERSION_SUFFIX}"
31+
32+
33+
ENV SAMBACC_CONFIG="/etc/samba/container.json:/etc/samba/users.json"
34+
ENV SAMBA_CONTAINER_ID="demo"
35+
ENV SAMBA_SPECIFICS="$SAMBA_SPECIFICS"
36+
ENTRYPOINT ["samba-dc-container"]
37+
CMD ["run", "--setup=provision", "--setup=populate"]
38+
39+
# vim:set syntax=dockerfile:

0 commit comments

Comments
 (0)