Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Git Sync - Rsync Local
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Docker
Git Sync - Rsync Local
Commits
11282d69
Commit
11282d69
authored
3 years ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
>_<
parent
47899a4c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+21
-0
21 additions, 0 deletions
Dockerfile
ha-rsync
+7
-0
7 additions, 0 deletions
ha-rsync
ha-rsync.excludes
+16
-0
16 additions, 0 deletions
ha-rsync.excludes
with
44 additions
and
0 deletions
Dockerfile
0 → 100644
+
21
−
0
View file @
11282d69
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
This diff is collapsed.
Click to expand it.
ha-rsync
0 → 100644
+
7
−
0
View file @
11282d69
#!/usr/bin/env sh
rsync
-a
\
--exclude-from
=
'/ha-rsync.excludes'
\
--delete-after
\
"
${
GIT_SYNC_ROOT
:-
/tmp/git
}
/
${
GIT_SYNC_DEST
:-
config
}
/"
\
/config
This diff is collapsed.
Click to expand it.
ha-rsync.excludes
0 → 100644
+
16
−
0
View file @
11282d69
/.git
/.gitignore
/README.md
/deps
/image
/tts
.HA_VERSION
/.cloud/*
/.storage/*
/automations.yaml
/scenes.yaml
/scripts.yaml
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment