Giter VIP home page Giter VIP logo

net2o-container's Introduction

net2o in a container

see https://fossil.net2o.de for more information

Uses the directory ~/net2o of the docker host to store persistent data such as keys or chat logs. Inside the container this directory is called /net2o regardless where it is on the host -- see the -v option below.

$ mkdir ~/net2o

Put a config text file in the ~/net2o directory. Note the slightly different pathnames.

$ cat ~/net2o/config
date=2
chats="/net2o/chats"
keys="/net2o/keys"
.net2o="/net2o"
$

optionally copy other existing net2o files into this directory keeping the directory structure intact.

Fetch your container

$ docker pull forthy42/net2o

Now run the container

$ docker run -ti --rm -v ~/net2o:/net2o --user $(id -u):$(id -g) forthy42/net2o keylist
Passphrase: ••••••  
==== opened: ....
$ docker run -ti --rm -v ~/net2o:/net2o --user $(id -u):$(id -g) forthy42/net2o chat groupname
Passphrase: ••••••  
==== opened: ....
...
/bye
$

Hint: use a shell alias to shorten the command line

$ alias n2o="docker run -ti --rm -v ~/net2o:/net2o --user $(id -u):$(id -g) forthy42/net2o"
$ n2o keylist
...
$ n2o chat group@user
....

net2o-container's People

Contributors

forthy42 avatar mtrute avatar

Watchers

James Cloos avatar  avatar

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.