main #3

Merged
Lermer merged 35 commits from main into dev 2022-07-28 06:59:08 +02:00
7 changed files with 89 additions and 47 deletions

View file

@ -4,14 +4,15 @@ FROM $BUILD_FROM
# Install requirements for add-on
RUN \
apk add --no-cache \
python3
# Python 3 HTTP Server serves the current working dir
# So let's set it to our add-on persistent data directory.
WORKDIR /data
example_alpine_package
# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
CMD [ "/run.sh" ]
LABEL \
io.hass.version="VERSION" \
io.hass.type="addon" \
io.hass.arch="armhf|aarch64|i386|amd64"

View file

@ -1,27 +1,11 @@
name: "Hello world test addon"
description: "My first real add-on!"
version: "0.0.2"
version: "0.0.3"
slug: "hello_world!!"
init: false
arch:
# - aarch64
- aarch64
- amd64
# - armhf
# - armv7
# - i386
startup: before
ports:
8000/tcp: 8000
options:
beer: true
wine: true
liquor: false
name: "world"
year: 2017
schema:
beer: bool
wine: bool
liquor: bool
name: str
year: int
- armhf
- armv7
- i386

View file

@ -1,5 +1,3 @@
#!/usr/bin/with-contenv bashio
echo "Hello world!"
python3 -m http.server 8000
echo "Hello world!"

View file

@ -1,4 +1,4 @@
# Hass-addon-Seafile-sync
# Hass-addons
[![License][license-shield]](LICENSE)
![Project Stage][project-stage-shield]

View file

@ -1,9 +1,10 @@
docker run \
--rm \
--privileged \
-v ~/.docker:/root/.docker \
homeassistant/amd64-builder \
--all \
-t addon-folder \
-r https://github.com/xy/addons \
-b branchname
# https://gitlab.com/flwgns-docker/seafile-client/
FROM flowgunso/seafile-client:latest
ENV \
SEAF_SERVER_URL="SERVER_URL" \
SEAF_USERNAME="USERNAME" \
SEAF_PASSWORD="PASSWORD" \
SEAF_LIBRARY_UUID="LIBRARY_UUID" \
SEAF_SKIP_SSL_CERT="SKIP_SSL_CERT"

View file

@ -1 +1,42 @@
# Bla
# Seafile Sync
[![License][license-shield]](LICENSE)
![Project Stage][project-stage-shield]
This is a concept. Do not use!!!!
Conbinatie van:
https://github.com/hassio-addons/addon-example
https://gitlab.com/flwgns-docker/seafile-client
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
[commits-shield]: https://img.shields.io/github/commit-activity/y/hassio-addons/addon-example.svg
[commits]: https://github.com/hassio-addons/addon-example/commits/main
[contributors]: https://github.com/hassio-addons/addon-example/graphs/contributors
[discord-ha]: https://discord.gg/c5DvZ4e
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg
[discord]: https://discord.me/hassioaddons
[docs]: https://github.com/hassio-addons/addon-example/blob/main/example/DOCS.md
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/t/repository-community-hass-io-add-ons/24705?u=frenck
[frenck]: https://github.com/frenck
[github-actions-shield]: https://github.com/hassio-addons/addon-example/workflows/CI/badge.svg
[github-actions]: https://github.com/hassio-addons/addon-example/actions
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/frenck
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
[issue]: https://github.com/hassio-addons/addon-example/issues
[license-shield]: https://img.shields.io/github/license/hassio-addons/addon-example.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png
[patreon]: https://www.patreon.com/frenck
[project-stage-shield]: https://img.shields.io/badge/project%20stage-concept-red.svg
[reddit]: https://reddit.com/r/homeassistant
[releases-shield]: https://img.shields.io/github/release/hassio-addons/addon-example.svg
[releases]: https://git.lermer.nl/Mathijs/Hass-addon-Seafile-sync/releases
[repository]: https://github.com/hassio-addons/repository

View file

@ -1,11 +1,28 @@
name: "Seafile sync"
description: "My first real add-on!"
version: "0.0.1"
slug: "hello_world"
version: "0.0.02"
slug: "seafile_test"
url: https://git.lermer.nl/Mathijs/Hass-addons/src/branch/main/seafile_sync
init: false
boot: manual
startup: once
arch:
# - aarch64
- amd64
# - armhf
# - armv7
# - i386
map:
- "config:ro"
host_network: true
options:
SERVER_URL: https://example.com
USERNAME: name of user
PASSWORD: 1234
LIBRARY_UUID: 0000
SKIP_SSL_CERT: true
schema:
SERVER_URL: str
USERNAME: str
PASSWORD: password
LIBRARY_UUID: password
SKIP_SSL_CERT: str
#volumes:
# - /config:/library:ro