Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation notes #3

Open
loki-sft opened this issue Sep 25, 2021 · 3 comments
Open

installation notes #3

loki-sft opened this issue Sep 25, 2021 · 3 comments

Comments

@loki-sft
Copy link

Might be a dumb question, but how to install this?

If I try to add it as userdefined repository in HACS failure is "Repostitory structure for master is not compliant"

@doronazl
Copy link

totally not dumb
no idea how to install this either
this should be removed

@thundergreen
Copy link

Buld fails:

22-02-21 23:38:46 ERROR (SyncWorker_7) [supervisor.docker.addon] Can't build local/amd64-addon-unifiticketsystem:1.0.0: failed to export image: failed to create image: failed to get layer sha256:989d2403301f938e9fe69eb6322d151132533f78574b9fd85cd28f30ec9ac32a: layer does not exist
22-02-21 23:38:46 ERROR (SyncWorker_7) [supervisor.docker.addon] Build log: 
Step 1/21 : ARG BUILD_FROM
Step 2/21 : FROM $BUILD_FROM
 ---> e6325b527bd3
Step 3/21 : ENV LANG C.UTF-8
 ---> Running in 7f96bec6c277
Removing intermediate container 7f96bec6c277
 ---> c379c2964359
Step 4/21 : COPY unifihassio /
 ---> 000dd483148a
Step 5/21 : COPY pyunifi /
 ---> fc126c5f452a
Step 6/21 : COPY run.sh /

@irqnet
Copy link

irqnet commented Aug 4, 2022

I was at least able to compile the docker container in homeassistant due to changes in the dockefile where I've added the RUN true after any copy line.

`ARG BUILD_FROM
FROM $BUILD_FROM

ENV LANG C.UTF-8

Copy data for add-on
COPY unifihassio /
RUN true
COPY pyunifi /
RUN true
COPY run.sh /

Install requirements for add-on
RUN apk add --no-cache python3
RUN apk add --no-cache py3-pip
RUN apk add --no-cache nginx

RUN pip install Flask
RUN pip install pyunifi
RUN pip install gunicorn

RUN chmod a+x /run.sh
COPY rootfs /

CMD [ "/run.sh" ]
`

But the addon cannot be started, and I guess this is linked to the docker init command, but I'm not that experienced with docker and I'm not able to solve that.

`s6-rc: info: service s6rc-oneshot-runner: starting

s6-rc: info: service s6rc-oneshot-runner successfully started

s6-rc: info: service fix-attrs: starting

s6-rc: info: service fix-attrs successfully started

s6-rc: info: service legacy-cont-init: starting

cont-init: info: running /etc/cont-init.d/nginx.sh

/package/admin/s6-overlay-3.1.0.1/etc/s6-rc/scripts/cont-init: line 14: /etc/cont-init.d/nginx.sh: Permission denied

cont-init: info: /etc/cont-init.d/nginx.sh exited 126

cont-init: warning: some scripts exited nonzero

s6-rc: warning: unable to start service legacy-cont-init: command exited 1

/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service fix-attrs: stopping

s6-rc: info: service fix-attrs successfully stopped

s6-rc: info: service s6rc-oneshot-runner: stopping

s6-rc: info: service s6rc-oneshot-runner successfully stopped`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants