|
| 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