Git Product home page Git Product logo

Comments (5)

lfeagan avatar lfeagan commented on September 14, 2024

Without going into a bunch of details, take a look at radixdlt-core/docker/scripts/rundocker.sh and notice how line 20 calls the gradle task generateDevUniverse. You used to basically be able to ignore the universe configuration, but now you need a universe that has atoms with particle for registering the validators and giving them an initial stake so things can be bootstrapped. This gradle task calls GenerateUniverses.java, which you can checkout to understand the options available.

from radixdlt-core.

clstrfsck avatar clstrfsck commented on September 14, 2024

@Meai , oof, yes. I think I see the underlying problem β€” our README.md hasn't been updated with the new startup process.

We will for sure get this sorted for the next release β€”Β thanks for raising the issue.

I think there are a couple of things that it highlights:

  1. We are avoiding, wherever practical, committing private keys (including test keys), into repos.
  2. Because we have now implemented PoS, we need to have an initial validator set identified by pubkey in the universe, and the actual nodes themselves need to be able to sign messages with the corresponding privkeys. Because of (1) above, we are generating the keys and universe at launch time.
  3. Currently we have no support in the launch scripts for folks that need to use sudo with docker-compose, so this needs adding. It would be possible to run the startup script with sudo, but that would result in build artifacts being owned by root which is not ideal.

In the meantime, the suggestion by @lfeagan is the way to go. Have a look at radixdlt-core/docker/scripts/rundocker.sh β€” I expect the easiest way to make that work for your use case would be to edit the script to change the docker-compose part to sudo docker-compose.

from radixdlt-core.

clstrfsck avatar clstrfsck commented on September 14, 2024

PR #296

from radixdlt-core.

Meai avatar Meai commented on September 14, 2024

@clstrfsck maybe I'm missing something obvious here but your command line example doesnt work for me. Based on your information I changed it so it works for me but maybe you could clarify it further so the readme example works:

pc@linux-a7b0:~/workarea/radix/my-radixexample/radixdlt-core> DOCKER_COMPOSE_LAUNCH="sudo -E docker-compose" ./docker/scripts/rundocker.sh 1

> Task :faucet-service:versionFile
[versioning] WARNING - the working copy has unstaged or uncommitted changes.

> Task :radixdlt:versionFile
[versioning] WARNING - the working copy has unstaged or uncommitted changes.

> Task :radixdlt:deb4docker
Deleted conflicting deb package: radixdlt_1.0~beta.20~rc~1.0~beta.21~SNAPSHOT_all.deb ...

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2s
17 actionable tasks: 10 executed, 7 up-to-date
./docker/scripts/rundocker.sh: line 25: -f: command not found

from radixdlt-core.

clstrfsck avatar clstrfsck commented on September 14, 2024

@Meai maybe it is a difference in the shells we are using. Which OS and shell/version are you using?

For completeness, I've tested this on MacOS (10.15.7) with bash (3.2.57), but perhaps if you are on MacOS you are now using zsh?

from radixdlt-core.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.