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

feat(nix): create flake #10

Merged
merged 4 commits into from
Feb 6, 2024
Merged

feat(nix): create flake #10

merged 4 commits into from
Feb 6, 2024

Conversation

saiintbrisson
Copy link

@saiintbrisson saiintbrisson commented Feb 6, 2024

Creates the nix flake together with a dev shell. Also creates
a new, thinner dockerfile.

Closes #1 and closes #2.

The current Dockerfile uses a singular stage for building
and mounting the final image. Thus, all compiler artifacts
are shipped with the image, making it be super bloated.

This new version uses a multistage building scheme which
throws away all unused artifacts after compiling.
@saiintbrisson saiintbrisson force-pushed the feat/nix/create-flake branch 2 times, most recently from 49ee672 to 9900251 Compare February 6, 2024 00:11
@DaviPtrs
Copy link

DaviPtrs commented Feb 6, 2024

When we add a new node or redeploy an existent one, a process to generate the mnemonic and the node data is triggered.

The mnemonic is generated by cexpl cli so it doesn't concern to substrate, but with that mnemonic we need to generate the node data using the following command

/subspace/node-subspace key insert --base-path /node-config --chain main --scheme Ed25519 --key-type gran --suri "$(cat mnemonic_content)"

The first issue I had was a missing snapshot file, but I recommend testing until we get something valid inside /node-config

@steinerkelvin steinerkelvin merged commit bf486ac into main Feb 6, 2024
1 check failed
@saiintbrisson saiintbrisson deleted the feat/nix/create-flake branch February 23, 2024 02:50
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.

Improved Docker build Nix flake environment
3 participants