mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-24 05:26:28 +01:00
rename
This commit is contained in:
25
zzz_draft_overleaf/CHANGELOG.md
Normal file
25
zzz_draft_overleaf/CHANGELOG.md
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
## 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
|
||||
130
zzz_draft_overleaf/Dockerfile
Normal file
130
zzz_draft_overleaf/Dockerfile
Normal file
@@ -0,0 +1,130 @@
|
||||
#============================#
|
||||
# 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
|
||||
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
|
||||
49
zzz_draft_overleaf/README.md
Normal file
49
zzz_draft_overleaf/README.md
Normal file
@@ -0,0 +1,49 @@
|
||||
## ⚠ Open Request : [✨ [REQUEST] Overleaf (opened 2024-02-03)](https://github.com/alexbelgium/hassio-addons/issues/1226) by [@LoganJFisher](https://github.com/LoganJFisher)
|
||||
# Home assistant add-on: Overleaf
|
||||
|
||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
[](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)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml)
|
||||
[](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!_
|
||||
|
||||
[](https://github.com/alexbelgium/hassio-addons/stargazers)
|
||||
|
||||

|
||||
|
||||
## 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 <http://homeassistant:80>.
|
||||
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
|
||||
66
zzz_draft_overleaf/apparmor.txt
Normal file
66
zzz_draft_overleaf/apparmor.txt
Normal file
@@ -0,0 +1,66 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile db21ed7f_binance-trading-bot flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
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,
|
||||
|
||||
}
|
||||
8
zzz_draft_overleaf/build.json
Normal file
8
zzz_draft_overleaf/build.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"build_from": {
|
||||
"amd64": "sharelatex/sharelatex:latest"
|
||||
},
|
||||
"codenotary": {
|
||||
"signer": "alexandrep.github@gmail.com"
|
||||
}
|
||||
}
|
||||
43
zzz_draft_overleaf/config.json
Normal file
43
zzz_draft_overleaf/config.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"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]"
|
||||
}
|
||||
BIN
zzz_draft_overleaf/icon.png
Normal file
BIN
zzz_draft_overleaf/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
BIN
zzz_draft_overleaf/logo.png
Normal file
BIN
zzz_draft_overleaf/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
17
zzz_draft_overleaf/rootfs/etc/cont-init.d/20-folders.sh
Normal file
17
zzz_draft_overleaf/rootfs/etc/cont-init.d/20-folders.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
29
zzz_draft_overleaf/rootfs/etc/cont-init.d/99-run.sh
Normal file
29
zzz_draft_overleaf/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/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
|
||||
BIN
zzz_draft_overleaf/stats.png
Normal file
BIN
zzz_draft_overleaf/stats.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
8
zzz_draft_overleaf/updater.json
Normal file
8
zzz_draft_overleaf/updater.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"last_update": "10-02-2024",
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "overleaf",
|
||||
"source": "github",
|
||||
"upstream_repo": "sharelatex/sharelatex",
|
||||
"upstream_version": "0.2.0"
|
||||
}
|
||||
Reference in New Issue
Block a user