samba-server/Dockerfile
David Mulder 29b8139593 - Update to version 1675868083.94e3130:
* toolbox: Add openSUSE specific Containerfile
  * toolbox: Make Containerfile Fedora specific
  * client: Add openSUSE specific Containerfile
  * client: Make Containerfile Fedora specific
  * ad-server: Add openSUSE specific Containerfile
  * ad-server: Make Containerfile Fedora specific
  * server: Add openSUSE specific Containerfile
  * server: Make Containerfile Fedora specific
  * github: fix minor "spelling" mistake in mergify rules
  * workflows: Share samba-client image for building toolbox

OBS-URL: https://build.opensuse.org/package/show/network:samba:CONTAINERS/samba-server?expand=0&rev=9
2023-02-10 16:40:30 +00:00

51 lines
1.5 KiB
Docker

# Defines the tag for OBS and build script builds:
#!BuildTag: opensuse/samba-server:latest
#!BuildTag: opensuse/samba-server:%%MINOR%%
#!BuildTag: opensuse/samba-server:%%PKG_VERSION%%
#!BuildTag: opensuse/samba-server:%%PKG_VERSION%%-%RELEASE%
# OBS doesn't allow a fully qualified image registry name for the offline build
FROM opensuse/tumbleweed
ARG SAMBA_SPECIFICS=daemon_cli_debug_output,ctdb_leader_admin_command
MAINTAINER David Mulder <dmulder@suse.com>
# labelprefix=org.opensuse.samba-server
LABEL org.opencontainers.image.title="Samba container"
LABEL org.opencontainers.image.description="Samba container"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.version="%%PKG_VERSION%%-%RELEASE%"
LABEL org.opencontainers.image.vendor="Samba in Kubernetes"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/samba-server:%%PKG_VERSION%%-%RELEASE%"
# endlabelprefix
COPY smb.conf /etc/samba/smb.conf
RUN zypper --non-interactive install --no-recommends \
findutils \
python3-pip \
python3-jsonschema \
samba-python3 \
python3-pyxattr \
samba \
samba-winbind \
tdb-tools \
ctdb \
glibc \
sambacc && \
zypper clean;
RUN ln -sf /usr/share/sambacc/examples/minimal.json /etc/samba/container.json
VOLUME ["/share"]
EXPOSE 445
ENV SAMBACC_CONFIG="/etc/samba/container.json:/etc/samba/users.json"
ENV SAMBA_CONTAINER_ID="demo"
ENV SAMBA_SPECIFICS="$SAMBA_SPECIFICS"
ENTRYPOINT ["samba-container"]
CMD ["run", "smbd"]
# vim:set syntax=dockerfile: