-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.cache
51 lines (47 loc) · 1.98 KB
/
Dockerfile.cache
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#FROM ubuntu:trusty
FROM reverbrain/backrunner:1.6.2-0.2.24
#RUN echo "deb http://repo.reverbrain.com/trusty/ current/amd64/" > /etc/apt/sources.list.d/reverbrain.list && \
# echo "deb http://repo.reverbrain.com/trusty/ current/all/" >> /etc/apt/sources.list.d/reverbrain.list && \
# apt-get install -y curl && \
# curl http://repo.reverbrain.com/REVERBRAIN.GPG | apt-key add - && \
# apt-get update && \
# apt-get upgrade -y && \
# apt-get install -y curl git elliptics-client elliptics-dev g++ make && \
# cp -f /usr/share/zoneinfo/posix/W-SU /etc/localtime && \
# echo Europe/Moscow > /etc/timezeone
#RUN VERSION=go1.6.2 && \
# curl -O https://storage.googleapis.com/golang/$VERSION.linux-amd64.tar.gz && \
# rm -rf /usr/local/go && \
# tar -C /usr/local -xf $VERSION.linux-amd64.tar.gz && \
# rm -f $VERSION.linux-amd64.tar.gz
RUN git config --global user.email "[email protected]" && \
git config --global user.name "Evgeniy Polyakov" && \
#cd /root && \
#git clone https://go.googlesource.com/go gosource && \
#cd gosource && \
#git fetch https://go.googlesource.com/go refs/changes/44/13944/3 && git checkout -b stack_changes FETCH_HEAD && \
#cd src && \
#GOROOT_BOOTSTRAP=/usr/local/go ./all.bash && \
#export PATH=$PATH:/root/gosource/bin && \
export PATH=$PATH:/usr/local/go/bin && \
mkdir -p /root/go && \
export GOPATH=/root/go && \
rm -rf ${GOPATH}/* && \
rm -rf ${GOPATH}/src/github.com/bioothod/elliptics-go ${GOPATH}/src/github.com/bioothod/backrunner && \
rm -rf ${GOPATH}/pkg/* && \
go get github.com/bioothod/elliptics-go/elliptics && \
cd /root/go/src/github.com/bioothod/elliptics-go/elliptics && \
git checkout master && \
git pull && \
git branch -v && \
go install && \
echo "Go bindings have been updated" && \
go get github.com/bioothod/backrunner && \
cd /root/go/src/github.com/bioothod/backrunner && \
git checkout master && \
git pull && \
git branch -v && \
make install && \
echo "Backrunner has been updated" ;\
rm -rf /var/lib/apt/lists/*
EXPOSE 9090 80 443