-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rsync as the only method. Refactor, cleanup and implement base fu…
…nctionality.
- Loading branch information
1 parent
fb756a0
commit fcde5d4
Showing
16 changed files
with
386 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:3.9 | ||
|
||
COPY pv-migrate /root/.ssh/id_rsa | ||
COPY ssh-config /root/.ssh/config | ||
|
||
RUN apk add --no-cache rsync openssh && chmod 600 /root/.ssh/id_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
-----BEGIN OPENSSH PRIVATE KEY----- | ||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn | ||
NhAAAAAwEAAQAAAgEA4Pr4vcgL5o7kQPqmLcvUbcCNV4ixcrwx56+HTLGsPf0F2FyI2V22 | ||
n+r8I+JpjkBsa62Tfg9Nv+kgusYzk4LG869dZB2vevwvgMcLBA6864OfvEw2k+rGMvTQOm | ||
f0cUkljxKQixbaRfOqsxZ2VJhrtG38rZPFe3LQRlfJb2xqvP8D2/Nctg/9BUYGJ+beAHQ1 | ||
Ojt0IM1gdZZV9koEzl51jThWUrQqQz3pIvO1ixKFZuSjzVJtXlz2bIrQn+PxC9HUIdlVUX | ||
gvg/IIGYBD2FHxacYbLi84v3ukwDbu3kzHStjkpqO4x0bGaNNLAk/fcFAbFf4s9GS1tAoK | ||
Uq55FIjLfmFpB+9vAT4d2+MgkQI+KWWjXYGIZROjIQyEkl1I7gAXFalw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VRT6PBD/9mOO+M4ML6W4vD | ||
yYIJRvLFILfq2QNxIAAAAQEA93bxD1GHg4OL6rZprPRhcPmlvhloZBBtZTd0z/UKXVvmSs | ||
85LTj0qW7/JcGac4dz8tjN5bx4Cly9QEL+lowFmUBarivbXPFqfTaq4hl8Gqhj1yIssVuY | ||
qPqO5Y0j+88WcmybrCEfSt6vUrKAFzIFpl0do/1FqQ/pcn1EkYauVPMTWYFi1YaziYwOjV | ||
J6TK+yDcTfhJljL8apHODsTrTti0Z43SXMpK3upZsqmifKS7epi43a8TRsHmnFsLqQyEFo | ||
2eLO+LKDtCIDsmOaX/EjRkpDSVQYZ0TE2Gc3WRS3Tq24qX3Ig6ZIExkYxJ4ZH8pL4DW6wt | ||
ae827bhtEswyS4NQAAAQEA6L1/uiDxVX8DFBHcYrQRnFQfgX4kU8WLEWUfhxjLSKhqbzE9 | ||
GMB1JDSF/2y45M+5UJzR5NHMahvR/5YQRksjyo8U0WXzD5ZOqkFH0077wfQCik5UUv7ysf | ||
IJpudaErEeHDDDMOytm6pfp8hQ/bQ9Xf+pn5nC6xhM7UErTpc8M3EJnZ8gahe68CuUEQKt | ||
GwUH3K/bv5MwWoaiUV/QZzOJG7qfha/boDq6TRc3D3DGTU6CUYJqQKNODmHxFcTlrSLmfT | ||
lldYUcguBleUoMgNJNZ0kzVrKgPgSGnil19zaPfPPWKwzR6BJ1Yomd7fHc7M8KSWQWIgF+ | ||
e6BTMxVpDsljEwAAAApwdi1taWdyYXRlAQIDBAUGBw== | ||
-----END OPENSSH PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Host * | ||
StrictHostKeyChecking no | ||
UserKnownHostsFile=/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM sickp/alpine-sshd:7.5-r2 | ||
|
||
RUN passwd -d root && apk add --no-cache rsync | ||
COPY pv-migrate.pub /root/.ssh/authorized_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDg+vi9yAvmjuRA+qYty9RtwI1XiLFyvDHnr4dMsaw9/QXYXIjZXbaf6vwj4mmOQGxrrZN+D02/6SC6xjOTgsbzr11kHa96/C+AxwsEDrzrg5+8TDaT6sYy9NA6Z/RxSSWPEpCLFtpF86qzFnZUmGu0bfytk8V7ctBGV8lvbGq8/wPb81y2D/0FRgYn5t4AdDU6O3QgzWB1llX2SgTOXnWNOFZStCpDPeki87WLEoVm5KPNUm1eXPZsitCf4/EL0dQh2VVReC+D8ggZgEPYUfFpxhsuLzi/e6TANu7eTMdK2OSmo7jHRsZo00sCT99wUBsV/iz0ZLW0CgpSrnkUiMt+YWkH728BPh3b4yCRAj4pZaNdgYhlE6MhDISSXUjuABcVqXCXM12kSLDzMl9z8XjaYsOQHc8x0plp2A08hT33sqR17TRiYmQup4nzk+frXG/CTRvQdRiOiIGM1pbVmP+Rc5FQR50FbaZX+VDpTav12eDAR6gqVq0DNlMk8NHuR9BKlLcvh3qXgMBxrIODxFedyHUspOaycoOYJ/8AP9yed/xTlwsh5wVpsOdjSPphAm08P630WjQufcgzUdBmiAdvFMRlx5oHghKfgOTocUXxWxJX/GCxnEOIMr2pwBF6DCK1UGX8/J2xXrLIbc6JKpJwd1E/S1sqg/ILcfZuNpMq7w== pv-migrate |
Oops, something went wrong.