mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-19 06:04:21 +01:00
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:
committed by
Pascal Vizeli
parent
e1ad9ae2ac
commit
6ce3006a72
@@ -6,12 +6,11 @@ ENV LANG C.UTF-8
|
|||||||
|
|
||||||
# Setup base
|
# Setup base
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
curl \
|
|
||||||
samba-common-tools \
|
samba-common-tools \
|
||||||
samba-server
|
samba-server
|
||||||
|
|
||||||
# Copy data
|
# Copy data
|
||||||
COPY run.sh /
|
COPY data/run.sh /
|
||||||
COPY smb.conf /etc/
|
COPY data/smb.conf /etc/
|
||||||
|
|
||||||
CMD [ "/run.sh" ]
|
CMD [ "/run.sh" ]
|
||||||
|
|||||||
@@ -3,20 +3,19 @@
|
|||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
include:
|
include:
|
||||||
- samba/*
|
- samba/*
|
||||||
pr: none
|
pr: none
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- name: versionBuilder
|
- name: versionBuilder
|
||||||
value: '2.0'
|
value: "2.0"
|
||||||
- group: docker
|
- group: docker
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- template: /.azure/azp-template-addon.yml
|
- template: /.azure/azp-template-addon.yml
|
||||||
parameters:
|
parameters:
|
||||||
addon: 'samba'
|
addon: "samba"
|
||||||
arch: '--all'
|
arch: "--all"
|
||||||
|
|||||||
@@ -3,53 +3,27 @@
|
|||||||
"version": "9.0",
|
"version": "9.0",
|
||||||
"slug": "samba",
|
"slug": "samba",
|
||||||
"description": "Expose Hass.io folders with SMB/CIFS",
|
"description": "Expose Hass.io folders with SMB/CIFS",
|
||||||
"url": "https://home-assistant.io/addons/samba/",
|
"url": "https://github.com/home-assistant/hassio-addons/tree/master/samba",
|
||||||
"arch": [
|
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
|
||||||
"armhf",
|
|
||||||
"armv7",
|
|
||||||
"aarch64",
|
|
||||||
"amd64",
|
|
||||||
"i386"
|
|
||||||
],
|
|
||||||
"startup": "services",
|
"startup": "services",
|
||||||
"boot": "auto",
|
"boot": "auto",
|
||||||
"host_network": true,
|
"host_network": true,
|
||||||
"map": [
|
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "backup:rw"],
|
||||||
"config:rw",
|
|
||||||
"ssl:rw",
|
|
||||||
"addons:rw",
|
|
||||||
"share:rw",
|
|
||||||
"backup:rw"
|
|
||||||
],
|
|
||||||
"options": {
|
"options": {
|
||||||
"workgroup": "WORKGROUP",
|
"workgroup": "WORKGROUP",
|
||||||
"username": "hassio",
|
"username": "hassio",
|
||||||
"password": null,
|
"password": null,
|
||||||
"interface": "",
|
"interface": "",
|
||||||
"allow_hosts": [
|
"allow_hosts": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"],
|
||||||
"10.0.0.0/8",
|
"veto_files": ["._*", ".DS_Store", "Thumbs.db", "icon?", ".Trashes"]
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.168.0.0/16"
|
|
||||||
],
|
|
||||||
"veto_files": [
|
|
||||||
"._*",
|
|
||||||
".DS_Store",
|
|
||||||
"Thumbs.db",
|
|
||||||
"icon?",
|
|
||||||
".Trashes"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"workgroup": "str",
|
"workgroup": "str",
|
||||||
"username": "str",
|
"username": "str",
|
||||||
"password": "str",
|
"password": "str",
|
||||||
"interface": "str",
|
"interface": "str",
|
||||||
"allow_hosts": [
|
"allow_hosts": ["str"],
|
||||||
"str"
|
"veto_files": ["str"]
|
||||||
],
|
|
||||||
"veto_files": [
|
|
||||||
"str"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"image": "homeassistant/{arch}-addon-samba"
|
"image": "homeassistant/{arch}-addon-samba"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user