forked from pool/samba-ad-server
Fix Dockerfile
OBS-URL: https://build.opensuse.org/package/show/network:samba:CONTAINERS/samba-ad-server?expand=0&rev=3
This commit is contained in:
parent
e900fd4427
commit
750a7864c3
@ -1,42 +0,0 @@
|
||||
# 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"
|
||||
ENV SAMBA_SPECIFICS="$SAMBA_SPECIFICS"
|
||||
ENTRYPOINT ["samba-dc-container"]
|
||||
CMD ["run", "--setup=provision", "--setup=populate"]
|
||||
|
||||
# vim:set syntax=dockerfile:
|
23
_service
23
_service
@ -1,26 +1,29 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/openSUSE/samba-container.git</param>
|
||||
<param name="revision">master</param>
|
||||
<param name="subdir">images/ad-server</param>
|
||||
<param name="extract">Containerfile</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="filename">samba-container</param>
|
||||
<param name="exclude">.git</param>
|
||||
</service>
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/openSUSE/samba-container.git</param>
|
||||
<param name="revision">master</param>
|
||||
<param name="extract">LICENSE</param>
|
||||
<service name="extract_file" mode="disabled">
|
||||
<param name="archive">*.tar</param>
|
||||
<param name="files">*/images/ad-server/Containerfile</param>
|
||||
<param name="outfilename">Dockerfile</param>
|
||||
</service>
|
||||
<service name="extract_file" mode="disabled">
|
||||
<param name="archive">*.tar</param>
|
||||
<param name="files">*/LICENSE</param>
|
||||
</service>
|
||||
<service name="replace_using_package_version" mode="buildtime">
|
||||
<param name="file">Containerfile</param>
|
||||
<param name="file">Dockerfile</param>
|
||||
<param name="regex">%%PKG_VERSION%%</param>
|
||||
<param name="parse-version">patch</param>
|
||||
<param name="package">samba-ad-server</param>
|
||||
</service>
|
||||
<service name="replace_using_package_version" mode="buildtime">
|
||||
<param name="file">Containerfile</param>
|
||||
<param name="file">Dockerfile</param>
|
||||
<param name="regex">%%MINOR%%</param>
|
||||
<param name="parse-version">minor</param>
|
||||
<param name="package">samba-ad-server</param>
|
||||
|
Loading…
Reference in New Issue
Block a user