Skip to content

Commit

Permalink
make buildable from my own repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tpo committed Apr 3, 2020
1 parent 2d3f021 commit d58b948
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.9.4-alpine3.7 AS build
ENV GOPATH /app
WORKDIR /app/src/github.com/cybertec-postgresql/vip-manager
WORKDIR /app/src/github.com/tpo/vip-manager
COPY . .
RUN go install
FROM alpine:latest
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ LICENSE="BSD 2-Clause License"
MAINTAINER="Ants Aasma <[email protected]>"
DESCRIPTION="Manages a virtual IP based on state kept in etcd/consul."
HOMEPAGE="http://www.cybertec.at/"
GIT="git://github.com/cybertec-postgresql/vip-manager.git"
GITBROWSER="https://github.com/cybertec-postgresql/vip-manager"
GIT="git://github.com/tpo/vip-manager.git"
GITBROWSER="https://github.com/tpo/vip-manager"


all: vip-manager
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Manages a virtual IP based on state kept in etcd or Consul. Monitors state in et

## building
1. To make sure that internal includes (the vipconfig and the checker package) are satisfied, place the base directory of this project properly into your `$GOPATH`.
The resulting location should be `$GOPATH/src/github.com/cybertec-postgresql/vip-manager/`. The easiest way to do this is:
```go get github.com/cybertec-postgresql/vip-manager```
The resulting location should be `$GOPATH/src/github.com/tpo/vip-manager/`. The easiest way to do this is:
```go get github.com/tpo/vip-manager```
2. Build the binary using `make`.
3. To build your own .deb or .rpm, `fpm` is required.
Install it, add it to your path and try running `make package`, which will generate a .deb package and will also convert that into a matching .rpm file.
Expand Down
2 changes: 1 addition & 1 deletion checker/consul_leader_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"time"

"github.com/cybertec-postgresql/vip-manager/vipconfig"
"github.com/tpo/vip-manager/vipconfig"
"github.com/hashicorp/consul/api"
)

Expand Down
2 changes: 1 addition & 1 deletion checker/etcd_leader_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/coreos/etcd/client"
"github.com/cybertec-postgresql/vip-manager/vipconfig"
"github.com/tpo/vip-manager/vipconfig"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion checker/leader_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package checker
import (
"context"
"errors"
"github.com/cybertec-postgresql/vip-manager/vipconfig"
"github.com/tpo/vip-manager/vipconfig"
)

var ErrUnsupportedEndpointType = errors.New("given endpoint type not supported")
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"gopkg.in/yaml.v2"

"github.com/cybertec-postgresql/vip-manager/checker"
"github.com/cybertec-postgresql/vip-manager/vipconfig"
"github.com/tpo/vip-manager/checker"
"github.com/tpo/vip-manager/vipconfig"
//"github.com/milosgajdos83/tenus"
)

Expand Down
2 changes: 1 addition & 1 deletion package/DEBIAN/copyright
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: vip-manager
Source: <http://github.com/cybertec-postgresql/vip-manager>
Source: <http://github.com/tpo/vip-manager>

Files: *
Copyright: 2017-2019 Ants Aasma <[email protected]>
Expand Down

0 comments on commit d58b948

Please sign in to comment.