mirror of
https://github.com/sudoxnym/exiles-ankerctl-hassio-addons.git
synced 2026-04-14 11:36:23 +00:00
WIP: initial commit
This commit is contained in:
commit
7ad9cfed24
5 changed files with 83 additions and 0 deletions
24
.devcontainer/devcontainer.json
Normal file
24
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"name": "Example devcontainer for add-on repositories",
|
||||||
|
"image": "ghcr.io/home-assistant/devcontainer:addons",
|
||||||
|
"appPort": ["7123:8123", "7357:4357"],
|
||||||
|
"postStartCommand": "sudo -E bash devcontainer_bootstrap",
|
||||||
|
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
|
||||||
|
"containerEnv": {
|
||||||
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||||
|
},
|
||||||
|
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
|
||||||
|
"mounts": ["type=volume,target=/var/lib/docker"],
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.profiles.linux": {
|
||||||
|
"zsh": {
|
||||||
|
"path": "/usr/bin/zsh"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
||||||
|
"editor.formatOnPaste": false,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true,
|
||||||
|
"files.trimTrailingWhitespace": true
|
||||||
|
}
|
||||||
|
}
|
||||||
19
.vscode/tasks.json
vendored
Normal file
19
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Start Home Assistant",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "sudo chmod a+x /usr/bin/supervisor* && sudo -E supervisor_run",
|
||||||
|
"group": {
|
||||||
|
"kind": "test",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "new"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#################
|
||||||
|
# 1 Build Image #
|
||||||
|
#################
|
||||||
|
ARG BUILD_FROM
|
||||||
|
ARG BUILD_VERSION
|
||||||
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
|
##################
|
||||||
|
# 2 Modify Image #
|
||||||
|
##################
|
||||||
|
|
||||||
|
# Set S6 wait time
|
||||||
|
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||||
|
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||||
|
S6_SERVICES_GRACETIME=0 \
|
||||||
|
FLASK_HOST=0.0.0.0 \
|
||||||
|
FLASK_PORT=4470
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.version=${BUILD_VERSION}
|
||||||
9
build.yaml
Normal file
9
build.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
build_from:
|
||||||
|
aarch64: "ghcr.io/kvanzuijlen/ankerctl:v1.0.0"
|
||||||
|
amd64: "ghcr.io/kvanzuijlen/ankerctl:v1.0.0"
|
||||||
|
armv7: "ghcr.io/kvanzuijlen/ankerctl:v1.0.0"
|
||||||
|
labels:
|
||||||
|
org.opencontainers.image.title: "Home Assistant Add-on: AnkerCTL"
|
||||||
|
org.opencontainers.image.description: "AnkerCTL"
|
||||||
|
org.opencontainers.image.source: "https://github.com/AnkerMGMT/AnkerMGMT-homeassistant-addons"
|
||||||
|
org.opencontainers.image.licenses: "Apache License 2.0"
|
||||||
12
config.yaml
Normal file
12
config.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
name: "AnkerCTL"
|
||||||
|
description: "The official AnkerCTL addon"
|
||||||
|
version: "1.0.0-5"
|
||||||
|
slug: "ankerctl"
|
||||||
|
ingress: true
|
||||||
|
ingress_port: 4470
|
||||||
|
ingress_stream: true
|
||||||
|
init: false
|
||||||
|
arch:
|
||||||
|
- aarch64
|
||||||
|
- amd64
|
||||||
|
- armv7
|
||||||
Loading…
Reference in a new issue