Skip to content

Commit

Permalink
Dockerfile set the options needed for timemachine #159
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Sep 23, 2018
1 parent 512df7f commit 0cbe425
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 6 deletions.
21 changes: 19 additions & 2 deletions Dockerfile
Expand Up @@ -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/*

Expand Down
21 changes: 19 additions & 2 deletions Dockerfile.aarch64
Expand Up @@ -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"]
Expand Down
21 changes: 19 additions & 2 deletions Dockerfile.armhf
Expand Up @@ -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"]
Expand Down
14 changes: 14 additions & 0 deletions _etc_avahi_services_samba.service
@@ -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>

0 comments on commit 0cbe425

Please sign in to comment.