From 8f62c9f9f29b6fdfc4c46895655d12dd59be4bd3 Mon Sep 17 00:00:00 2001 From: Matthew Kotler <31595484+mkotler@users.noreply.github.com> Date: Sun, 11 Feb 2024 16:26:14 -0800 Subject: [PATCH] Removed Dockerfile since no longer building docker --- demo/Dockerfile | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 demo/Dockerfile diff --git a/demo/Dockerfile b/demo/Dockerfile deleted file mode 100644 index a9b6452..0000000 --- a/demo/Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ -FROM python:3.8-alpine - -ARG APPDAEMON_VERSION=dev - -# api / admin ui -EXPOSE 5050 - -# appdaemon mounts -VOLUME /conf -VOLUME /certs - -WORKDIR /usr/src/app - -# install additional packages -RUN apk add --no-cache curl tzdata - -# install appdaemon from source -RUN apk add --virtual build cargo git gcc g++ libffi-dev make openssl-dev musl-dev && \ - git clone https://github.com/AppDaemon/appdaemon.git /usr/src/app && cd /usr/src/app && git checkout ${APPDAEMON_VERSION} && \ - pip install --no-cache-dir . && \ - apk del build -# # pip: install appdaemon from pypi -# RUN pip install --no-cache-dir appdaemon==${APPDAEMON_VERSION} - -# bootstrap appdaemon -RUN mkdir -p conf/apps/ -# add patched default configuration -COPY demo/automoli.apps.yaml conf/apps/apps.yaml.example -COPY demo/automoli.appdaemon.yaml conf/appdaemon.yaml.example - -# add AutoMoLi -COPY apps/automoli conf/apps/automoli - -# # pip: get start script missing in pip package from repo -# RUN wget https://raw.githubusercontent.com/AppDaemon/appdaemon/${APPDAEMON_VERSION}/dockerStart.sh && chmod +x /usr/src/app/dockerStart.sh - -# patch appdaemon startup script with new env vars & show config on startup -RUN sed -i '44i\\n# AutoMoLi: env variable configuration\nif [ -n "$AUTOMOLI_ROOM" ]; then sed -i \"s/kitchen/$(echo $AUTOMOLI_ROOM | sed "s/[^[:print:]]//g")/\" $CONF/apps/apps.yaml; fi' /usr/src/app/dockerStart.sh && \ - sed -i '47i# AutoMoLi: show config on startup\necho -e "\\n\\n\\033[1mAutoMoLil\\033[0m configuration in \\033[1m$CONF/apps/apps.yaml\\033[0m:\\n" && cat $CONF/apps/apps.yaml && echo -e "\\n\\n"' /usr/src/app/dockerStart.sh - -# start script -RUN chmod +x /usr/src/app/dockerStart.sh -ENTRYPOINT ["./dockerStart.sh"]