Skip to content

Commit 55a19b1

Browse files
author
Traun Leyden
committed
Add 1.2.0-rc1 sync gw
1 parent a4c6409 commit 55a19b1

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM centos:centos7
2+
3+
MAINTAINER Couchbase Docker Team <[email protected]>
4+
5+
ENV GOPATH /opt/go
6+
ENV SGROOT /opt/sync_gateway
7+
ENV GOROOT /usr/local/go
8+
ENV PATH $PATH:$GOPATH/bin:$GOROOT/bin
9+
10+
# Get dependencies
11+
RUN yum -y update && \
12+
yum groupinstall -y development && \
13+
yum install -y \
14+
bc \
15+
curl \
16+
emacs-nox \
17+
git \
18+
mercurial \
19+
wget
20+
21+
# Download and install Go
22+
RUN wget http://golang.org/dl/go1.5.2.linux-amd64.tar.gz && \
23+
tar -C /usr/local -xzf go1.5.2.linux-amd64.tar.gz && \
24+
rm go1.5.2.linux-amd64.tar.gz
25+
26+
# install common go packages
27+
RUN go get github.com/tools/godep && \
28+
go get github.com/nsf/gocode && \
29+
go get golang.org/x/tools/cmd/goimports && \
30+
go get github.com/golang/lint/golint && \
31+
go get github.com/rogpeppe/godef
32+
33+
# Build Sync Gateway
34+
RUN mkdir -p $GOPATH && \
35+
cd /opt && \
36+
git clone https://github.com/couchbase/sync_gateway.git && \
37+
cd $SGROOT && \
38+
git checkout 1.2.0-rc1 && \
39+
git submodule update --init --recursive && \
40+
./build.sh && \
41+
cp bin/sync_gateway /usr/local/bin && \
42+
mkdir -p $SGROOT/data
43+
44+
ENTRYPOINT ["/usr/local/bin/sync_gateway"]
45+
46+
# Expose ports
47+
EXPOSE 4984 4985
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
Docker container for [Couchbase Sync Gateway](https://github.com/couchbase/sync_gateway).
3+
4+
## Quickstart
5+
6+
To run the latest release of Sync Gateway with a configuration file hosted in a github gist:
7+
8+
```
9+
$ docker run -p 4984:4984 -p 4985:4985 couchbase/sync-gateway http://git.io/vfQpe
10+
```

0 commit comments

Comments
 (0)