-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM java:8
MAINTAINER André Camilo <andrejcamilo@gmail.com>
# Download bitbucket backup client
ENV BITBUCKET_BACKUP_CLIENT_VERSION 3.6.0
ENV VERSION_LINK 300600000
RUN curl -Lks https://marketplace.atlassian.com/download/apps/1211500/version/${VERSION_LINK} -o /root/bitbucket-backup-client.zip
RUN mkdir /opt/bitbucket
RUN unzip /root/bitbucket-backup-client.zip -d /opt/bitbucket
RUN mv /opt/bitbucket/bitbucket-backup-client-* /opt/bitbucket/bitbucket-backup-client
ADD run-backup.sh /usr/bin/backup
RUN chmod +x /usr/bin/backup
ADD run-restore.sh /usr/bin/restore
RUN chmod +x /usr/bin/restore
WORKDIR /opt/bitbucket
VOLUME /backups
VOLUME /var/atlassian/application-data/bitbucket
# Environment variables
ENV BACKUP_HOME /backups
ENV BITBUCKET_HOME /var/atlassian/application-data/bitbucket
CMD ["backup"]