Skip to content

Commit 33f257b

Browse files
authored
Merge pull request #72 from qubic/dev
compression
2 parents c13501b + f8cbd5f commit 33f257b

19 files changed

+2904
-1083
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy dev images to GHCR
2+
3+
on:
4+
push:
5+
branches:
6+
- 'empty-ticks-endpoint'
7+
8+
jobs:
9+
push-store-image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 'Checkout GitHub Action'
13+
uses: actions/checkout@main
14+
15+
- name: 'Login to GitHub Container Registry'
16+
uses: docker/login-action@v1
17+
with:
18+
registry: ghcr.io
19+
username: ${{github.actor}}
20+
password: ${{secrets.GITHUB_TOKEN}}
21+
22+
- name: 'Build Inventory Image'
23+
run: |
24+
docker build . --tag ghcr.io/qubic/qubic-archiver:${{github.ref_name}}
25+
docker push ghcr.io/qubic/qubic-archiver:${{github.ref_name}}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ The archive system consists of two services:
1010

1111
## IMPORTANT
1212

13+
> [!WARNING]
14+
> This version of archiver is **INCOMPATIBLE** with versions **v0.x.x**, as it features database compression and a different format for quorum data.
15+
> Archiver **DOES NOT** migrate the database to the new format by itself, and **MAY BREAK** your existing information, if not migrated correctly.
16+
> For a migration tool, please see the [Archiver DB Migrator](https://github.com/qubic/archiver-db-migrator), and make sure to back up your data!
17+
> See [this](db-migration.md) for how to migrate the database to the new format.
18+
1319
Before starting the system, open the `docker-compose.yml` file and make sure that you have a reliable peer list setup
1420
for the `qubic-nodes` service.
1521
This can be configured using the `QUBIC_NODES_QUBIC_PEER_LIST` environment variable.

db-migration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Process of migrating an Archiver instance:
2+
3+
1. Stop archiver.
4+
2. Run the [archiver-db-migrator](https://github.com/qubic/archiver-db-migrator) tool, specifying the path of the old database, and the path of where to store the new database directory. Wait for the process to stop.
5+
3. Rename the old database directory to something else, and the new directory to the old name, thus we don't need to modify the archiver configuration.
6+
4. Update the archiver version in the docker compose file.
7+
5. Start archiver.

go.mod

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,37 @@ go 1.22.2
44

55
require (
66
github.com/ardanlabs/conf v1.5.0
7-
github.com/cloudflare/circl v1.3.7
8-
github.com/cockroachdb/pebble v1.1.0
7+
github.com/cloudflare/circl v1.5.0
8+
github.com/cockroachdb/pebble v1.1.2
99
github.com/google/go-cmp v0.6.0
10-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1
10+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0
1111
github.com/pkg/errors v0.9.1
12-
github.com/qubic/go-node-connector v0.10.1
13-
github.com/qubic/go-schnorrq v1.0.0
14-
github.com/stretchr/testify v1.8.4
15-
go.uber.org/zap v1.26.0
16-
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237
17-
google.golang.org/grpc v1.64.0
18-
google.golang.org/protobuf v1.34.2
12+
github.com/qubic/go-node-connector v0.10.2
13+
github.com/qubic/go-schnorrq v1.0.1
14+
github.com/stretchr/testify v1.9.0
15+
go.uber.org/zap v1.27.0
16+
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9
17+
google.golang.org/grpc v1.67.1
18+
google.golang.org/protobuf v1.35.1
1919
)
2020

2121
require (
2222
github.com/DataDog/zstd v1.4.5 // indirect
2323
github.com/beorn7/perks v1.0.1 // indirect
24-
github.com/bits-and-blooms/bitset v1.13.0 // indirect
25-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
26-
github.com/cockroachdb/errors v1.11.1 // indirect
24+
github.com/bits-and-blooms/bitset v1.14.3 // indirect
25+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
26+
github.com/cockroachdb/errors v1.11.3 // indirect
27+
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect
2728
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
2829
github.com/cockroachdb/redact v1.1.5 // indirect
2930
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
30-
github.com/consensys/gnark-crypto v0.12.1 // indirect
31+
github.com/consensys/gnark-crypto v0.14.0 // indirect
3132
github.com/davecgh/go-spew v1.1.1 // indirect
32-
github.com/getsentry/sentry-go v0.18.0 // indirect
33+
github.com/getsentry/sentry-go v0.27.0 // indirect
3334
github.com/gogo/protobuf v1.3.2 // indirect
34-
github.com/golang/protobuf v1.5.4 // indirect
35+
github.com/golang/protobuf v1.5.3 // indirect
3536
github.com/golang/snappy v0.0.4 // indirect
36-
github.com/klauspost/compress v1.15.15 // indirect
37+
github.com/klauspost/compress v1.16.0 // indirect
3738
github.com/kr/pretty v0.3.1 // indirect
3839
github.com/kr/text v0.2.0 // indirect
3940
github.com/linckode/circl v1.3.71 // indirect
@@ -43,14 +44,14 @@ require (
4344
github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a // indirect
4445
github.com/prometheus/common v0.32.1 // indirect
4546
github.com/prometheus/procfs v0.7.3 // indirect
46-
github.com/rogpeppe/go-internal v1.12.0 // indirect
47+
github.com/rogpeppe/go-internal v1.13.1 // indirect
4748
github.com/silenceper/pool v1.0.0 // indirect
4849
github.com/sirupsen/logrus v1.9.0 // indirect
4950
go.uber.org/multierr v1.10.0 // indirect
5051
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
51-
golang.org/x/net v0.22.0 // indirect
52-
golang.org/x/sys v0.18.0 // indirect
53-
golang.org/x/text v0.14.0 // indirect
54-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
52+
golang.org/x/net v0.28.0 // indirect
53+
golang.org/x/sys v0.26.0 // indirect
54+
golang.org/x/text v0.17.0 // indirect
55+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect
5556
gopkg.in/yaml.v3 v3.0.1 // indirect
5657
)

0 commit comments

Comments
 (0)