docker
This commit is contained in:
parent
caccfe8f2d
commit
9466bab635
3 changed files with 7 additions and 6 deletions
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue