mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
add samba-arm
This commit is contained in:
22
samba/arm/Dockerfile
Normal file
22
samba/arm/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# Dockerfile for samba-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add -U samba-common-tools samba-server \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY smb.conf /etc/samba/
|
||||
|
||||
VOLUME /etc/samba \
|
||||
/var/lib/samba
|
||||
|
||||
EXPOSE 137/udp \
|
||||
138/udp \
|
||||
139/tcp \
|
||||
445/tcp
|
||||
|
||||
CMD nmbd -D && smbd -FS
|
||||
8
samba/arm/docker-compose.yml
Normal file
8
samba/arm/docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
samba:
|
||||
image: easypi/samba-arm
|
||||
volumes:
|
||||
- ./smb.conf:/etc/samba/smb.conf
|
||||
- /mnt/usb:/share
|
||||
net: host
|
||||
tty: yes
|
||||
restart: always
|
||||
9
samba/arm/mnt-usb.mount
Normal file
9
samba/arm/mnt-usb.mount
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=USB Storage Mount
|
||||
|
||||
[Mount]
|
||||
What=/dev/disk/by-uuid/829B-2038
|
||||
Where=/mnt/usb
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
33
samba/arm/smb.conf
Normal file
33
samba/arm/smb.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
[global]
|
||||
netbios name = easypi
|
||||
workgroup = WORKGROUP
|
||||
server string = EasyPi Samba Server
|
||||
dns proxy = no
|
||||
log file = /var/log/samba/log.%m
|
||||
max log size = 1000
|
||||
syslog = 0
|
||||
panic action = /usr/share/samba/panic-action %d
|
||||
server role = standalone server
|
||||
passdb backend = tdbsam
|
||||
obey pam restrictions = yes
|
||||
unix password sync = yes
|
||||
passwd program = /usr/bin/passwd %u
|
||||
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
|
||||
pam password change = yes
|
||||
map to guest = bad user
|
||||
usershare allow guests = yes
|
||||
printcap name = /dev/null
|
||||
load printers = no
|
||||
|
||||
[homes]
|
||||
comment = Home Directories
|
||||
browseable = no
|
||||
writable = yes
|
||||
|
||||
[share]
|
||||
path = /share
|
||||
browseable = yes
|
||||
read only = no
|
||||
guest ok = yes
|
||||
admin users = root
|
||||
root preexec = mkdir -p /share
|
||||
23
samba/arm/smb.conf.sample
Normal file
23
samba/arm/smb.conf.sample
Normal file
@@ -0,0 +1,23 @@
|
||||
[global]
|
||||
netbios name = easypi
|
||||
workgroup = WORKGROUP
|
||||
server string = EasyPi Samba Server
|
||||
server role = standalone
|
||||
map to guest = Bad User
|
||||
usershare allow guests = yes
|
||||
printcap name = /dev/null
|
||||
load printers = no
|
||||
|
||||
[homes]
|
||||
comment = Home Directories
|
||||
browseable = no
|
||||
writable = yes
|
||||
|
||||
[share]
|
||||
comment = Public File Sharing
|
||||
path = /share
|
||||
browseable = yes
|
||||
writable = yes
|
||||
guest ok = yes
|
||||
admin users = root
|
||||
root preexec = mkdir -p /share
|
||||
Reference in New Issue
Block a user