-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 739 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
FROM alpine:latest
MAINTAINER Kevin Minehart <kmineh0151@gmail.com>
# install dependencies
RUN apk add --no-cache --update curl \
bash \
ca-certificates \
wget \
python2 \
py2-openssl
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz
RUN tar -xvf google-cloud-sdk.tar.gz
RUN rm google-cloud-sdk.tar.gz
RUN google-cloud-sdk/install.sh --usage-reporting=false \
--path-update=false \
--bash-completion=false
RUN wget -qO- https://binaries.cockroachdb.com/cockroach-v1.1.1.linux-musl-amd64.tgz | tar xvz
RUN cp -i cockroach-v1.1.1.linux-musl-amd64/cockroach /
RUN chmod +x /cockroach
# add backup script
COPY backup.sh /backup-cockroach
RUN chmod +x /backup-cockroach
CMD /backup-cockroach