samba: Collection of small improvements (#913)

* samba: Move data files into data folder

* samba: Prettier YAML & JSON files

* samba: Update add-on URL

* samba: Remove curl from Dockerfile, already in the base image
This commit is contained in:
Franck Nijhof
2019-12-19 13:18:05 +01:00
committed by Pascal Vizeli
parent e1ad9ae2ac
commit 6ce3006a72
5 changed files with 16 additions and 44 deletions

View File

@@ -6,12 +6,11 @@ ENV LANG C.UTF-8
# Setup base
RUN apk add --no-cache \
curl \
samba-common-tools \
samba-server
# Copy data
COPY run.sh /
COPY smb.conf /etc/
COPY data/run.sh /
COPY data/smb.conf /etc/
CMD [ "/run.sh" ]

View File

@@ -3,20 +3,19 @@
trigger:
branches:
include:
- master
- master
paths:
include:
- samba/*
- samba/*
pr: none
variables:
- name: versionBuilder
value: '2.0'
value: "2.0"
- group: docker
jobs:
- template: /.azure/azp-template-addon.yml
parameters:
addon: 'samba'
arch: '--all'
- template: /.azure/azp-template-addon.yml
parameters:
addon: "samba"
arch: "--all"

View File

@@ -3,53 +3,27 @@
"version": "9.0",
"slug": "samba",
"description": "Expose Hass.io folders with SMB/CIFS",
"url": "https://home-assistant.io/addons/samba/",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"url": "https://github.com/home-assistant/hassio-addons/tree/master/samba",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "services",
"boot": "auto",
"host_network": true,
"map": [
"config:rw",
"ssl:rw",
"addons:rw",
"share:rw",
"backup:rw"
],
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "backup:rw"],
"options": {
"workgroup": "WORKGROUP",
"username": "hassio",
"password": null,
"interface": "",
"allow_hosts": [
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16"
],
"veto_files": [
"._*",
".DS_Store",
"Thumbs.db",
"icon?",
".Trashes"
]
"allow_hosts": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"],
"veto_files": ["._*", ".DS_Store", "Thumbs.db", "icon?", ".Trashes"]
},
"schema": {
"workgroup": "str",
"username": "str",
"password": "str",
"interface": "str",
"allow_hosts": [
"str"
],
"veto_files": [
"str"
]
"allow_hosts": ["str"],
"veto_files": ["str"]
},
"image": "homeassistant/{arch}-addon-samba"
}