Skip to content

Add nix config for subsquid image and publishing CI steps#2584

Merged
mergify[bot] merged 7 commits intomainfrom
CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest
Dec 7, 2022
Merged

Add nix config for subsquid image and publishing CI steps#2584
mergify[bot] merged 7 commits intomainfrom
CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest

Conversation

@KaiserKarel
Copy link
Contributor

No description provided.

@KaiserKarel KaiserKarel requested review from a team as code owners December 7, 2022 06:49
@itsbobbyzz
Copy link

Task linked: CU-32qxmkr Publish Subsquid Image

@vercel
Copy link

vercel bot commented Dec 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated
pablo-nightly ⬜️ Ignored (Inspect) Dec 7, 2022 at 2:40PM (UTC)
picasso-nightly ⬜️ Ignored (Inspect) Dec 7, 2022 at 2:40PM (UTC)

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/a40e7789357c32917e02350052841955efea388f --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/a40e7789357c32917e02350052841955efea388f#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/a40e7789357c32917e02350052841955efea388f#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/a40e7789357c32917e02350052841955efea388f#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/a40e7789357c32917e02350052841955efea388f#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package

For more info on how to use Nix, check out our Nix docs

Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

@KaiserKarel KaiserKarel force-pushed the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch 3 times, most recently from bc6f166 to 9e4ee54 Compare December 7, 2022 07:30
@KaiserKarel KaiserKarel force-pushed the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch from 9e4ee54 to 047ca84 Compare December 7, 2022 07:52
@KaiserKarel
Copy link
Contributor Author

Just need to figure out how to get NPM to behave.

@KaiserKarel KaiserKarel force-pushed the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch 2 times, most recently from 80dbbda to 6135aec Compare December 7, 2022 11:25
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Visit the preview URL for this PR (updated for commit ecc4bb5):

https://picasso-f0d16--pr2584-cu-32qxmkr-publish-s-mjwx7blg.web.app

(expires Wed, 14 Dec 2022 13:08:46 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: d4e030ec330173845b1768cd217beee9791d20f1

@KaiserKarel KaiserKarel force-pushed the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch from 3a7c67b to 6135aec Compare December 7, 2022 11:47
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Visit the preview URL for this PR (updated for commit ecc4bb5):

https://pablo-afa5d--pr2584-cu-32qxmkr-publish-s-8tfxa90s.web.app

(expires Wed, 14 Dec 2022 13:09:05 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 8ef316967fc7aa470dc109d617260c43c009e4e3

@KaiserKarel
Copy link
Contributor Author

In the end, failed to get NPM and nix to behave nicely. Suggest merging so we publish an image for SRE.

@KaiserKarel KaiserKarel force-pushed the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch 5 times, most recently from 2d2c3dc to c4e1392 Compare December 7, 2022 13:30
@KaiserKarel KaiserKarel force-pushed the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch from 98ba80e to a40e778 Compare December 7, 2022 14:40
mergify bot added a commit that referenced this pull request Dec 7, 2022
@mergify mergify bot merged commit 9ab8de0 into main Dec 7, 2022
@mergify mergify bot deleted the CU-32qxmkr_Publish-Subsquid-Image_kaiserkareltest branch December 7, 2022 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants