WIP: initial commit

This commit is contained in:
kvanzuijlen 2023-05-23 13:06:09 +00:00
commit 7ad9cfed24
5 changed files with 83 additions and 0 deletions

View 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
View 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
View 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
View 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
View 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