This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
forked from github/backup-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
19 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,2 @@ | ||
* | ||
!share/github-backup-utils/ghe-docker-init |
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM debian:jessie-slim | ||
ARG bkup_version=2.11.1 | ||
RUN DEBIAN_FRONTEND=noninteractive \ | ||
apt-get update && \ | ||
apt-get install -y wget rsync ssh git && \ | ||
apt-get clean && apt-get autoremove -q && \ | ||
rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/* | ||
RUN wget https://github.com/github/backup-utils/releases/download/v${bkup_version}/github-backup-utils_${bkup_version}_amd64.deb | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
export DEBIAN_PRIORITY=critical && \ | ||
/usr/bin/dpkg -i github-backup-utils_${bkup_version}_amd64.deb && \ | ||
rm github-backup-utils_${bkup_version}_amd64.deb | ||
COPY share/github-backup-utils/ghe-docker-init /usr/share/github-backup-utils/ghe-docker-init | ||
RUN chmod +x /usr/share/github-backup-utils/ghe-docker-init | ||
ENTRYPOINT ["/usr/share/github-backup-utils/ghe-docker-init"] | ||
|
||
ARG bkup_version | ||
ENV bkup_version stable | ||
|
||
RUN apt-get -q -y update && \ | ||
apt-get install -y --no-install-recommends \ | ||
tar \ | ||
rsync \ | ||
ca-certificates \ | ||
ssh \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /backup-utils-stable | ||
ADD https://github.com/github/backup-utils/archive/${bkup_version}.tar.gz / | ||
RUN tar xzvf /${bkup_version}.tar.gz --strip-components=1 -C /backup-utils-stable | ||
|
||
COPY share/github-backup-utils/ghe-docker-init /backup-utils-stable/share/github-backup-utils/ghe-docker-init | ||
RUN chmod +x /backup-utils-stable/share/github-backup-utils/ghe-docker-init | ||
|
||
ENTRYPOINT ["/backup-utils-stable/share/github-backup-utils/ghe-docker-init"] | ||
CMD ["ghe-host-check"] |
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