diff --git a/zzz_draft_overleaf/CHANGELOG.md b/zzz_draft_overleaf/CHANGELOG.md deleted file mode 100644 index ef41893d6..000000000 --- a/zzz_draft_overleaf/CHANGELOG.md +++ /dev/null @@ -1,25 +0,0 @@ - -## 0.2.1 (02-03-2024) - -- Minor bugs fixed - -## 0.2.0 (10-02-2024) - -- Update to latest version from sharelatex/sharelatex -## 0.1 (05-02-2024) - -- Minor bugs fixed - -## 0.0.98 (15-04-2023) - -- Update to latest version from chrisleekr/binance-trading-bot - -## 0.0.97 (24-03-2023) - -- Update to latest version from chrisleekr/binance-trading-bot -- Implemented healthcheck - -## 0.0.96 (04-03-2023) - -- Update to latest version from chrisleekr/binance-trading-bot -- First version diff --git a/zzz_draft_overleaf/Dockerfile b/zzz_draft_overleaf/Dockerfile deleted file mode 100644 index 3bb356fbf..000000000 --- a/zzz_draft_overleaf/Dockerfile +++ /dev/null @@ -1,131 +0,0 @@ -#============================# -# ALEXBELGIUM'S DOCKERFILE # -#============================# -# _.------. -# _.-` ('>.-`"""-. -# '.--'` _'` _ .--.) -# -' '-.-';` ` -# ' - _.' ``'--. -# '---` .-'""` -# /` -#=== Home Assistant Addon ===# - -################# -# 1 Build Image # -################# - -ARG BUILD_VERSION -ARG BUILD_UPSTREAM="0.2.0" -ARG BUILD_FROM -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 - -SHELL ["/bin/bash", "-o", "pipefail", "-c"] - -# Switch data location to /config -RUN if [ -f /config/settings.js ]; then sed -i "s|/var/lib/sharelatex/data|/config|g" /config/settings.js; fi && \ - if [ -f /etc/sharelatex/settings.js ]; then sed -i "s|/var/lib/sharelatex/data|/config|g" /etc/sharelatex/settings.js; fi - -RUN \ - apt-get install -y gnupg curl && \ - curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \ - gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \ - --dearmor && \ - echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ - apt-get update && \ - apt-get install -y mongodb-org - -################## -# 3 Install apps # -################## - -# Copy local files -COPY rootfs/ / - -# Uses /bin for compatibility purposes -# hadolint ignore=DL4005 -RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \ - if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi - -# Modules -ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh" - -# Automatic modules download -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh" -RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh - -# Manual apps -ENV PACKAGES="sudo redis nginx" - -# Automatic apps & bashio -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh" -RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh - -################ -# 4 Entrypoint # -################ - -# Add entrypoint -ENV S6_STAGE2_HOOK=/ha_entrypoint.sh -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" - -# Entrypoint modifications -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh" -RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh - -VOLUME [ "/data" ] -WORKDIR / - -ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/ha_entrypoint.sh" ] - -############ -# 5 Labels # -############ - -ARG BUILD_ARCH -ARG BUILD_DATE -ARG BUILD_DESCRIPTION -ARG BUILD_NAME -ARG BUILD_REF -ARG BUILD_REPOSITORY -ARG BUILD_VERSION -LABEL \ - io.hass.name="${BUILD_NAME}" \ - io.hass.description="${BUILD_DESCRIPTION}" \ - io.hass.arch="${BUILD_ARCH}" \ - io.hass.type="addon" \ - io.hass.version=${BUILD_VERSION} \ - maintainer="alexbelgium (https://github.com/alexbelgium)" \ - org.opencontainers.image.title="${BUILD_NAME}" \ - org.opencontainers.image.description="${BUILD_DESCRIPTION}" \ - org.opencontainers.image.vendor="Home Assistant Add-ons" \ - org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \ - org.opencontainers.image.licenses="MIT" \ - org.opencontainers.image.url="https://github.com/alexbelgium" \ - org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ - org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ - org.opencontainers.image.created=${BUILD_DATE} \ - org.opencontainers.image.revision=${BUILD_REF} \ - org.opencontainers.image.version=${BUILD_VERSION} - -################# -# 6 Healthcheck # -################# - -ENV HEALTH_PORT="80" \ - HEALTH_URL="" -HEALTHCHECK \ - --interval=5s \ - --retries=5 \ - --start-period=30s \ - --timeout=25s \ - CMD curl --fail "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 diff --git a/zzz_draft_overleaf/README.md b/zzz_draft_overleaf/README.md deleted file mode 100644 index 09b285b43..000000000 --- a/zzz_draft_overleaf/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# Home assistant add-on: Overleaf - -[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium) - -![Version](https://img.shields.io/badge/dynamic/json?label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Ffilebrowser%2Fconfig.json) -![Ingress](https://img.shields.io/badge/dynamic/json?label=Ingress&query=%24.ingress&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Ffilebrowser%2Fconfig.json) -![Arch](https://img.shields.io/badge/dynamic/json?color=success&label=Arch&query=%24.arch&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Ffilebrowser%2Fconfig.json) - -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9c6cf10bdbba45ecb202d7f579b5be0e)](https://www.codacy.com/gh/alexbelgium/hassio-addons/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexbelgium/hassio-addons&utm_campaign=Badge_Grade) -[![GitHub Super-Linter](https://img.shields.io/github/actions/workflow/status/alexbelgium/hassio-addons/weekly-supelinter.yaml?label=Lint%20code%20base)](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml) -[![Builder](https://img.shields.io/github/actions/workflow/status/alexbelgium/hassio-addons/onpush_builder.yaml?label=Builder)](https://github.com/alexbelgium/hassio-addons/actions/workflows/onpush_builder.yaml) - -[donation-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white - -_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_ - -[![Stargazers repo roster for @alexbelgium/hassio-addons](https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.github/stars2.svg)](https://github.com/alexbelgium/hassio-addons/stargazers) - -![downloads evolution](https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/binance-trading-bot/stats.png) - -## About - -Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis. -This addon is based on https://github.com/chrisleekr/binance-trading-bot. - -This is a test app ; for any issues please contact the link above. - -## Configuration - -Webui can be found at . -Please see https://github.com/chrisleekr/binance-trading-bot for configuration. - -## Installation - -The installation of this add-on is pretty straightforward and not different in -comparison to installing any other Hass.io add-on. - -1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance. -1. Install this add-on. -1. Click the `Save` button to store your configuration. -1. Start the add-on. -1. Check the logs of the add-on to see if everything went well. -1. Carefully configure the add-on to your preferences, see the official documentation for for that. - -[repository]: https://github.com/alexbelgium/hassio-addons -[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg -[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg -[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg diff --git a/zzz_draft_overleaf/apparmor.txt b/zzz_draft_overleaf/apparmor.txt deleted file mode 100644 index 93d13b450..000000000 --- a/zzz_draft_overleaf/apparmor.txt +++ /dev/null @@ -1,66 +0,0 @@ -#include - -profile db21ed7f_binance-trading-bot flags=(attach_disconnected,mediate_deleted) { - #include - - capability, - file, - signal, - mount, - umount, - remount, - network udp, - network tcp, - network dgram, - network stream, - network inet, - network inet6, - network netlink raw, - network unix dgram, - - capability setgid, - capability setuid, - capability sys_admin, - capability dac_read_search, - # capability dac_override, - # capability sys_rawio, - -# S6-Overlay - /init ix, - /run/{s6,s6-rc*,service}/** ix, - /package/** ix, - /command/** ix, - /run/{,**} rwk, - /dev/tty rw, - /bin/** ix, - /usr/bin/** ix, - /usr/lib/bashio/** ix, - /etc/s6/** rix, - /run/s6/** rix, - /etc/services.d/** rwix, - /etc/cont-init.d/** rwix, - /etc/cont-finish.d/** rwix, - /init rix, - /var/run/** mrwkl, - /var/run/ mrwkl, - /dev/i2c-1 mrwkl, - # Files required - /dev/fuse mrwkl, - /dev/sda1 mrwkl, - /dev/sdb1 mrwkl, - /dev/nvme0 mrwkl, - /dev/nvme1 mrwkl, - /dev/mmcblk0p1 mrwkl, - /dev/* mrwkl, - /tmp/** mrkwl, - - # Data access - /data/** rw, - - # suppress ptrace denials when using 'docker ps' or using 'ps' inside a container - ptrace (trace,read) peer=docker-default, - - # docker daemon confinement requires explict allow rule for signal - signal (receive) set=(kill,term) peer=/usr/bin/docker, - -} diff --git a/zzz_draft_overleaf/build.json b/zzz_draft_overleaf/build.json deleted file mode 100644 index 47407ce7b..000000000 --- a/zzz_draft_overleaf/build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "build_from": { - "amd64": "sharelatex/sharelatex:latest" - }, - "codenotary": { - "signer": "alexandrep.github@gmail.com" - } -} diff --git a/zzz_draft_overleaf/config.json b/zzz_draft_overleaf/config.json deleted file mode 100644 index 9e170cd99..000000000 --- a/zzz_draft_overleaf/config.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "arch": [ - "amd64" - ], - "codenotary": "alexandrep.github@gmail.com", - "description": "web-based collaborative LaTeX editor", - "environment": { - "REDIS_HOST": "localhost", - "REDIS_PASSWORD": "", - "REDIS_PORT": "6379", - "SHARELATEX_MONGO_URL": "mongodb://mongo/sharelatex", - "SHARELATEX_REDIS_HOST": "redis", - "TEXMFVAR": "/var/lib/sharelatex/tmp/texmf-var" - }, - "image": "ghcr.io/alexbelgium/overleaf-{arch}", - "map": [ - "addon_config:rw" - ], - "name": "DO NOT USE Overleaf", - "options": { - "EMAIL_CONFIRMATION_DISABLED": "true", - "ENABLED_LINKED_FILE_TYPES": "url,project_file", - "ENABLE_CONVERSIONS": "true", - "SHARELATEX_APP_NAME": "Overleaf Community Edition" - }, - "panel_icon": "mdi:bitcoin", - "ports": { - "80/tcp": 80 - }, - "ports_description": { - "80/tcp": "Web UI port" - }, - "schema": { - "EMAIL_CONFIRMATION_DISABLED": "bool", - "ENABLED_LINKED_FILE_TYPES": "str", - "ENABLE_CONVERSIONS": "bool", - "SHARELATEX_APP_NAME": "str" - }, - "slug": "overleaf", - "url": "https://github.com/alexbelgium/hassio-addons", - "version": "0.2.1", - "webui": "http://[HOST]:[PORT:80]" -} diff --git a/zzz_draft_overleaf/icon.png b/zzz_draft_overleaf/icon.png deleted file mode 100644 index 9926c05f6..000000000 Binary files a/zzz_draft_overleaf/icon.png and /dev/null differ diff --git a/zzz_draft_overleaf/logo.png b/zzz_draft_overleaf/logo.png deleted file mode 100644 index 9926c05f6..000000000 Binary files a/zzz_draft_overleaf/logo.png and /dev/null differ diff --git a/zzz_draft_overleaf/rootfs/etc/cont-init.d/20-folders.sh b/zzz_draft_overleaf/rootfs/etc/cont-init.d/20-folders.sh deleted file mode 100755 index dcf5ff0f9..000000000 --- a/zzz_draft_overleaf/rootfs/etc/cont-init.d/20-folders.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/with-contenv bashio -# shellcheck shell=bash -set -e - -if [ -d /config/binance-trading-bot ]; then - echo "Moving to new location /config/addons_config/binance-trading-bot" - mkdir -p /config/addons_config/binance-trading-bot - chmod 777 /config/addons_config/binance-trading-bot - mv /config/binance-trading-bot/* /config/addons_config/binance-trading-bot/ - rm -r /config/binance-trading-bot -fi - -if [ ! -d /config/addons_config/binance-trading-bot ]; then - echo "Creating /config/addons_config/binance-trading-bot" - mkdir -p /config/addons_config/binance-trading-bot - chmod 777 /config/addons_config/binance-trading-bot -fi diff --git a/zzz_draft_overleaf/rootfs/etc/cont-init.d/99-run.sh b/zzz_draft_overleaf/rootfs/etc/cont-init.d/99-run.sh deleted file mode 100755 index c22bc77ec..000000000 --- a/zzz_draft_overleaf/rootfs/etc/cont-init.d/99-run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bashio -# shellcheck shell=bash -set -e - -############## -# Export env # -############## - -################## -# Starting redis # -################## -exec redis-server & bashio::log.info "Starting redis" - -#################### -# Starting mongodb # -#################### -mkdir -p /data/db -exec mongod --bind_ip 127.0.0.1 & bashio::log.info "Starting mongod" - -################ -# Starting app # -################ -bashio::log.info "Starting overleaf" -/./sbin/my_init - -################## -# Starting nginx # -################## -#nginx diff --git a/zzz_draft_overleaf/stats.png b/zzz_draft_overleaf/stats.png deleted file mode 100644 index 98d1602e2..000000000 Binary files a/zzz_draft_overleaf/stats.png and /dev/null differ diff --git a/zzz_draft_overleaf/updater.json b/zzz_draft_overleaf/updater.json deleted file mode 100644 index 869987f40..000000000 --- a/zzz_draft_overleaf/updater.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "last_update": "10-02-2024", - "repository": "alexbelgium/hassio-addons", - "slug": "overleaf", - "source": "github", - "upstream_repo": "sharelatex/sharelatex", - "upstream_version": "0.2.0" -}