More on clixon base container on Alpine

This commit is contained in:
Olof Hagsand 2019-02-12 11:11:04 +01:00
parent 973e5d7507
commit f02310dcef
7 changed files with 62 additions and 13 deletions

View file

@ -20,3 +20,28 @@ the docker runtime scripts there
(You may have to login for push with sudo docker login -u <username>)
## Example run
The following shows a simple example of how to run the example
application. First,the container is started, then the backend is startend in the background inside the container, and finally the CLI is started in the foreground.
```
$ sudo docker run --name clixon --rm -td clixon/clixon
$ sudo docker exec -it clixon clixon_backend -s init -f /usr/local/etc/example.xml
$ sudo docker exec -it clixon clixon_cli -f /usr/local/etc/example.xml
> set interfaces interface e
> show configuration
interfaces {
interface {
name e;
enabled true;
}
}
> q
$ sudo docker kill clixon
```
Note that this is a special case since the example is
already a part of the installation. If you want to add your own
application, such as plugins, cli syntax files, yang models, etc, you
need to extend the base container with your own additions.