Skip to content

Commit f25ecc8

Browse files
authored
build: add scopp and rpm release (#141)
1 parent 46caf7c commit f25ecc8

File tree

3 files changed

+105
-46
lines changed

3 files changed

+105
-46
lines changed

.goreleaser.yaml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
project_name: stencil
2-
32
release:
4-
draft: true
53
prerelease: auto
6-
74
before:
85
hooks:
96
- go mod tidy
107
- make clean
11-
128
builds:
13-
- main: ./main.go
14-
id: "stencil"
9+
- id: "stencil"
10+
main: ./main.go
1511
binary: stencil
1612
flags:
1713
- -a
@@ -23,7 +19,6 @@ builds:
2319
goarch: [amd64, 386, arm, arm64]
2420
env:
2521
- CGO_ENABLED=0
26-
2722
archives:
2823
- replacements:
2924
darwin: macos
@@ -34,7 +29,6 @@ archives:
3429
format_overrides:
3530
- goos: windows
3631
format: zip
37-
3832
changelog:
3933
use: "github-native"
4034
sort: asc
@@ -43,13 +37,10 @@ changelog:
4337
- "^docs:"
4438
- "^test:"
4539
- "^build:"
46-
4740
checksum:
4841
name_template: "checksums.txt"
49-
5042
snapshot:
5143
name_template: "{{ .Tag }}-next"
52-
5344
dockers:
5445
- goos: linux
5546
goarch: amd64
@@ -60,7 +51,23 @@ dockers:
6051
- "docker.io/odpf/{{.ProjectName}}:latest"
6152
- "docker.io/odpf/{{.ProjectName}}:{{ .Version }}"
6253
- "docker.io/odpf/{{.ProjectName}}:{{ .Tag }}-amd64"
63-
54+
nfpms:
55+
- maintainer: ODPF
56+
description: Schema registry
57+
homepage: https://github.com/odpf/stencil
58+
license: Apache 2.0
59+
formats:
60+
- deb
61+
- rpm
62+
replacements:
63+
darwin: macOS
64+
scoop:
65+
bucket:
66+
owner: odpf
67+
name: scoop-bucket
68+
homepage: "https://github.com/odpf/stencil"
69+
description: "Schema registry"
70+
license: Apache 2.0
6471
brews:
6572
- name: stencil
6673
homepage: "https://github.com/odpf/stencil"

README.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,50 @@ Download the appropriate version for your platform from [releases](https://githu
3838
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.
3939
Ideally, you should install it somewhere in your PATH for easy use. `/usr/local/bin` is the most probable location.
4040

41-
#### Homebrew
41+
#### MacOS
42+
43+
`stencil` is available via a Homebrew Tap, and as downloadable binary from the [releases](https://github.com/odpf/stencil/releases/latest) page:
4244

4345
```sh
44-
# Install stencil (requires homebrew installed)
45-
$ brew install odpf/tap/stencil
46+
brew install odpf/tap/stencil
47+
```
48+
49+
To upgrade to the latest version:
50+
51+
```
52+
brew upgrade stencil
53+
```
54+
55+
#### Linux
56+
57+
`stencil` is available as downloadable binaries from the [releases](https://github.com/odpf/stencil/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively.
58+
59+
#### Windows
60+
61+
`stencil` is available via [scoop](https://scoop.sh/), and as a downloadable binary from the [releases](https://github.com/odpf/stencil/releases/latest) page:
62+
63+
```
64+
scoop bucket add stencil https://github.com/odpf/scoop-bucket.git
65+
```
4666

47-
# Upgrade stencil (requires homebrew installed)
48-
$ brew upgrade stencil
67+
To upgrade to the latest version:
4968

50-
# Check for installed stencil version
51-
$ stencil version
69+
```
70+
scoop update stencil
71+
```
72+
73+
#### Docker
74+
75+
We provide ready to use Docker container images. To pull the latest image:
76+
77+
```
78+
docker pull odpf/stencil:latest
79+
```
80+
81+
To pull a specific version:
82+
83+
```
84+
docker pull odpf/stencil:v0.2.2
5285
```
5386

5487
## Usage
@@ -59,6 +92,8 @@ Stencil has three major components. Server, CLI and clients. Stencil server and
5992

6093
Stencil server provides a way to store and fetch schemas and enforce compatability rules. Run `stencil server --help` to see instructions to manage Stencil server.
6194

95+
Stencil server also provides a fully-featured GRPC and HTTP API to interact with Stencil 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/stencil/v1beta1) for GRPC API definitions.
96+
6297
**CLI**
6398

6499
Stencil CLI allows users to iteract with server to create, view, and search schemas. CLI is fully featured but simple to use, even for those who have very limited experience working from the command line. Run `stencil --help` to see list of all available commands and instructions to use.
@@ -96,7 +131,7 @@ $ make help
96131
$ make build
97132

98133
# Init server config
99-
$ cp app/config.yaml config.yaml
134+
$ cp config/config.yaml config.yaml
100135

101136
# Run database migrations
102137
$ ./stencil server migrate
@@ -124,7 +159,3 @@ Read our [contributing guide](docs/contribute/contribution.md) to learn about ou
124159
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/stencil/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
125160

126161
This project exists thanks to all the [contributors](https://github.com/odpf/stencil/graphs/contributors).
127-
128-
## License
129-
130-
Stencil is [Apache 2.0](LICENSE) licensed.

docs/docs/installation.md

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,60 @@
33
Stencil installation is simple. You can install Stencil on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine. There are several approaches to installing Stencil.
44

55
1. Using a [pre-compiled binary](#binary-cross-platform)
6-
2. Installing with [package manager](#homebrew)
7-
3. Installing from [source](#building-from-source)
8-
4. Installing with [Docker](#using-docker-image)
6+
2. Installing with [package manager](#MacOS)
7+
3. Installing with [Docker](#Docker)
8+
4. Installing from [source](#building-from-source)
99

1010
### Binary (Cross-platform)
1111

1212
Download the appropriate version for your platform from [releases](https://github.com/odpf/stencil/releases) page. Once downloaded, the binary can be run from anywhere.
1313
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.
1414
Ideally, you should install it somewhere in your `PATH` for easy use. `/usr/local/bin` is the most probable location.
1515

16-
### Homebrew
16+
### MacOS
1717

18-
You can install `stencil` on macOS or Linux using Homebrew:
18+
`stencil` is available via a Homebrew Tap, and as downloadable binary from the [releases](https://github.com/odpf/stencil/releases/latest) page:
1919

20-
```bash
21-
# Install stencil (requires homebrew installed)
22-
$ brew install odpf/taps/stencil
20+
```sh
21+
brew install odpf/tap/stencil
22+
```
2323

24-
# Upgrade stencil (requires homebrew installed)
25-
$ brew upgrade stencil
24+
To upgrade to the latest version:
2625

27-
# Check for installed stencil version
28-
$ stencil version
26+
```
27+
brew upgrade stencil
28+
```
29+
30+
#### Linux
31+
32+
`stencil` is available as downloadable binaries from the [releases](https://github.com/odpf/stencil/releases/latest) page. Download the `.deb` or `.rpm` from the releases page and install with `sudo dpkg -i` and `sudo rpm -i` respectively.
33+
34+
### Windows
35+
36+
`stencil` is available via [scoop](https://scoop.sh/), and as a downloadable binary from the [releases](https://github.com/odpf/stencil/releases/latest) page:
37+
38+
```
39+
scoop bucket add stencil https://github.com/odpf/scoop-bucket.git
40+
```
41+
42+
To upgrade to the latest version:
43+
44+
```
45+
scoop update stencil
46+
```
47+
48+
### Docker
49+
50+
We provide ready to use Docker container images. To pull the latest image:
51+
52+
```
53+
docker pull odpf/stencil:latest
54+
```
55+
56+
To pull a specific version:
57+
58+
```
59+
docker pull odpf/stencil:v0.2.2
2960
```
3061

3162
### Building from source
@@ -46,16 +77,6 @@ $ make build
4677
$ ./stencil version
4778
```
4879

49-
### Using Docker image
50-
51-
Stencil ships a Docker image [odpf/stencil](https://hub.docker.com/r/odpf/stencil) that enables you to use `stencil` as part of your Docker workflow.
52-
53-
For example, you can run `stencil help` with this command:
54-
55-
```bash
56-
$ docker run odpf/stencil --help
57-
```
58-
5980
### Verifying the installation
6081

6182
To verify Stencil is properly installed, run `stencil --help` on your system. You should see help output. If you are executing it from the command line, make sure it is on your `PATH` or you may get an error about Stencil not being found.

0 commit comments

Comments
 (0)