Skip to content

Commit

Permalink
chore: rename to raystack (#223)
Browse files Browse the repository at this point in the history
* chore: rename to raystack

* chore: update proto path

* chore: upgrade go version

* chore: fix typo
  • Loading branch information
ravisuhag authored Jun 30, 2023
1 parent dac97c3 commit c447e54
Show file tree
Hide file tree
Showing 171 changed files with 3,629 additions and 3,511 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: "./Dockerfile.dev"
tags: |
odpf/compass:dev
- name: Checkout code
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: "./Dockerfile.dev"
tags: |
raystack/compass:dev
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.18"
go-version: "1.20"
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
name: release
name: Release

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
- "v*"

jobs:
release:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.18'
- name: Checkout
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.6.1
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
ports:
- 9200:9200
env:
ES_TEST_SERVER_URL: 'http://elasticsearch:9200'
ES_TEST_SERVER_URL: "http://elasticsearch:9200"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: "1.20"
- name: Install dependencies
run: sudo apt-get install build-essential
- name: Install packages
Expand All @@ -28,4 +28,4 @@ jobs:
run: |
go get github.com/mattn/goveralls
go install github.com/mattn/goveralls
goveralls -coverprofile=coverage.txt -service=github
goveralls -coverprofile=coverage.txt -service=github
84 changes: 39 additions & 45 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,75 @@
project_name: compass

release:
prerelease: auto

before:
hooks:
- go mod tidy
- make clean

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^build:"

builds:
- id: compass
main: ./main.go
binary: compass
flags: [-a]
ldflags:
- -X github.com/odpf/compass/cli.Version={{.Tag}}
- -X github.com/odpf/compass/cli.BuildCommit={{.FullCommit}}
- -X github.com/odpf/compass/cli.BuildDate={{.Date}}
- -X github.com/raystack/compass/cli.Version={{.Tag}}
- -X github.com/raystack/compass/cli.BuildCommit={{.FullCommit}}
- -X github.com/raystack/compass/cli.BuildDate={{.Date}}
goos: [linux, darwin, windows]
goarch: [amd64, 386, arm, arm64] # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library
goarch: [amd64, 386, arm, arm64]
env:
- CGO_ENABLED=0

archives:
- replacements:
darwin: macos
linux: linux
windows: windows
386: i386
amd64: x86_64
- id: "archives"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^build:"

dockers:
- goos: linux
goarch: amd64
ids:
- compass
dockerfile: Dockerfile
- id: dockerhub
image_templates:
- "docker.io/odpf/{{.ProjectName}}:latest"
- "docker.io/odpf/{{.ProjectName}}:{{ .Version }}"
- "docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64"
- "docker.io/raystack/{{.ProjectName}}:latest"
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"

nfpms:
- maintainer: ODPF
description: Metadata Discovery and Lineage Service
homepage: https://github.com/odpf/compass
- maintainer: Raystack
description: Data catalog service
homepage: https://github.com/raystack/compass
license: Apache 2.0
formats:
- deb
- rpm
replacements:
darwin: macOS
scoop:
bucket:
owner: odpf
name: scoop-bucket
homepage: "https://github.com/odpf/compass"
description: "Metadata Discovery and Lineage Service"
license: Apache 2.0
- apk

scoops:
- homepage: "https://github.com/raystack/compass"
description: "Data catalog service"
license: Apache 2.0
bucket:
owner: raystack
name: scoop-bucket

brews:
- name: compass
homepage: "https://github.com/odpf/compass"
description: "Metadata Discovery and Lineage Service"
homepage: "https://github.com/raystack/compass"
description: "Data catalog service"
tap:
owner: odpf
owner: raystack
name: homebrew-tap
license: "Apache 2.0"
folder: Formula

dependencies:
- name: git
install: |-
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME="github.com/odpf/compass"
NAME="github.com/raystack/compass"
VERSION=$(shell git describe --always --tags 2>/dev/null)
COVERFILE="/tmp/compass.coverprofile"
PROTON_COMMIT := "eeec3f31b21ee7d00b016fcdcd7070606aa33366"
Expand Down Expand Up @@ -31,9 +31,9 @@ lint: ## Lint checker
golangci-lint run

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

install: ## Install required dependencies
Expand Down
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Compass

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

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.

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

Explore the following resources to get started with Compass:

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

## Installation

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)
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)

#### Binary (Cross-platform)

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.
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.
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.
Ideally, you should install it somewhere in your PATH for easy use. `/usr/local/bin` is the most probable location.

#### macOS

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

```sh
brew install odpf/tap/compass
brew install raystack/tap/compass
```

To upgrade to the latest version:
Expand All @@ -62,14 +62,14 @@ compass version

#### Linux

`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.
`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.

#### Windows

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

```
scoop bucket add compass https://github.com/odpf/scoop-bucket.git
scoop bucket add compass https://github.com/raystack/scoop-bucket.git
```

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

```
docker pull odpf/compass:latest
docker pull raystack/compass:latest
```

To pull a specific version:

```
docker pull odpf/compass:v0.3.2
docker pull raystack/compass:v0.3.2
```

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

```
mkdir -p $HOME/.config/odpf
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"
mkdir -p $HOME/.config/raystack
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"
```

## Usage
Expand All @@ -121,7 +121,7 @@ compass reference

#### API

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.
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.

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

```text
$ 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
$ 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
```

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

```text
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
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
```

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

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.

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.
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.

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.
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.

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

## License

Expand Down
Loading

0 comments on commit c447e54

Please sign in to comment.