Dockerfile set the options needed for timemachine #159

This commit is contained in:
David Personette 2018-09-23 15:29:02 -04:00
parent 512df7ff2b
commit 0cbe425ef6
4 changed files with 71 additions and 6 deletions

View File

@ -31,10 +31,27 @@ RUN apk --no-cache --no-progress upgrade && \
echo ' disable spoolss = yes' >>$file && \
echo ' socket options = TCP_NODELAY' >>$file && \
echo ' strict locking = no' >>$file && \
echo ' vfs objects = recycle' >>$file && \
echo ' vfs objects = acl_xattr fruit recycle' >>$file && \
echo ' recycle:keeptree = yes' >>$file && \
echo ' recycle:versions = yes' >>$file && \
echo ' min protocol = SMB2' >>$file && \
echo '' >>$file && \
echo ' # Security' >>$file && \
echo ' client ipc max protocol = default' >>$file && \
echo ' client max protocol = default' >>$file && \
echo ' server max protocol = SMB3' >>$file && \
echo ' client ipc min protocol = default' >>$file && \
echo ' client min protocol = CORE' >>$file && \
echo ' server min protocol = SMB2' >>$file && \
echo '' >>$file && \
echo ' # Time Machine' >>$file && \
echo ' durable handles = yes' >>$file && \
echo ' kernel oplocks = no' >>$file && \
echo ' kernel share modes = no' >>$file && \
echo ' posix locking = no' >>$file && \
echo ' fruit:aapl = yes' >>$file && \
echo ' fruit:advertise_fullsync = true' >>$file && \
echo ' fruit:time machine = yes' >>$file && \
echo ' smb2 leases = yes' >>$file && \
echo '' >>$file && \
rm -rf /tmp/*

View File

@ -32,10 +32,27 @@ RUN apk --no-cache --no-progress upgrade && \
echo ' disable spoolss = yes' >>$file && \
echo ' socket options = TCP_NODELAY' >>$file && \
echo ' strict locking = no' >>$file && \
echo ' vfs objects = recycle' >>$file && \
echo ' vfs objects = acl_xattr fruit recycle' >>$file && \
echo ' recycle:keeptree = yes' >>$file && \
echo ' recycle:versions = yes' >>$file && \
echo ' min protocol = SMB2' >>$file && \
echo '' >>$file && \
echo ' # Security' >>$file && \
echo ' client ipc max protocol = default' >>$file && \
echo ' client max protocol = default' >>$file && \
echo ' server max protocol = SMB3' >>$file && \
echo ' client ipc min protocol = default' >>$file && \
echo ' client min protocol = CORE' >>$file && \
echo ' server min protocol = SMB2' >>$file && \
echo '' >>$file && \
echo ' # Time Machine' >>$file && \
echo ' durable handles = yes' >>$file && \
echo ' kernel oplocks = no' >>$file && \
echo ' kernel share modes = no' >>$file && \
echo ' posix locking = no' >>$file && \
echo ' fruit:aapl = yes' >>$file && \
echo ' fruit:advertise_fullsync = true' >>$file && \
echo ' fruit:time machine = yes' >>$file && \
echo ' smb2 leases = yes' >>$file && \
echo '' >>$file && \
rm -rf /tmp/*
RUN ["cross-build-end"]

View File

@ -32,10 +32,27 @@ RUN apk --no-cache --no-progress upgrade && \
echo ' disable spoolss = yes' >>$file && \
echo ' socket options = TCP_NODELAY' >>$file && \
echo ' strict locking = no' >>$file && \
echo ' vfs objects = recycle' >>$file && \
echo ' vfs objects = acl_xattr fruit recycle' >>$file && \
echo ' recycle:keeptree = yes' >>$file && \
echo ' recycle:versions = yes' >>$file && \
echo ' min protocol = SMB2' >>$file && \
echo '' >>$file && \
echo ' # Security' >>$file && \
echo ' client ipc max protocol = default' >>$file && \
echo ' client max protocol = default' >>$file && \
echo ' server max protocol = SMB3' >>$file && \
echo ' client ipc min protocol = default' >>$file && \
echo ' client min protocol = CORE' >>$file && \
echo ' server min protocol = SMB2' >>$file && \
echo '' >>$file && \
echo ' # Time Machine' >>$file && \
echo ' durable handles = yes' >>$file && \
echo ' kernel oplocks = no' >>$file && \
echo ' kernel share modes = no' >>$file && \
echo ' posix locking = no' >>$file && \
echo ' fruit:aapl = yes' >>$file && \
echo ' fruit:advertise_fullsync = true' >>$file && \
echo ' fruit:time machine = yes' >>$file && \
echo ' smb2 leases = yes' >>$file && \
echo '' >>$file && \
rm -rf /tmp/*
RUN ["cross-build-end"]

View File

@ -0,0 +1,14 @@
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_adisk._tcp</type>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
<txt-record>dk0=adVN=Time Capsule,adVF=0x82</txt-record>
</service>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>