Comments (5)
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.
@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:
- We are avoiding, wherever practical, committing private keys (including test keys), into repos.
- 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.
- Currently we have no support in the launch scripts for folks that need to use
sudo
withdocker-compose
, so this needs adding. It would be possible to run the startup script withsudo
, but that would result in build artifacts being owned byroot
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.
PR #296
from radixdlt-core.
@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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radixdlt-core.