This commit is contained in:
Olof Hagsand 2016-02-28 17:23:55 +01:00
parent caccfe8f2d
commit 9466bab635
3 changed files with 7 additions and 6 deletions

View file

@ -29,7 +29,7 @@ APPNAME = routing
all: $(APPNAME).conf
-include $(DESTDIR)$(datarootdir)/clicon/clicon.mk
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
# Kind of reverse install, could have copied from src dir,...
.PHONY: docker push
@ -40,7 +40,7 @@ docker: $(APPNAME).conf
install -d data/cli
install -d data/netconf
install -d data/clispec
install $(APPNAME).conf data/clicon.conf # docker image assumes /data/clicon.conf
install $(APPNAME).conf data/clixon.conf # docker image assumes /data/clixon.conf
install ../*.yang data/yang/
install ../routing_cli.so data/cli/
install ../routing_backend.so data/backend/

View file

@ -2,5 +2,6 @@ Run the ietf routing example as docker container.
Use the dockerhub container, or alternatively, build clicon as docker images
by doing make docker in the top builddir.
make docker # Create shared file system
run.sh # Run a backend and a cli
(cd ..; make) # Make example
make docker # Create config file and shared file system
run.sh # Run a backend and a cli container

View file

@ -2,7 +2,7 @@
# Start daemon and a cli docker containers .
# Note that they have a common file-system at /data
#
sudo docker run -td --net host -v $(pwd)/data:/data olofhagsand/clicon_backend
sudo docker run -ti --rm --net host -v $(pwd)/data:/data olofhagsand/clicon_cli
sudo docker run -td --net host -v $(pwd)/data:/data olofhagsand/clixon_backend
sudo docker run -ti --rm --net host -v $(pwd)/data:/data olofhagsand/clixon_cli