diff --git a/openproject/CHANGELOG.md b/openproject/CHANGELOG.md new file mode 100644 index 0000000..e7b8d82 --- /dev/null +++ b/openproject/CHANGELOG.md @@ -0,0 +1,16 @@ + +## (25-05-2024) +- Update to latest version from openproject/openproject (changelog : https://github.com/openproject/openproject/releases) +## 14.1.0-2 (22-05-2024) +- Minor bugs fixed +## 14.1.0 (22-05-2024) + +- Update openproject to 14.1.0 + +## 14.1 (20-05-2024) + +- Booting issues & Persistence + +## 14 (09-05-2024) + +- Initial release. Welcome openproject to home assistant! \ No newline at end of file diff --git a/openproject/Dockerfile b/openproject/Dockerfile new file mode 100644 index 0000000..975bf6f --- /dev/null +++ b/openproject/Dockerfile @@ -0,0 +1,125 @@ +#============================# +# ALEXBELGIUM'S DOCKERFILE # +#============================# +# _.------. +# _.-` ('>.-`"""-. +# '.--'` _'` _ .--.) +# -' '-.-';` ` +# ' - _.' ``'--. +# '---` .-'""` +# /` +#=== Home Assistant Addon ===# + +################# +# 1 Build Image # +################# + +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 + +ENV OPENPROJECT_SECRET_KEY_BASE=addon_secret \ + OPENPROJECT_HOST__NAME=mez-openproject.duckdns.org \ + OPENPROJECT_HTTPS=true \ + OPENPROJECT_DEFAULT__LANGUAGE=en \ + OPENPROJECT_EDITION=bim \ + PGDATA=/share/openproject/pg\ + APP_DATA_PATH=/share/openproject/assets + +USER root + +RUN sed -i "1a /./ha_entrypoint.sh" /app/docker/prod/entrypoint.sh + +################## +# 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 00-global_var.sh 01-custom_script.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="" + +# 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 + +EXPOSE 8080 + +################ +# 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 + +# ENTRYPOINT [ "/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="8080" \ + 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 \ No newline at end of file diff --git a/openproject/README.md b/openproject/README.md new file mode 100644 index 0000000..e8b15e4 --- /dev/null +++ b/openproject/README.md @@ -0,0 +1,51 @@ +# Home assistant add-on: Openproject + +[![Donate][paypal-badge]](https://www.paypal.com/donate/?hosted_button_id=DZFULJZTP3UQA) +[![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%openproject%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%openproject%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%openproject%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 +[paypal-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee%20Paypal-%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/openproject/stats.png) + +## About + +Various tweaks and configuration options addition. +This addon is based on the [docker image](https://hub.docker.com/r/openproject/openproject). + +## Configuration + +```yaml +TODO +``` + +Webui can be found at `:port`. + +## 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. Go to the webui, where you will initialize the app +1. Restart the addon, to apply any option that should be applied + +Default administration password (login: admin, password: admin). + +[repository]: https://github.com/alexbelgium/hassio-addons \ No newline at end of file diff --git a/openproject/apparmor.txt b/openproject/apparmor.txt new file mode 100644 index 0000000..9bd84b5 --- /dev/null +++ b/openproject/apparmor.txt @@ -0,0 +1,66 @@ +#include + +profile openproject_addon 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, + +} \ No newline at end of file diff --git a/openproject/build.json b/openproject/build.json new file mode 100644 index 0000000..0386c0f --- /dev/null +++ b/openproject/build.json @@ -0,0 +1,9 @@ +{ + "build_from": { + "aarch64": "openproject/openproject:14.6.3", + "amd64": "openproject/openproject:14.6.3" + }, + "codenotary": { + "signer": "alexandrep.github@gmail.com" + } + } \ No newline at end of file diff --git a/openproject/config.json b/openproject/config.json new file mode 100644 index 0000000..a3071f5 --- /dev/null +++ b/openproject/config.json @@ -0,0 +1,25 @@ +{ + "arch": [ + "amd64", + "aarch64" + ], + "codenotary": "alexandrep.github@gmail.com", + "description": "Openproject for Home Assistant", + "init": false, + "map": [ + "addon_config:rw", + "share:rw" + ], + "name": "Openproject", + "ports": { + "8080/tcp": 8080 + }, + "ports_description": { + "8080/tcp": "Web interface" + }, + "slug": "openproject", + "udev": true, + "url": "https://github.com/alexbelgium/hassio-addons/tree/master/openproject", + "version": "14.6.3", + "webui": "[PROTO:ssl]://[HOST]:[PORT:8080]" +} \ No newline at end of file diff --git a/openproject/icon.png b/openproject/icon.png new file mode 100644 index 0000000..7f04c43 Binary files /dev/null and b/openproject/icon.png differ diff --git a/openproject/logo.png b/openproject/logo.png new file mode 100644 index 0000000..7f04c43 Binary files /dev/null and b/openproject/logo.png differ diff --git a/openproject/stats.png b/openproject/stats.png new file mode 100644 index 0000000..6c00b1d Binary files /dev/null and b/openproject/stats.png differ diff --git a/openproject/updater.json b/openproject/updater.json new file mode 100644 index 0000000..3bb16f0 --- /dev/null +++ b/openproject/updater.json @@ -0,0 +1,8 @@ +{ + "last_update": "25-05-2024", + "repository": "mezned/HAddons", + "slug": "openproject", + "source": "gitea", + "upstream_repo": "openproject/openproject", + "upstream_version": "" + } \ No newline at end of file