Migrate JSON config to YAML (#153)

This commit is contained in:
Franck Nijhof 2021-11-09 18:36:59 +01:00 committed by GitHub
parent 35b96a7b3c
commit 65568228db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 40 deletions

View file

@ -1,6 +0,0 @@
{
"build_from": {
"aarch64": "ghcr.io/hassio-addons/base/aarch64:10.1.0",
"amd64": "ghcr.io/hassio-addons/base/amd64:10.1.0"
}
}

4
traccar/build.yaml Normal file
View file

@ -0,0 +1,4 @@
---
build_from:
aarch64: ghcr.io/hassio-addons/base/aarch64:10.1.0
amd64: ghcr.io/hassio-addons/base/amd64:10.1.0

View file

@ -1,34 +0,0 @@
{
"name": "Traccar",
"version": "dev",
"slug": "traccar",
"description": "Modern GPS Tracking Platform",
"url": "https://github.com/hassio-addons/addon-traccar",
"ingress": true,
"ingress_port": 0,
"ingress_stream": true,
"panel_icon": "mdi:car-connected",
"startup": "services",
"arch": ["aarch64", "amd64"],
"init": false,
"host_network": true,
"ports": {
"80/tcp": null
},
"ports_description": {
"80/tcp": "Web interface (Not required for Ingress)"
},
"map": ["config:rw", "ssl"],
"services": ["mysql:want"],
"options": {
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
},
"schema": {
"log_level": "list(trace|debug|info|notice|warning|error|fatal)?",
"ssl": "bool",
"certfile": "str",
"keyfile": "str"
}
}

34
traccar/config.yaml Normal file
View file

@ -0,0 +1,34 @@
---
name: Traccar
version: dev
slug: traccar
description: Modern GPS Tracking Platform
url: https://github.com/hassio-addons/addon-traccar
ingress: true
ingress_port: 0
ingress_stream: true
panel_icon: mdi:car-connected
startup: services
arch:
- aarch64
- amd64
init: false
host_network: true
ports:
80/tcp: null
ports_description:
80/tcp: Web interface (Not required for Ingress)
map:
- config:rw
- ssl
services:
- mysql:want
options:
ssl: true
certfile: fullchain.pem
keyfile: privkey.pem
schema:
log_level: list(trace|debug|info|notice|warning|error|fatal)?
ssl: bool
certfile: str
keyfile: str