forked from joshstrange/rancher-deployer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (29 loc) · 963 Bytes
/
Dockerfile
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
29
30
31
32
33
34
FROM alpine:3.4
MAINTAINER Ian Connor <[email protected]>
ENV RANCHER_URL=http://127.0.0.1:8080/v2-beta/projects/1a5 \
RANCHER_ACCESS_KEY=none \
RANCHER_SECRET_KEY=none \
RANCHER_STACK_ID=project \
RANCHER_STACK_NAME=project \
RANCHER_SERVICE_NAME=service
RUN apk -U upgrade && \
apk add --no-cache --update \
curl \
unzip \
tar \
gzip \
sed \
ca-certificates && \
update-ca-certificates --fresh && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
curl -L \
https://github.com/rancher/rancher-compose/releases/download/v0.12.5/rancher-compose-linux-amd64-v0.12.5.tar.gz \
-o rancher-compose.tar.gz && \
tar zxvf rancher-compose.tar.gz --strip-components 2 && \
rm -rf rancher-compose.tar.gz && \
mv rancher-compose /usr/bin/rancher-compose && \
chmod +x /usr/bin/rancher-compose
ADD upgrade.sh /root/upgrade.sh
RUN chmod +x /root/upgrade.sh
CMD ["/root/upgrade.sh"]