Loading Dockerfile 0 → 100644 +21 −0 Original line number Diff line number Diff line FROM k8s.gcr.io/git-sync/git-sync:v3.3.5 ENV GIT_SYNC_ROOT='/tmp/git' GIT_SYNC_DEST='config' GIT_SYNC_EXECHOOK_COMMAND='/ha-rsync' GIT_SYNC_ADD_USER='true' USER root:root RUN set -ex \ && apt update -y \ && apt install -y rsync \ && apt clean \ && rm -rf /var/lib/apt/lists/* \ && chmod -Rv 0777 "${GIT_SYNC_ROOT:-/tmp/git}/" COPY ha-rsync* / RUN set -ex \ && chmod a+x /ha-rsync VOLUME ["/config"] USER git-sync:git-sync ha-rsync 0 → 100644 +7 −0 Original line number Diff line number Diff line #!/usr/bin/env sh rsync -a \ --exclude-from='/ha-rsync.excludes' \ --delete-after \ "${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-config}/" \ /config ha-rsync.excludes 0 → 100644 +16 −0 Original line number Diff line number Diff line /.git /.gitignore /README.md /deps /image /tts .HA_VERSION /.cloud/* /.storage/* /automations.yaml /scenes.yaml /scripts.yaml Loading
Dockerfile 0 → 100644 +21 −0 Original line number Diff line number Diff line FROM k8s.gcr.io/git-sync/git-sync:v3.3.5 ENV GIT_SYNC_ROOT='/tmp/git' GIT_SYNC_DEST='config' GIT_SYNC_EXECHOOK_COMMAND='/ha-rsync' GIT_SYNC_ADD_USER='true' USER root:root RUN set -ex \ && apt update -y \ && apt install -y rsync \ && apt clean \ && rm -rf /var/lib/apt/lists/* \ && chmod -Rv 0777 "${GIT_SYNC_ROOT:-/tmp/git}/" COPY ha-rsync* / RUN set -ex \ && chmod a+x /ha-rsync VOLUME ["/config"] USER git-sync:git-sync
ha-rsync 0 → 100644 +7 −0 Original line number Diff line number Diff line #!/usr/bin/env sh rsync -a \ --exclude-from='/ha-rsync.excludes' \ --delete-after \ "${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-config}/" \ /config
ha-rsync.excludes 0 → 100644 +16 −0 Original line number Diff line number Diff line /.git /.gitignore /README.md /deps /image /tts .HA_VERSION /.cloud/* /.storage/* /automations.yaml /scenes.yaml /scripts.yaml