-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ybucci/develop
Updated to 4.17.0
- Loading branch information
Showing
12 changed files
with
227 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
FROM oraclelinux:8 | ||
ARG SAMBA_VERSION=4.17.0 | ||
RUN yum update -y && yum install -y dnf-plugins-core && yum install -y epel-release && set -xueo pipefail && dnf config-manager --enable ol8_codeready_builder ol8_baseos_latest ol8_appstream && dnf update -y | ||
RUN yum install -y --setopt=install_weak_deps=False "@Development Tools" acl attr autoconf avahi-devel bind bind-utils binutils bison ccache chrpath cups-devel curl dbus-devel docbook-dtds docbook-style-xsl flex gawk gcc gdb git glib2-devel glibc-common glibc-langpack-en glusterfs-api-devel glusterfs-devel gnutls-devel gpgme-devel gzip hostname htop jansson-devel keyutils-libs-devel krb5-devel krb5-server krb5-workstation libacl-devel libarchive-devel libattr-devel libblkid-devel libbsd-devel libcap-devel libcephfs-devel libicu-devel libpcap-devel libtasn1-devel libtasn1-tools libtirpc-devel libunwind-devel libuuid-devel libxslt lmdb lmdb-devel make mingw64-gcc ncurses-devel openldap-devel pam-devel patch perl perl-Archive-Tar perl-ExtUtils-MakeMaker perl-JSON perl-Parse-Yapp perl-Test-Simple perl-generators perl-interpreter pkgconfig popt-devel procps-ng psmisc python3 python3-cryptography python3-devel python3-dns python3-gpg python3-iso8601 python3-libsemanage python3-markdown python3-policycoreutils python3-pyasn1 python3-setproctitle quota-devel readline-devel redhat-lsb rng-tools rpcgen rpcsvc-proto-devel rsync sed sudo systemd-devel tar tracker-devel tree wget which xfsprogs-devel yum-utils zlib-devel supervisor && yum clean all | ||
RUN yum install -y --setopt=install_weak_deps=False "@Development Tools" chrony acl attr autoconf avahi-devel bind bind-utils binutils bison ccache chrpath cups-devel curl dbus-devel docbook-dtds docbook-style-xsl flex gawk gcc gdb git glib2-devel glibc-common glibc-langpack-en glusterfs-api-devel glusterfs-devel gnutls-devel gpgme-devel gzip hostname htop jansson-devel keyutils-libs-devel krb5-devel krb5-server krb5-workstation libacl-devel libarchive-devel libattr-devel libblkid-devel libbsd-devel libcap-devel libcephfs-devel libicu-devel libpcap-devel libtasn1-devel libtasn1-tools libtirpc-devel libunwind-devel libuuid-devel libxslt lmdb lmdb-devel make mingw64-gcc ncurses-devel openldap-devel pam-devel patch perl perl-Archive-Tar perl-ExtUtils-MakeMaker perl-JSON perl-Parse-Yapp perl-Test-Simple perl-generators perl-interpreter pkgconfig popt-devel procps-ng psmisc python3 python3-cryptography python3-devel python3-dns python3-gpg python3-iso8601 python3-libsemanage python3-markdown python3-policycoreutils python3-pyasn1 python3-setproctitle quota-devel readline-devel redhat-lsb rng-tools rpcgen rpcsvc-proto-devel rsync sed sudo systemd-devel tar tracker-devel tree wget which xfsprogs-devel yum-utils zlib-devel supervisor && yum clean all | ||
RUN wget https://download.samba.org/pub/samba/stable/samba-$SAMBA_VERSION.tar.gz && tar -xvf samba-$SAMBA_VERSION.tar.gz && cd samba-$SAMBA_VERSION && ./configure --prefix /usr --enable-fhs --sysconfdir=/etc --localstatedir=/var --with-privatedir=/var/lib/samba/private --with-piddir=/var/run/samba --with-automount --datadir=/usr/share --with-lockdir=/var/run/samba --with-statedir=/var/lib/samba --with-cachedir=/var/cache/samba && make -j4 && make install && rm -rf /samba-$SAMBA_VERSION* | ||
COPY nsswitch.conf /etc/nsswitch.conf | ||
COPY named.conf /etc/named.conf | ||
COPY files/ / | ||
RUN chown named:named /etc/named.conf && echo 'OPTIONS="-4"' >> /etc/sysconfig/named | ||
RUN ln -s /usr/lib/libnss_winbind.so.2 /lib64/ && ln -s /lib64/libnss_winbind.so.2 /lib64/libnss_winbind.so && ldconfig && ldconfig && rm -rf /etc/samba/smb.conf | ||
ADD entrypoint.sh /entrypoint/entrypoint.sh | ||
COPY supervisord* /entrypoint/ | ||
COPY krb5.conf /entrypoint/ | ||
RUN chmod +x /entrypoint/entrypoint.sh | ||
ENTRYPOINT ["/entrypoint/entrypoint.sh"] | ||
CMD ["samba"] | ||
CMD ["samba"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Record the rate at which the system clock gains/losses time. | ||
driftfile /var/lib/chrony/drift | ||
|
||
# Allow the system clock to be stepped in the first three updates | ||
# if its offset is larger than 1 second. | ||
makestep 1.0 3 | ||
|
||
# Enable kernel synchronization of the real-time clock (RTC). | ||
rtcsync | ||
|
||
# Enable hardware timestamping on all interfaces that support it. | ||
#hwtimestamp * | ||
|
||
# Increase the minimum number of selectable sources required to adjust | ||
# the system clock. | ||
#minsources 2 | ||
|
||
# Allow NTP client access from local network. | ||
#allow 192.168.0.0/16 | ||
|
||
# Serve time even if not synchronized to a time source. | ||
#local stratum 10 | ||
|
||
# Specify file containing keys for NTP authentication. | ||
keyfile /etc/chrony.keys | ||
|
||
# Get TAI-UTC offset and leap seconds from the system tz database. | ||
leapsectz right/UTC | ||
|
||
# Specify directory for log files. | ||
logdir /var/log/chrony | ||
|
||
# Select which information is logged. | ||
#log measurements statistics tracking | ||
|
||
# Servers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Welcome to the chrony configuration file. See chrony.conf(5) for more | ||
# information about usuable directives. | ||
|
||
# This directive specify the location of the file containing ID/key pairs for | ||
# NTP authentication. | ||
keyfile /etc/chrony/chrony.keys | ||
|
||
# This directive specify the file into which chronyd will store the rate | ||
# information. | ||
driftfile /var/lib/chrony/chrony.drift | ||
|
||
# Uncomment the following line to turn logging on. | ||
#log tracking measurements statistics | ||
|
||
# Log files location. | ||
logdir /var/log/chrony | ||
|
||
# Stop bad estimates upsetting machine clock. | ||
maxupdateskew 100.0 | ||
|
||
# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the | ||
# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive. | ||
hwclockfile /etc/adjtime | ||
|
||
# This directive enables kernel synchronisation (every 11 minutes) of the | ||
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive. | ||
rtcsync | ||
|
||
# Step the system clock instead of slewing it if the adjustment is larger than | ||
# one second, but only in the first three clock updates. | ||
makestep 1 3 | ||
|
||
# Endereço IP do Servidor | ||
bindcmdaddress 0.0.0.0 | ||
|
||
# Servidores NTP | ||
server 0.br.pool.ntp.org iburst | ||
server 1.br.pool.ntp.org iburst | ||
server 2.br.pool.ntp.org iburst | ||
server 3.br.pool.ntp.org iburst | ||
|
||
# Libera para todas as máquinas | ||
allow 0.0.0.0/0 # dns netmask | ||
|
||
# Socket de conversão com o Samba4 | ||
ntpsigndsocket /var/lib/samba/ntp_signd/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# rsyslog configuration file | ||
|
||
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html | ||
# or latest version online at http://www.rsyslog.com/doc/rsyslog_conf.html | ||
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html | ||
|
||
#### MODULES #### | ||
|
||
module(load="imuxsock" # provides support for local system logging (e.g. via logger command) | ||
SysSock.Use="on") # Turn off message reception via local log socket; | ||
# local messages are retrieved through imjournal now. | ||
#module(load="imjournal" # provides access to the systemd journal | ||
# StateFile="imjournal.state") # File to store the position in the journal | ||
#module(load="imklog") # reads kernel messages (the same are read from journald) | ||
#module(load="immark") # provides --MARK-- message capability | ||
|
||
# Provides UDP syslog reception | ||
# for parameters see http://www.rsyslog.com/doc/imudp.html | ||
#module(load="imudp") # needs to be done just once | ||
#input(type="imudp" port="514") | ||
|
||
# Provides TCP syslog reception | ||
# for parameters see http://www.rsyslog.com/doc/imtcp.html | ||
#module(load="imtcp") # needs to be done just once | ||
#input(type="imtcp" port="514") | ||
|
||
#### GLOBAL DIRECTIVES #### | ||
|
||
# Where to place auxiliary files | ||
global(workDirectory="/var/lib/rsyslog") | ||
|
||
# Use default timestamp format | ||
module(load="builtin:omfile" Template="RSYSLOG_TraditionalFileFormat") | ||
|
||
# Include all config files in /etc/rsyslog.d/ | ||
include(file="/etc/rsyslog.d/*.conf" mode="optional") | ||
|
||
#### RULES #### | ||
|
||
# Log all kernel messages to the console. | ||
# Logging much else clutters up the screen. | ||
#kern.* /dev/console | ||
|
||
|
||
local5.* /var/log/samba/audit.log | ||
#*.* /var/log/messages | ||
#mail.* /var/log/mail | ||
|
||
# ### sample forwarding rule ### | ||
#action(type="omfwd" | ||
# An on-disk queue is created for this action. If the remote host is | ||
# down, messages are spooled to disk and sent when it is up again. | ||
#queue.filename="fwdRule1" # unique name prefix for spool files | ||
#queue.maxdiskspace="1g" # 1gb space limit (use as much as possible) | ||
#queue.saveonshutdown="on" # save messages to disk on shutdown | ||
#queue.type="LinkedList" # run asynchronously | ||
#action.resumeRetryCount="-1" # infinite retries if host is down | ||
# Remote Logging (we use TCP for reliable delivery) | ||
# remote_host is: name/ip, e.g. 192.168.0.1, port optional e.g. 10514 | ||
#Target="remote_host" Port="XXX" Protocol="tcp") |
Oops, something went wrong.