2023-01-26 23:04:16 +01:00
|
|
|
# Defines the tag for OBS and build script builds:
|
|
|
|
#!BuildTag: opensuse/samba-ad-server:latest
|
|
|
|
#!BuildTag: opensuse/samba-ad-server:%%MINOR%%
|
|
|
|
#!BuildTag: opensuse/samba-ad-server:%%PKG_VERSION%%
|
|
|
|
#!BuildTag: opensuse/samba-ad-server:%%PKG_VERSION%%-%RELEASE%
|
|
|
|
|
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
LABEL maintainer="David Mulder <dmulder@suse.com>"
|
|
|
|
|
|
|
|
# labelprefix=org.opensuse.samba-ad-server
|
|
|
|
LABEL org.opencontainers.image.title="Samba ADDC container"
|
|
|
|
LABEL org.opencontainers.image.description="Samba ADDC container"
|
|
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
|
|
LABEL org.opencontainers.image.version="%%PKG_VERSION%%-%RELEASE%"
|
|
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
|
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
|
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/samba-ad-server:%%PKG_VERSION%%-%RELEASE%"
|
|
|
|
# endlabelprefix
|
|
|
|
|
|
|
|
RUN zypper --non-interactive install --no-recommends \
|
|
|
|
findutils \
|
|
|
|
python3-pip \
|
|
|
|
python3-jsonschema \
|
|
|
|
samba-python3 \
|
|
|
|
python3-pyxattr \
|
|
|
|
samba-ad-dc \
|
|
|
|
procps \
|
|
|
|
samba-client \
|
|
|
|
samba-winbind \
|
|
|
|
python3-dnspython \
|
|
|
|
krb5-server \
|
|
|
|
sambacc
|
|
|
|
RUN ln -sf /usr/share/sambacc/examples/addc.json /etc/samba/container.json
|
|
|
|
|
|
|
|
|
|
|
|
ENV SAMBACC_CONFIG="/etc/samba/container.json:/etc/samba/users.json"
|
|
|
|
ENV SAMBA_CONTAINER_ID="demo"
|
2023-01-31 16:33:06 +01:00
|
|
|
ENV SAMBA_SPECIFICS="daemon_cli_debug_output"
|
2023-01-26 23:04:16 +01:00
|
|
|
ENTRYPOINT ["samba-dc-container"]
|
|
|
|
CMD ["run", "--setup=provision", "--setup=populate"]
|
|
|
|
|
|
|
|
# vim:set syntax=dockerfile:
|