File tree Expand file tree Collapse file tree 5 files changed +17
-11
lines changed Expand file tree Collapse file tree 5 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.6
2
2
3
- RUN go get -u github.com/segment-sources/postgres
3
+ ADD . /go/src/github.com/segment-sources/source-postgres
4
+
5
+ RUN go get "github.com/tools/godep"
6
+ RUN cd /go/src/github.com/segment-sources/source-postgres \
7
+ && godep go install ./cmd/source-postgres
4
8
5
9
# Additionally add a cron-like runner to run on an
6
10
# interval.
7
11
RUN go get -u github.com/segmentio/go-every
8
12
9
- ENTRYPOINT ["postgres" ]
13
+ ENTRYPOINT ["source- postgres" ]
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ would be queryable in your analytics Redshift or Postgres database like this...
30
30
Prerequisites: [ Go] ( https://golang.org/doc/install )
31
31
32
32
``` bash
33
- go get -u github.com/segment-sources/postgres
33
+ go get -u github.com/tools/godep
34
+ godep go install github.com/segment-source/source-postgres/cmd/source-postgres
34
35
```
35
36
36
37
The first step is to initialize your schema. You can do so by running ` postgres ` with ` --init ` flag.
Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ import "github.com/segment-sources/sqlsource"
4
+ import "github.com/segment-sources/source-postgres"
5
+
6
+ func main () {
7
+ sqlsource .Run (& postgres.Postgres {})
8
+ }
Original file line number Diff line number Diff line change 1
- package main
1
+ package postgres
2
2
3
3
import (
4
4
"bytes"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments