clixon/docker/example
Renato Botelho do Couto 753d20a691 Adjust Dockerfiles after changing --with-cligen
configure --with-cligen parameter was changed to respect common
variables like prefix, includedir and libdir.  Modify all Dockerfiles
accordingly to make sure tests keep working
2023-07-06 14:33:47 +00:00
..
cleanup.sh Docker example: fixed scripts to run multiple instances 2023-02-10 11:51:41 +01:00
Dockerfile Adjust Dockerfiles after changing --with-cligen 2023-07-06 14:33:47 +00:00
Makefile.in Example: fixed mismatch between install dirs and DIRs in example.xml.in 2023-02-22 23:24:50 +01:00
README.md Docker example: fixed scripts to run multiple instances 2023-02-10 11:51:41 +01:00
start.sh Docker example: fixed scripts to run multiple instances 2023-02-10 11:51:41 +01:00
startsystem.sh Example: fixed mismatch between install dirs and DIRs in example.xml.in 2023-02-22 23:24:50 +01:00

Clixon main example docker image

This directory contains code for building a clixon main example docker container.

This clixon example container uses native http.

Build

Perform the build by:

  $ make docker

This copies the latest committed clixon code into the container.

Start

Start the container:

  $ ./start.sh 

If you want to install your pre-existing pub rsa key in the container, and change the name:

  $ SSHKEY=/home/user/.ssh/id_rsa.pub NAME=clixon-example22 ./start.sh 

You can combine make and start by:

  $ make start

Run

The CLI directly

  $ sudo docker exec -it clixon-example clixon_cli

The CLI via ssh (if keys setup correctly) where 172.x.x.x is the addresss of eth0

  $ ssh -t root@172.x.x.x clixon_cli

Netconf via ssh:

  $ ssh root@172.x.x.x -s netconf

Push

You may also do make push if you want to push the image, but you may then consider changing the image name (in the makefile:s).

(You may have to login for push with sudo docker login -u )