Skip to content

Commit c447e54

Browse files
authored
chore: rename to raystack (#223)
* chore: rename to raystack * chore: update proto path * chore: upgrade go version * chore: fix typo
1 parent dac97c3 commit c447e54

File tree

171 files changed

+3629
-3511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+3629
-3511
lines changed

.github/workflows/build_dev.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout code
10-
uses: actions/checkout@v3
11-
- name: Login to DockerHub
12-
uses: docker/login-action@v1
13-
with:
14-
username: ${{ secrets.DOCKERHUB_USERNAME }}
15-
password: ${{ secrets.DOCKERHUB_TOKEN }}
16-
- name: Build and push
17-
id: docker_build
18-
uses: docker/build-push-action@v2
19-
with:
20-
push: true
21-
file: "./Dockerfile.dev"
22-
tags: |
23-
odpf/compass:dev
9+
- name: Checkout code
10+
uses: actions/checkout@v3
11+
- name: Login to DockerHub
12+
uses: docker/login-action@v1
13+
with:
14+
username: ${{ secrets.DOCKERHUB_USERNAME }}
15+
password: ${{ secrets.DOCKERHUB_TOKEN }}
16+
- name: Build and push
17+
id: docker_build
18+
uses: docker/build-push-action@v2
19+
with:
20+
push: true
21+
file: "./Dockerfile.dev"
22+
tags: |
23+
raystack/compass:dev

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/setup-go@v4
1010
with:
11-
go-version: "1.18"
11+
go-version: "1.20"
1212
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0

.github/workflows/release.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
name: release
1+
name: Release
22

33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
7-
workflow_dispatch:
6+
- "v*"
87

98
jobs:
10-
release:
9+
goreleaser:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- name: Set up Go
14-
uses: actions/setup-go@v4
15-
with:
16-
go-version: '^1.18'
17-
- name: Checkout
18-
uses: actions/checkout@v3
12+
- name: Checkout code
13+
uses: actions/checkout@v2
1914
with:
2015
fetch-depth: 0
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: "1.20"
2120
- name: Login to DockerHub
2221
uses: docker/login-action@v1
2322
with:
2423
registry: docker.io
2524
username: ${{ secrets.DOCKERHUB_USERNAME }}
2625
password: ${{ secrets.DOCKERHUB_TOKEN }}
2726
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v2.6.1
27+
uses: goreleaser/goreleaser-action@v4
2928
with:
3029
distribution: goreleaser
3130
version: latest
32-
args: --rm-dist
31+
args: release --clean
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
ports:
1111
- 9200:9200
1212
env:
13-
ES_TEST_SERVER_URL: 'http://elasticsearch:9200'
13+
ES_TEST_SERVER_URL: "http://elasticsearch:9200"
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.18
18+
go-version: "1.20"
1919
- name: Install dependencies
2020
run: sudo apt-get install build-essential
2121
- name: Install packages
@@ -28,4 +28,4 @@ jobs:
2828
run: |
2929
go get github.com/mattn/goveralls
3030
go install github.com/mattn/goveralls
31-
goveralls -coverprofile=coverage.txt -service=github
31+
goveralls -coverprofile=coverage.txt -service=github

.goreleaser.yml

Lines changed: 39 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,75 @@
11
project_name: compass
2+
23
release:
34
prerelease: auto
5+
46
before:
57
hooks:
68
- go mod tidy
79
- make clean
10+
11+
changelog:
12+
sort: asc
13+
filters:
14+
exclude:
15+
- "^docs:"
16+
- "^test:"
17+
- "^build:"
18+
819
builds:
920
- id: compass
1021
main: ./main.go
1122
binary: compass
1223
flags: [-a]
1324
ldflags:
14-
- -X github.com/odpf/compass/cli.Version={{.Tag}}
15-
- -X github.com/odpf/compass/cli.BuildCommit={{.FullCommit}}
16-
- -X github.com/odpf/compass/cli.BuildDate={{.Date}}
25+
- -X github.com/raystack/compass/cli.Version={{.Tag}}
26+
- -X github.com/raystack/compass/cli.BuildCommit={{.FullCommit}}
27+
- -X github.com/raystack/compass/cli.BuildDate={{.Date}}
1728
goos: [linux, darwin, windows]
18-
goarch: [amd64, 386, arm, arm64] # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library
29+
goarch: [amd64, 386, arm, arm64]
1930
env:
2031
- CGO_ENABLED=0
32+
2133
archives:
22-
- replacements:
23-
darwin: macos
24-
linux: linux
25-
windows: windows
26-
386: i386
27-
amd64: x86_64
34+
- id: "archives"
2835
format_overrides:
2936
- goos: windows
3037
format: zip
31-
checksum:
32-
name_template: "checksums.txt"
33-
snapshot:
34-
name_template: "{{ .Tag }}-next"
35-
changelog:
36-
sort: asc
37-
filters:
38-
exclude:
39-
- "^docs:"
40-
- "^test:"
41-
- "^build:"
38+
4239
dockers:
43-
- goos: linux
44-
goarch: amd64
45-
ids:
46-
- compass
47-
dockerfile: Dockerfile
40+
- id: dockerhub
4841
image_templates:
49-
- "docker.io/odpf/{{.ProjectName}}:latest"
50-
- "docker.io/odpf/{{.ProjectName}}:{{ .Version }}"
51-
- "docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64"
42+
- "docker.io/raystack/{{.ProjectName}}:latest"
43+
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
44+
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"
45+
5246
nfpms:
53-
- maintainer: ODPF
54-
description: Metadata Discovery and Lineage Service
55-
homepage: https://github.com/odpf/compass
47+
- maintainer: Raystack
48+
description: Data catalog service
49+
homepage: https://github.com/raystack/compass
5650
license: Apache 2.0
5751
formats:
5852
- deb
5953
- rpm
60-
replacements:
61-
darwin: macOS
62-
scoop:
63-
bucket:
64-
owner: odpf
65-
name: scoop-bucket
66-
homepage: "https://github.com/odpf/compass"
67-
description: "Metadata Discovery and Lineage Service"
68-
license: Apache 2.0
54+
- apk
55+
56+
scoops:
57+
- homepage: "https://github.com/raystack/compass"
58+
description: "Data catalog service"
59+
license: Apache 2.0
60+
bucket:
61+
owner: raystack
62+
name: scoop-bucket
63+
6964
brews:
7065
- name: compass
71-
homepage: "https://github.com/odpf/compass"
72-
description: "Metadata Discovery and Lineage Service"
66+
homepage: "https://github.com/raystack/compass"
67+
description: "Data catalog service"
7368
tap:
74-
owner: odpf
69+
owner: raystack
7570
name: homebrew-tap
7671
license: "Apache 2.0"
7772
folder: Formula
78-
7973
dependencies:
8074
- name: git
8175
install: |-

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NAME="github.com/odpf/compass"
1+
NAME="github.com/raystack/compass"
22
VERSION=$(shell git describe --always --tags 2>/dev/null)
33
COVERFILE="/tmp/compass.coverprofile"
44
PROTON_COMMIT := "eeec3f31b21ee7d00b016fcdcd7070606aa33366"
@@ -31,9 +31,9 @@ lint: ## Lint checker
3131
golangci-lint run
3232

3333
proto: ## Generate the protobuf files
34-
@echo " > generating protobuf from odpf/proton"
34+
@echo " > generating protobuf from raystack/proton"
3535
@echo " > [info] make sure correct version of dependencies are installed using 'make install'"
36-
@buf generate https://github.com/odpf/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path odpf/compass -v
36+
@buf generate https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path raystack/compass -v
3737
@echo " > protobuf compilation finished"
3838

3939
install: ## Install required dependencies

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Compass
22

3-
![test workflow](https://github.com/odpf/compass/actions/workflows/test.yml/badge.svg)
4-
![build workflow](https://github.com/odpf/compass/actions/workflows/build_dev.yml/badge.svg)
5-
[![Coverage Status](https://coveralls.io/repos/github/odpf/compass/badge.svg?branch=main)](https://coveralls.io/github/odpf/compass?branch=main)
3+
![test workflow](https://github.com/raystack/compass/actions/workflows/test.yml/badge.svg)
4+
![build workflow](https://github.com/raystack/compass/actions/workflows/build_dev.yml/badge.svg)
5+
[![Coverage Status](https://coveralls.io/repos/github/raystack/compass/badge.svg?branch=main)](https://coveralls.io/github/raystack/compass?branch=main)
66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
7-
[![Version](https://img.shields.io/github/v/release/odpf/compass?logo=semantic-release)](Version)
7+
[![Version](https://img.shields.io/github/v/release/raystack/compass?logo=semantic-release)](Version)
88

99
Compass is a search and discovery engine built for querying application deployments, datasets and meta resources. It can also optionally track data flow relationships between these resources and allow the user to view a representation of the data flow graph.
1010

@@ -25,27 +25,27 @@ Discover why users choose Compass as their main data discovery and lineage servi
2525

2626
Explore the following resources to get started with Compass:
2727

28-
- [Guides](https://odpf.github.io/compass/docs/guides) provides guidance on ingesting and querying metadata from Compass.
29-
- [Concepts](https://odpf.github.io/compass/docs/concepts) describes all important Compass concepts.
30-
- [Reference](https://odpf.github.io/compass/docs/reference) contains details about configurations, metrics and other aspects of Compass.
31-
- [Contribute](https://odpf.github.io/compass/docs/contribute/contribution.md) contains resources for anyone who wants to contribute to Compass.
28+
- [Guides](https://raystack.github.io/compass/docs/guides) provides guidance on ingesting and querying metadata from Compass.
29+
- [Concepts](https://raystack.github.io/compass/docs/concepts) describes all important Compass concepts.
30+
- [Reference](https://raystack.github.io/compass/docs/reference) contains details about configurations, metrics and other aspects of Compass.
31+
- [Contribute](https://raystack.github.io/compass/docs/contribute/contribution.md) contains resources for anyone who wants to contribute to Compass.
3232

3333
## Installation
3434

35-
Install Compass on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine. <br/>Refer this for [installations](https://odpf.github.io/compass/docs/installation) and [configurations](https://odpf.github.io/compass/docs/guides/configuration)
35+
Install Compass on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine. <br/>Refer this for [installations](https://raystack.github.io/compass/docs/installation) and [configurations](https://raystack.github.io/compass/docs/guides/configuration)
3636

3737
#### Binary (Cross-platform)
3838

39-
Download the appropriate version for your platform from [releases](https://github.com/odpf/compass/releases) page. Once downloaded, the binary can be run from anywhere.
39+
Download the appropriate version for your platform from [releases](https://github.com/raystack/compass/releases) page. Once downloaded, the binary can be run from anywhere.
4040
You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account.
4141
Ideally, you should install it somewhere in your PATH for easy use. `/usr/local/bin` is the most probable location.
4242

4343
#### macOS
4444

45-
`compass` is available via a Homebrew Tap, and as downloadable binary from the [releases](https://github.com/odpf/compass/releases/latest) page:
45+
`compass` is available via a Homebrew Tap, and as downloadable binary from the [releases](https://github.com/raystack/compass/releases/latest) page:
4646

4747
```sh
48-
brew install odpf/tap/compass
48+
brew install raystack/tap/compass
4949
```
5050

5151
To upgrade to the latest version:
@@ -62,14 +62,14 @@ compass version
6262

6363
#### Linux
6464

65-
`compass` is available as downloadable binaries from the [releases](https://github.com/odpf/compass/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively.
65+
`compass` is available as downloadable binaries from the [releases](https://github.com/raystack/compass/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively.
6666

6767
#### Windows
6868

69-
`compass` is available via [scoop](https://scoop.sh/), and as a downloadable binary from the [releases](https://github.com/odpf/compass/releases/latest) page:
69+
`compass` is available via [scoop](https://scoop.sh/), and as a downloadable binary from the [releases](https://github.com/raystack/compass/releases/latest) page:
7070

7171
```
72-
scoop bucket add compass https://github.com/odpf/scoop-bucket.git
72+
scoop bucket add compass https://github.com/raystack/scoop-bucket.git
7373
```
7474

7575
To upgrade to the latest version:
@@ -83,20 +83,20 @@ scoop update compass
8383
We provide ready to use Docker container images. To pull the latest image:
8484

8585
```
86-
docker pull odpf/compass:latest
86+
docker pull raystack/compass:latest
8787
```
8888

8989
To pull a specific version:
9090

9191
```
92-
docker pull odpf/compass:v0.3.2
92+
docker pull raystack/compass:v0.3.2
9393
```
9494

9595
If you like to have a shell alias that runs the latest version of compass from docker whenever you type `compass`:
9696

9797
```
98-
mkdir -p $HOME/.config/odpf
99-
alias compass="docker run -e HOME=/tmp -v $HOME/.config/odpf:/tmp/.config/odpf --user $(id -u):$(id -g) --rm -it -p 3306:3306/tcp odpf/compass:latest"
98+
mkdir -p $HOME/.config/raystack
99+
alias compass="docker run -e HOME=/tmp -v $HOME/.config/raystack:/tmp/.config/raystack --user $(id -u):$(id -g) --rm -it -p 3306:3306/tcp raystack/compass:latest"
100100
```
101101

102102
## Usage
@@ -121,7 +121,7 @@ compass reference
121121

122122
#### API
123123

124-
Compass provides a fully-featured GRPC and HTTP API to interact with Compass server. Both APIs adheres to a set of standards that are rigidly followed. Please refer to [proton](https://github.com/odpf/proton/tree/main/odpf/compass/v1beta1) for GRPC API definitions.
124+
Compass provides a fully-featured GRPC and HTTP API to interact with Compass server. Both APIs adheres to a set of standards that are rigidly followed. Please refer to [proton](https://github.com/raystack/proton/tree/main/raystack/compass/v1beta1) for GRPC API definitions.
125125

126126
<details>
127127
<summary>Dependencies:</summary>
@@ -166,7 +166,7 @@ docker build . -t compass
166166
Before serving Compass app, we need to run the migration first. Run this docker command to migrate Compass.
167167

168168
```text
169-
$ docker run --rm --net compass_storage -p 8080:8080 -e ELASTICSEARCH_BROKERS=http://es:9200 -e DB_HOST=postgres -e DB_PORT=5432 -e DB_NAME=compass -e DB_USER=compass -e DB_PASSWORD=compass_password odpf/compass compass server migrate
169+
$ docker run --rm --net compass_storage -p 8080:8080 -e ELASTICSEARCH_BROKERS=http://es:9200 -e DB_HOST=postgres -e DB_PORT=5432 -e DB_NAME=compass -e DB_USER=compass -e DB_PASSWORD=compass_password raystack/compass compass server migrate
170170
```
171171

172172
If you are using Compass binary, you can run this command.
@@ -180,7 +180,7 @@ If you are using Compass binary, you can run this command.
180180
Once the migration has been done, Compass server can be started with this command.
181181

182182
```text
183-
docker run --net compass_storage -p 8080:8080 -e ELASTICSEARCH_BROKERS=http://es:9200 -e DB_HOST=postgres -e DB_PORT=5432 -e DB_NAME=compass -e DB_USER=compass -e DB_PASSWORD=compass_password odpf/compass compass server start
183+
docker run --net compass_storage -p 8080:8080 -e ELASTICSEARCH_BROKERS=http://es:9200 -e DB_HOST=postgres -e DB_PORT=5432 -e DB_NAME=compass -e DB_USER=compass -e DB_PASSWORD=compass_password raystack/compass compass server start
184184
```
185185

186186
If you are using Compass binary, you can run this command.
@@ -204,11 +204,11 @@ elasticsearch cluster, set the value of `ES_TEST_SERVER_URL` to the URL of the e
204204

205205
Development of Compass happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Compass.
206206

207-
Read our [contributing guide](https://odpf.github.io/compass/docs/contribute/contribution.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Compass.
207+
Read our [contributing guide](https://raystack.github.io/compass/docs/contribute/contribution.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Compass.
208208

209-
To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/odpf/compass/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
209+
To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/raystack/compass/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
210210

211-
This project exists thanks to all the [contributors](https://github.com/odpf/compass/graphs/contributors).
211+
This project exists thanks to all the [contributors](https://github.com/raystack/compass/graphs/contributors).
212212

213213
## License
214214

0 commit comments

Comments
 (0)