Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crt governance parameters update proposal #4696

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
2801fb8
Merge pull request #4752 from kdembler/elastic-logs-auth
Lezek123 May 12, 2023
efd2940
Merge pull request #4755 from mnaamani/update-librocksdb-sys
mnaamani May 15, 2023
87857ba
add workerId to argus status response
kdembler May 15, 2023
a9f09ad
[Argus] allow specifying elastic logs index
kdembler May 15, 2023
baca792
Adjust Orion docker setup: Use separate db service
Lezek123 May 15, 2023
36eeb20
Merge pull request #4757 from Lezek123/argus-fix-cache-drop
mnaamani May 16, 2023
21251e6
Merge pull request #4730 from Lezek123/orion-v2-docker-setup
mnaamani May 16, 2023
1efdd5e
Merge branch 'master' into update-to-polkadot-v0.9.39
mnaamani May 19, 2023
dd04456
Argus: fix typos
zeeshanakram3 May 22, 2023
b234da0
handled exception when QN is unavailable
zeeshanakram3 May 22, 2023
b3eebca
setup.sh drop getsubstrate.io - tries to install deprecated protobuf …
mnaamani May 23, 2023
7fc95a4
rustup install script - non-interactive shell fix
mnaamani May 23, 2023
779c774
setup.sh - rustup update after install
mnaamani May 23, 2023
c777019
setup.sh - work around outdated protobuf package install from getsubs…
mnaamani May 23, 2023
2a94e3b
fix: properly handle prematurely closed requests
zeeshanakram3 May 24, 2023
0866c7b
colossus: storage engine to cleanup failed upload
mnaamani May 31, 2023
d10e0e3
[Colossus] add support for elasticsearch logs auth
kdembler May 31, 2023
eeb58f5
colossus: multer disk storage remove comments
mnaamani May 31, 2023
377ee91
colossus: handle early abort during upload
mnaamani May 31, 2023
a22e4bf
colossus: prettier
mnaamani May 31, 2023
d93877d
Merge pull request #4770 from mnaamani/update-setup-script
mnaamani Jun 1, 2023
139c5b7
improve flag parsing
kdembler Jun 1, 2023
661b796
update README, CHANGELOG, bump version
kdembler Jun 1, 2023
ac3c13a
update from node14 to node18
mnaamani Jun 1, 2023
0e1462b
Merge pull request #4776 from kdembler/colossus-elastic-auth
mnaamani Jun 1, 2023
ce4f71f
missed some node version fixes in github workflows
mnaamani Jun 1, 2023
f480c0c
Merge branch 'master' into colossus-handle-canceled-uploads
mnaamani Jun 1, 2023
9aac898
colossus: update changelog
mnaamani Jun 1, 2023
02e036b
remove outdated filebeat config & Dockerfile
zeeshanakram3 Jun 1, 2023
cca088b
add @opentelemetry/ dependencies & instrumentation
zeeshanakram3 Jun 1, 2023
b3c9a43
added otlp.endpoint & otlp.attributes configuration options
zeeshanakram3 Jun 2, 2023
257e492
add docker-compose.elasticsearch.yml & start-elasticsearch-stack.sh
zeeshanakram3 Jun 2, 2023
967060a
update distributor-node/docker-compose.yml
zeeshanakram3 Jun 2, 2023
8c0494e
fix lint
zeeshanakram3 Jun 2, 2023
3e7c288
workflows: publish argus colossus docker images
mnaamani Jun 2, 2023
c940d49
workflow: fix setting variable
mnaamani Jun 2, 2023
ab0c74f
publish docker images: fix colossus.Dockerfile and use node18
mnaamani Jun 2, 2023
3da7158
colossus argus docker builds
mnaamani Jun 5, 2023
d742314
fix build of images with buildx, add tests before publishing
mnaamani Jun 5, 2023
ce431f9
use correct context in docker/build-push action to reuse built artifacts
mnaamani Jun 5, 2023
7c8d9cc
devops: fix rustup install ansible playbook
mnaamani Jun 5, 2023
32cc846
docker-compose fix docker image names for distributor-node
mnaamani Jun 5, 2023
070b67e
fix auth when checking docker manifest
mnaamani Jun 6, 2023
475ee8a
skip query-node joystream/apps image
mnaamani Jun 6, 2023
0fae438
joystream/apps image published only from master branch
mnaamani Jun 6, 2023
4d9e36c
colossus: add option to not rotate logs on time basis
mnaamani Jun 6, 2023
0b505cf
fix joystream-node docker build workflow
mnaamani Jun 6, 2023
b3cc70c
common entrypoint in docker-compose, publish latest tag from master
mnaamani Jun 7, 2023
b719ce1
Merge pull request #4786 from mnaamani/fix-docker-build-workflow-on-push
mnaamani Jun 8, 2023
895ed9e
Merge pull request #4777 from mnaamani/colossus-handle-canceled-uploads
mnaamani Jun 8, 2023
08f4c3c
Merge pull request #4785 from mnaamani/colossus-logs-roation-none
mnaamani Jun 8, 2023
3bd88e4
Merge branch 'master' into publish-docker-apps
mnaamani Jun 8, 2023
4eca28f
add missing mkdir dependency for storage-node
mnaamani Jun 8, 2023
420ff2d
allow additional time for QN to catchup after 10K channel creating test
mnaamani Jun 8, 2023
d27733e
bump avj version number
zeeshanakram3 Jun 8, 2023
c0be3e9
add uri validation for endpoint properties in schema
zeeshanakram3 Jun 8, 2023
695c66a
fix: allow omitting optional config keys from config.yml when specify…
zeeshanakram3 Jun 8, 2023
a6e3a49
allow even more time for storageSync flow to wait for QN processing t…
mnaamani Jun 9, 2023
da3bdf3
storage sync wait for qn to sync
mnaamani Jun 9, 2023
2ec35de
mkdirp missing in yarn.lock
mnaamani Jun 9, 2023
ca1910e
Merge pull request #4758 from kdembler/argus-status-worker
mnaamani Jun 9, 2023
9eeda06
fix mkdirp version
mnaamani Jun 9, 2023
0c9c506
Merge pull request #4759 from kdembler/argus-elastic-index
mnaamani Jun 9, 2023
86a278a
Merge pull request #4769 from zeeshanakram3/Origo_fix_unhandled_QN_ex…
mnaamani Jun 12, 2023
b87bd51
bump 'ajv' vesrion to ^8.0.0
zeeshanakram3 Jun 12, 2023
cc43a96
Merge pull request #4788 from zeeshanakram3/argus_fix_config_parsing_bug
mnaamani Jun 12, 2023
19301d4
Merge remote-tracking branch 'upstream/master' into origo_opentelemet…
zeeshanakram3 Jun 13, 2023
55765b0
generate config docs
zeeshanakram3 Jun 13, 2023
a0515b9
update Argus CHANGELOG
zeeshanakram3 Jun 13, 2023
13d4c99
Merge remote-tracking branch 'upstream/master'
zeeshanakram3 Jun 17, 2023
08521b7
place schema.graphql into dependant packages directory
mnaamani Jun 19, 2023
f879264
Merge branch 'master' into publish-docker-apps
mnaamani Jun 19, 2023
4077bca
checkin schema.graphql in cli
mnaamani Jun 19, 2023
e7543fa
joystream-apps-docker build without depending on pre-building of quer…
mnaamani Jun 19, 2023
889585e
display storage node logs when starting test storage infra
mnaamani Jun 20, 2023
d61783a
fix build of storage-node-client in docker image for distributor
mnaamani Jun 20, 2023
6fdfd69
Merge branch 'master' into update-to-node-18
mnaamani Jun 21, 2023
d31c0e5
colossus: support multiple transactor accounts and verify correct key…
mnaamani Jun 26, 2023
6a8c989
colossus: bucketIds can be specified when running server
mnaamani Jun 26, 2023
f6a182b
colossus: if keypair cannot be unlocked, exit instead of just warning.
mnaamani Jun 26, 2023
2f124aa
integration-tests: fix renamed command arg for storage-node
mnaamani Jun 26, 2023
9d23bf2
colossus: better handling of failure to unlock key files
mnaamani Jun 26, 2023
b7d709a
apps.Dockerfile -> query-node.Dockerfile
mnaamani Jun 30, 2023
ff48294
query-node.Dockerfile build @joystream/js
mnaamani Jul 1, 2023
873e6b1
better docker layer caching
mnaamani Jul 2, 2023
489781b
missing deps in docker layer
mnaamani Jul 2, 2023
1619781
do not commit auto generated schema.graphql for cli,integration tests
mnaamani Jul 5, 2023
aee116a
Merge pull request #4780 from Joystream/publish-docker-apps
mnaamani Jul 6, 2023
b4327c9
Merge branch 'master' into update-to-node-18
mnaamani Jul 6, 2023
3d304e6
update to latest yarn v1.22.19 - update some docs
mnaamani Jul 6, 2023
8903101
don't force new nodejs vesion, only through volta,and CI actions
mnaamani Jul 6, 2023
006ba24
Merge branch 'master' into colossus-3.5.0
mnaamani Jul 6, 2023
2c83f6a
docker-compose-no-bind-volumes use node18
mnaamani Jul 7, 2023
b619040
remove otel configuration from distributor-node package
zeeshanakram3 Jul 10, 2023
b4855dc
add generalized @joystream/opentelemetry package
zeeshanakram3 Jul 10, 2023
4f5d034
add otel instrumentation for query node
zeeshanakram3 Jul 10, 2023
8d4eb8c
add otel instrumentation for storage node
zeeshanakram3 Jul 10, 2023
08ed70d
WIP: a0515b9492 update Argus CHANGELOG
zeeshanakram3 Jul 10, 2023
a4e7154
run docker services wit otel tracing
zeeshanakram3 Jul 10, 2023
c964667
fix: loading otel env vars
zeeshanakram3 Jul 10, 2023
fabd8bb
fix: query node build script
zeeshanakram3 Jul 10, 2023
a479360
ansible playbook install tools node v18
mnaamani Jul 11, 2023
7287204
address CR
zeeshanakram3 Jul 12, 2023
2ea8735
Merge pull request #4772 from zeeshanakram3/origo_fix_-ERR_HTTP_HEADE…
mnaamani Jul 12, 2023
c5f2699
otel: remove span names from diretibutor/storage-node instrumentations
zeeshanakram3 Jul 12, 2023
d3a473f
install @joystream/opentelemetry inside docker images
zeeshanakram3 Jul 12, 2023
80d7169
Merge branch 'origo_opentelemetry_instrumentation' of https://github.…
zeeshanakram3 Jul 12, 2023
b9aa169
print service token generation error in start-elasticsearch-stach.sh …
zeeshanakram3 Jul 13, 2023
ad084e9
address change requests
zeeshanakram3 Jul 13, 2023
7c658a8
fix: disable dns instrumentation in the default opentelemetry instrum…
zeeshanakram3 Jul 13, 2023
3f987d2
fix no bind volumes docker image tests
mnaamani Jul 13, 2023
b33e3bd
no docker login in pull_request flow
mnaamani Jul 13, 2023
3ec8eeb
docker-compose fix db name and running tests in apps workflow
mnaamani Jul 13, 2023
de501f8
Run SP/DP/QN without telemetry in docker-compose setup
zeeshanakram3 Jul 14, 2023
8a2a812
Merge pull request #4779 from zeeshanakram3/origo_opentelemetry_instr…
mnaamani Jul 14, 2023
6c7f4ea
fix typo in docker image name
mnaamani Jul 14, 2023
8089cab
Merge pull request #4799 from mnaamani/fix-docker-push-image-name
mnaamani Jul 14, 2023
0c3f1f0
another docker image name typo
mnaamani Jul 14, 2023
9b3e46e
[Argus] update elastic log level in example config
kdembler Jul 14, 2023
a2fae87
Merge pull request #4801 from kdembler/patch-1
mnaamani Jul 14, 2023
a89e379
Merge branch 'master' into colossus-3.5.0
mnaamani Jul 14, 2023
7d80430
colossus: update changelog
mnaamani Jul 14, 2023
3b3dc09
Merge pull request #4800 from mnaamani/fix-docker-push-image-name
mnaamani Jul 15, 2023
b87ee64
colossus: allow server to run even if no transactor key provided for …
mnaamani Jul 15, 2023
b9af4df
Merge branch 'master' into update-to-node-18
mnaamani Jul 16, 2023
e1d2834
colossus: allow startup with any worker id
mnaamani Jul 16, 2023
204d288
Merge remote-tracking branch 'upstream/master' into fix_sendExtrinsic…
zeeshanakram3 Jul 17, 2023
0c6d358
fix: handling of Finalized txs in sendExtrinsic function
zeeshanakram3 Jul 17, 2023
048f23c
bump package versions & update CHANGELOG
zeeshanakram3 Jul 17, 2023
9a35c55
Merge pull request #4803 from zeeshanakram3/fix_sendExtrinsic_functio…
mnaamani Jul 18, 2023
0a5fb35
Merge branch 'master' into colossus-3.5.0
mnaamani Jul 18, 2023
a2b84fb
Dockerfile no need to force x86_64 platform
mnaamani Jul 19, 2023
fcc3c97
install latest docker compose, uninstall old version in ansible playbook
mnaamani Jul 19, 2023
45c6ce5
simpler query-node start.sh
mnaamani Jul 19, 2023
7c7939b
older docker version command does not support json
mnaamani Jul 19, 2023
48a37b4
handle old docker version command better
mnaamani Jul 19, 2023
d03a689
configurable telemetry
mnaamani Jul 19, 2023
af7b0b3
query-node start.sh, allow more time for processor to come up
mnaamani Jul 20, 2023
59ec686
just sleep
mnaamani Jul 20, 2023
c2bd13f
fix for github runner running out of diskspace
mnaamani Jul 20, 2023
a89d608
setup.sh do not replace docker installtion, but install latest docker…
mnaamani Jul 20, 2023
76b9950
fix remaining engine versions to not break things
mnaamani Jul 20, 2023
38faadf
updated README to suggest workaround if dev machine doesn't support n…
mnaamani Jul 20, 2023
3a1bea1
make binaries and chainspec easier to find
mnaamani Jul 20, 2023
65303f5
exclude docs from code shasum calculation
mnaamani Jul 20, 2023
7c650c7
include joy-mainnet.json chainspec in joystream-node docker image
mnaamani Jul 20, 2023
0d3c3ed
minimum required node engine 14.18.0
mnaamani Jul 20, 2023
4a985be
all package engine configs set to node >=14.18.0
mnaamani Jul 20, 2023
b6ae1be
drop any remaining ref to joystream testnet
mnaamani Jul 20, 2023
c324a60
add monorepo changelog
mnaamani Jul 20, 2023
fd67725
colossus: code cleanup and revert allowing invalid workerId on startup
mnaamani Jul 20, 2023
ac45ce8
Merge pull request #4804 from Joystream/docker-compose-tweaks
mnaamani Jul 22, 2023
ec89b64
Merge branch 'master' into update-to-node-18
mnaamani Jul 22, 2023
91a6224
Merge branch 'master' into colossus-3.5.0
mnaamani Jul 22, 2023
5b4270a
Update CHANGELOG.md
mnaamani Jul 22, 2023
ec3b89d
Update CHANGELOG.md
mnaamani Jul 22, 2023
e0e8022
Merge branch 'master' into readme-links-to-binaries
mnaamani Jul 22, 2023
c01ded7
Merge branch 'master' into package-chainspec-with-docker-image
mnaamani Jul 22, 2023
6ca3cbf
Merge pull request #4778 from mnaamani/update-to-node-18
mnaamani Jul 24, 2023
17eeb79
Merge branch 'master' into colossus-3.5.0
mnaamani Jul 24, 2023
8458489
Merge pull request #4796 from mnaamani/colossus-3.5.0
mnaamani Jul 26, 2023
59df56d
Merge branch 'master' into readme-links-to-binaries
mnaamani Jul 26, 2023
0bff496
drop reference to sudo in runtime readme
mnaamani Jul 26, 2023
999090e
Merge pull request #4806 from mnaamani/readme-links-to-binaries
mnaamani Jul 26, 2023
c478aca
Merge branch 'master' into package-chainspec-with-docker-image
mnaamani Jul 26, 2023
b50cfda
build docker workflow: wait for server to be ready
mnaamani Jul 26, 2023
e713ac9
wait after all aws cloudformation stacks are deployed for server to b…
mnaamani Jul 27, 2023
29676f1
Merge pull request #4811 from mnaamani/package-chainspec-with-docker-…
mnaamani Jul 28, 2023
eeaa572
Merge branch 'master' into nara
mnaamani Jul 29, 2023
f936481
Merge branch 'master' into update-to-polkadot-v0.9.39
mnaamani Jul 29, 2023
0825bd1
Merge branch 'nara' into update-to-polkadot-v0.9.39
mnaamani Jul 29, 2023
09fac54
update cargo-chef to work with latest nightly
mnaamani Jul 30, 2023
2f82527
fix cargo-chef install no --locked arg
mnaamani Jul 30, 2023
d53ddd4
use Weight:from_parts in place of from_ref_time which is deprecated
mnaamani Jul 30, 2023
51fb763
generate weights using Weight:from_parts in template
mnaamani Jul 31, 2023
19de3f9
Merge pull request #4705 from Joystream/update-to-polkadot-v0.9.39
mnaamani Jul 31, 2023
7b2e007
Merge branch 'nara' into crt_release
Sep 4, 2023
8dc29f3
chore: :rotating_light: update chain metadata and types
Sep 5, 2023
ff188bc
fix: :rotating_light: silence yarn cargo-checks
Sep 5, 2023
244ec8d
feat: add bm for uby on amm
ignazio-bovo Nov 28, 2022
a94cb05
feat: add benchmark for `sell_on_amm`
ignazio-bovo Nov 28, 2022
88c9580
chore: add `activate_amm` bm
ignazio-bovo Nov 28, 2022
b07d790
feat: add `deactivate_amm` bm
ignazio-bovo Nov 28, 2022
4df610a
feat: add tests on benchmarks
ignazio-bovo Nov 28, 2022
94bf5e0
feat: add weights on project token
ignazio-bovo Nov 28, 2022
0f06a23
fix: cargo test errors on benchmarks
ignazio-bovo Dec 2, 2022
c2247bb
fix: benchmarks
ignazio-bovo Dec 2, 2022
3eb6752
feat: generate weights
ignazio-bovo Dec 5, 2022
7f48c3f
feat: add max yearly patronage rate
ignazio-bovo Dec 7, 2022
171473a
feat: add propsal for patronage rate update
ignazio-bovo Dec 8, 2022
f75410a
fix: bound input on multi-transfer
ignazio-bovo Dec 8, 2022
e723c0e
fix: deadline & max tranfer bound
ignazio-bovo Dec 12, 2022
421d2a8
fix: transfer outputs now statically bounded
ignazio-bovo Dec 12, 2022
406e621
fix: patronage rate computation
ignazio-bovo Dec 15, 2022
73cdb73
refactor: patronage test
ignazio-bovo Dec 16, 2022
f7bd7f3
fix: interest rate approximation
ignazio-bovo Dec 19, 2022
25696a2
fix: all tests passing
ignazio-bovo Dec 19, 2022
b5451fc
fix: patronage rate computation
ignazio-bovo Dec 20, 2022
dd7f71c
chore: add test with >100% rate
ignazio-bovo Dec 20, 2022
e8ca2be
chore: add some explanatory comments
ignazio-bovo Dec 20, 2022
1f8ec8e
feat: add test for slope parameter too low
Mar 6, 2023
cf61e1d
feat: add slope parameter check & fix test values
Mar 6, 2023
2b04121
fix: adjust content pallet & fix warnings
Mar 7, 2023
5ad1d61
fix: adjust chain_spec file with slope parameter
Mar 7, 2023
4e87123
fix: build error
Mar 7, 2023
d238b16
fix: add numerical computation
Mar 7, 2023
d7ebfe0
fix: integrate computation with token pallet
Mar 7, 2023
8877137
fix: failing tests
Mar 8, 2023
3cae66e
fix: failing tests & build errors
Mar 8, 2023
15a0611
fix: failing tests & build errors
Mar 8, 2023
8a87cf7
refactor: type traits
Mar 10, 2023
05bde61
fix: build errors
Mar 10, 2023
35e7a8f
fix: benchmarks cargo checks errors
Mar 11, 2023
2ebd16b
fix: build error and generte types and metadata
Mar 13, 2023
ac67a8c
fix: linter
May 11, 2023
b1afeb6
fix: misc error after merged
May 11, 2023
eb21457
fix: linter
May 11, 2023
1dccef6
Update runtime-modules/project-token/src/tests/patronage.rs
May 11, 2023
0bc8300
Update runtime-modules/project-token/src/tests/patronage.rs
May 11, 2023
de0b741
fix: crt benchmarks
May 11, 2023
5a70d9f
fix: content benchmarks
May 11, 2023
9ac69c4
fix: remove dead code
May 11, 2023
1e2f2fa
fix: macro
May 12, 2023
79fe644
fix: error
May 12, 2023
567bbec
fix: TryInto error
May 12, 2023
ccec401
fix: timestamp not needed
May 12, 2023
2f7a95e
fix: macro
May 12, 2023
51118f5
fix: macro days
May 12, 2023
a61ce7a
fix: macro
May 15, 2023
fe404a5
fix: macro
May 15, 2023
ae6393d
fix: clippy
May 15, 2023
cbc0bdf
fix: testing propsals
May 15, 2023
0168146
fix: playground proposal config
May 15, 2023
ae9c219
Update runtime-modules/project-token/src/benchmarking.rs
May 18, 2023
f013811
fix: rename
May 18, 2023
eaebad9
fix: replace magic numbers in patronage
May 18, 2023
a637f52
fix: address changes
May 18, 2023
e1535bf
fix: amm test
May 19, 2023
9fe6e76
fix: make eval a method
May 19, 2023
a52af08
fix: clippy useless conversion
May 19, 2023
a46e709
fix: refactor test constants
May 19, 2023
2777caf
fix: benchmarks
May 19, 2023
009e01d
fix: content benchmarks
May 19, 2023
f7d3fbc
fix: :rotating_light: slice indexing warning by clippy
Sep 4, 2023
28e77ab
fix: :rotating_light: post rebase fixes
Sep 5, 2023
fc5d138
feat: add extrinsics and parameters
Mar 9, 2023
dbc742e
feat: add proposal integration
Mar 9, 2023
a2444ba
feat: add benchmarks
Mar 10, 2023
0b6ae40
fix: build errors and generate types & metadata
Mar 13, 2023
1af0354
style: :rotating_light: fix clippy errorors
Sep 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ target/
.vscode/
query-node/**/dist
query-node/lib
tests/
!tests/network-tests/proposal-parameters.json
devops/
!devops/eslint-config
!devops/prettier-config
!devops/prettier-config
47 changes: 43 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
COMPOSE_PROJECT_NAME=joystream
PROJECT_NAME=query_node

# We will use a single postgres service with multiple databases
# The env variables below are by default used by all services and should be
# overriden in local env files
# DB config
# We use a single postgres service for both the query node indexer and processor.
# The default `DB_*` environment variables point to query node processor's database.
# The DB_NAME env is overriden with INDEXER_DB_NAME in the indexer's service docker-compose config.
# When running other services, those values should be overriden by their local environment configs.
# Query node DB config:
INDEXER_DB_NAME=query_node_indexer
DB_NAME=query_node_processor
DB_USER=postgres
Expand Down Expand Up @@ -90,6 +91,44 @@ HCAPTCHA_SECRET=
BALANCE_CREDIT=300000000000
BALANCE_LOCKED=300000000000

# ====================================== ORION ======================================
# Orion db config
# Overrides `DB_*` environment variables for orion services in docker-compose.yml
# We use a single postgres service for both:
# - Subsquid archive's database (squid-archive, squid-archive-gateway) and
# - Orion's database (orion_processor, orion_graphql-server).
# ORION_DB_NAME is the name of the Orion's database, while SQUID_ARCHIVE_DB_NAME
# is the name of the Subsquid archive database.
SQUID_ARCHIVE_DB_NAME=squid_archive
ORION_DB_NAME=orion
ORION_DB_USER=postgres
ORION_DB_PASS=postgres
ORION_DB_PORT=5433

# Orion / Subsquid archive service ports
ORION_API_PORT=4350
PROCESSOR_PROMETHEUS_PORT=3337
SQUID_ARCHIVE_GATEWAY_PORT=8000

# Other Orion configs
SUPPORT_NO_CATEGORY_VIDEOS=true
SUPPORT_NEW_CATEGORIES=true
KILL_SWITCH_ON=false
VIDEO_VIEW_PER_IP_TIME_LIMIT=30
VIDEO_RELEVANCE_VIEWS_TICK=50
RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5]"
OPERATOR_SECRET=this-is-not-so-secret-change-it
MAX_CACHED_ENTITIES=1000
APP_PRIVATE_KEY=this-is-not-so-secret-change-it
TRUSTED_REVERSE_PROXIES=1
# =====================================================================================

## Telemetry
# yes/no
TELEMETRY_ENABLED=no
# TELEMETRY_ENDPOINT=http://apm-server:8200
TELEMETRY_ENDPOINT=http://collector:4318

# joystream/node docker image tag
# We do not provide a default value - scripts that startup a joystream-node service
# Should be explicit about what version to use.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ jobs:

docker run -d --entrypoint tail --name temp-container-joystream-node $IMAGE-amd64 -f /dev/null

RESULT=$(docker exec temp-container-joystream-node b2sum -l 256 runtime.compact.wasm | awk '{print $1}')
RESULT=$(docker exec temp-container-joystream-node b2sum -l 256 runtime.compact.compressed.wasm | awk '{print $1}')
VERSION_AND_COMMIT=$(docker exec temp-container-joystream-node /joystream/node --version | awk '{print $2}' | cut -d- -f -2)
echo "::set-output name=blob_hash::${RESULT}"
echo "::set-output name=version_and_commit::${VERSION_AND_COMMIT}"

docker cp temp-container-joystream-node:/joystream/runtime.compact.wasm ./joystream_runtime_${{ github.event.inputs.tag }}.wasm
docker cp temp-container-joystream-node:/joystream/runtime.compact.compressed.wasm ./joystream_runtime_${{ github.event.inputs.tag }}.wasm
docker cp temp-container-joystream-node:/joystream/node ./joystream-node
tar -czvf joystream-node-$VERSION_AND_COMMIT-x86_64-linux-gnu.tar.gz joystream-node

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-node-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:
EC2InstanceType=${{ steps.network_config.outputs.instanceType }},
VolumeSize=${{ steps.network_config.outputs.volumeSize }}

- name: Wait for docker build server to be ready
run: |
sleep 30

- name: Prepare inventory for Ansible
run: |
VAL1="${{ steps.deploy_stack.outputs.Val1PublicIp }}"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:
# Make sure ami image is available in the region specified in configure aws creds step
parameter-overrides: 'KeyName=joystream-github-action-key-new,EC2InstanceType=t2.xlarge,EC2AMI=ami-06b4d9ba1f23a8da4'

- name: Wait for docker build server to be ready
run: |
sleep 30

- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
Expand Down
101 changes: 87 additions & 14 deletions .github/workflows/joystream-apps-docker.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,103 @@
name: Build joystream/apps and publish to Docker Hub
name: Publish Colossus/Argus/QueryNode Docker images

on:
workflow_dispatch:
inputs:
tag_suffix:
description: 'Tag suffix'
required: true
pull_request:

jobs:
docker:
build_and_publish:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Extract branch name

- uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Extract Package Versions
id: extract_versions
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
run: |
echo "colossus_version=$(cat storage-node/package.json | jq -r '.version')" >> $GITHUB_OUTPUT
echo "argus_version=$(cat distributor-node/package.json | jq -r '.version')" >> $GITHUB_OUTPUT
echo "qn_version=$(cat query-node/package.json | jq -r '.version')" >> $GITHUB_OUTPUT

- name: Make some space
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name == 'workflow_dispatch'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build

- name: Build joystream-node
run: RUNTIME_PROFILE=TESTING ./build-node-docker.sh

# docker/build-push-action doc:
# Be careful because any file mutation in the steps that precede the
# build step will be ignored, including processing of the .dockerignore file
# since the context is based on the Git reference. However, you can use
# the Path context using the context input alongside the actions/checkout action
# to remove this restriction.
- name: Build storage-node
uses: docker/build-push-action@v3
with:
file: apps.Dockerfile
push: true
tags: joystream/apps:${{ steps.extract_branch.outputs.branch }}-${{ github.event.inputs.tag_suffix }}
# Do not use local dir context to ensure we can build from a commit directly
# context: .
file: colossus.Dockerfile
push: false
load: true
tags: joystream/storage-node:latest
- name: Build distributor-node
uses: docker/build-push-action@v3
with:
# Do not use local dir context to ensure we can build from a commit directly
# context: .
file: distributor-node.Dockerfile
push: false
load: true
tags: joystream/distributor-node:latest
- name: Build query-node
uses: docker/build-push-action@v3
with:
# Do not use local dir context to ensure we can build from a commit directly
# context: .
file: query-node.Dockerfile
push: false
load: true
tags: joystream/query-node:latest

- name: Test with latest images
run: |
yarn build:packages
cp docker-compose-no-bind-volumes.yml docker-compose.yml
./tests/network-tests/run-tests.sh content-directory

- name: Push new versions
if: github.event_name == 'workflow_dispatch'
run: |
docker image tag joystream/storage-node:latest joystream/storage-node:${{ steps.extract_versions.outputs.colossus_version }}
docker image tag joystream/distributor-node:latest joystream/distributor-node:${{ steps.extract_versions.outputs.argus_version }}
docker image tag joystream/query-node:latest joystream/query-node:${{ steps.extract_versions.outputs.qn_version }}
docker push joystream/storage-node:${{ steps.extract_versions.outputs.colossus_version }}
docker push joystream/distributor-node:${{ steps.extract_versions.outputs.argus_version }}
docker push joystream/query-node:${{ steps.extract_versions.outputs.qn_version }}

- name: Push latest tag
if: github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch'
run: |
docker push joystream/storage-node:latest
docker push joystream/distributor-node:latest
docker push joystream/query-node:latest

4 changes: 2 additions & 2 deletions .github/workflows/joystream-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
node-version: [14.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/joystream-node-docker-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,36 @@ jobs:
export IMAGE_EXISTS=$(docker manifest inspect ${{ env.REPOSITORY }}:${{ steps.compute_shasum.outputs.shasum }} > /dev/null ; echo $?)
echo "::set-output name=image_exists::${IMAGE_EXISTS}"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
# uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # v1.7
uses: docker/setup-buildx-action@v2
id: builder1
if: ${{ steps.compute_image_exists.outputs.image_exists == 1 }}

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-dev
if: ${{ steps.compute_image_exists.outputs.image_exists == 1 }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
file: joystream-node.Dockerfile
# arm64 cross compiling takes longer than 6h, so we only build for amd64
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64
build-args: |
CARGO_FEATURES=${{ matrix.cargo_features }}
CODE_SHASUM=${{ steps.compute_shasum.outputs.shasum }}
push: true
tags: ${{ env.REPOSITORY }}:${{ steps.compute_shasum.outputs.shasum }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
builder: ${{ steps.builder1.outputs.name }}
if: ${{ steps.compute_image_exists.outputs.image_exists == 1 }}
2 changes: 1 addition & 1 deletion .github/workflows/joystream-node-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: '18.x'

- id: compute_shasum
name: Compute runtime code shasum
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/joystream-node-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,21 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: '18.x'

- id: compute_shasum
name: Compute runtime code shasum
run: |
export RUNTIME_CODE_SHASUM=`scripts/runtime-code-shasum.sh`
echo "::set-output name=shasum::${RUNTIME_CODE_SHASUM}"

# docker manifest inspect command requires authentication
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Check if we already have the main image on Dockerhub
id: compute_main_image_exists
# Will output 0 if image exists and 1 if does not exists
Expand Down Expand Up @@ -71,8 +78,14 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: '18.x'

# docker manifest inspect requires authentication
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Check if we have pre-built image on Dockerhub
id: compute_image_exists
# Will output 0 if image exists and 1 if does not exists
Expand Down Expand Up @@ -105,6 +118,10 @@ jobs:
parameter-overrides: 'KeyName=${{ env.KEY_NAME }},EC2AMI=${{ matrix.ec2ami }},EC2InstanceType=${{ matrix.ec2type }}'
if: ${{ steps.compute_image_exists.outputs.image_exists == 1 }}

- name: Wait for docker build server to be ready
run: |
sleep 30

- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
Expand Down
Loading
Loading