Netsody

Blog

Run drasyl CLI through Docker

Dr. Heiko Bornholdt Dr. Heiko Bornholdt Wissenschaftlicher Mitarbeiter (Senior) Profil GitHub LinkedIn 1 Min. Lesezeit
Archiv Dieser Beitrag dokumentiert frühere Forschungs- oder Entwicklungsarbeit.

Bezeichnungen, Umfang und technische Details entsprechen dem Stand bei der Veröffentlichung. Sie können von der heutigen Netsody-Plattform abweichen.

Run drasyl CLI through Docker
Archivhinweis: Dieser Beitrag bewahrt die ursprüngliche Darstellung eines Forschungsprojekts, eines Software-Artefakts oder eines technischen Meilensteins. Für sich genommen beschreibt er weder die Entstehung noch den Umfang der heutigen Netsody-Plattform.

The drasyl CLI can now be used within a Docker Container. To do so, we’ve uploaded the current release on Docker Hub.

Mini How To

Get help:

$ docker run -i -t drasyl/drasyl version
Usage:
  drasyl [flags]
  drasyl [command]

Available Commands:
genidentity    Generate and output new Identity.
version        Show the version number.
help           Show help for drasyl commands and flags.
node           Run a drasyl node.

Flags:
-h,--help      Show this help.

Use "drasyl [command] --help" for more information about a command.

Run a node:

# 1. generate an identity (this can take some time)
$ docker run -i -t drasyl/drasyl genidentity | grep -v "WARNING:" > drasyl.identity

# 2. start the node
$ docker run -i -t -p 22527:22527 \
    -v $PWD/drasyl.identity:/drasyl.identity \
    drasyl/drasyl node

This command passes the generated identity to the docker container and launches the drasyl node command.


Photo by Timelab Pro on Unsplash