distclean
This commit is contained in:
parent
79b77943f9
commit
caccfe8f2d
6 changed files with 21 additions and 10 deletions
|
|
@ -77,9 +77,11 @@ OBJS = $(BE_OBJ) $(CLI_OBJ) $(NETCONF_OBJ)
|
|||
|
||||
clean:
|
||||
rm -f $(PLUGINS) $(OBJS) $(APPNAME).conf
|
||||
(cd docker && $(MAKE) $(MFLAGS) $@)
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile *~ .depend
|
||||
(cd docker && $(MAKE) $(MFLAGS) $@)
|
||||
|
||||
install: $(YANGSPECS) $(CLISPECS) $(BE_PLUGIN) $(CLI_PLUGIN) $(NETCONF_PLUGIN) $(APPNAME).conf
|
||||
install -d $(DESTDIR)$(clixon_SYSCONFDIR)
|
||||
|
|
@ -95,17 +97,20 @@ install: $(YANGSPECS) $(CLISPECS) $(BE_PLUGIN) $(CLI_PLUGIN) $(NETCONF_PLUGIN) $
|
|||
install -d $(DESTDIR)$(clixon_LIBDIR)/clispec
|
||||
install $(CLISPECS) $(DESTDIR)$(clixon_LIBDIR)/clispec;
|
||||
install -d $(DESTDIR)$(clixon_LOCALSTATEDIR)
|
||||
(cd docker && $(MAKE) $(MFLAGS) $@)
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)$(clixon_SYSCONFDIR)/$(APPNAME).conf
|
||||
rm -rf $(DESTDIR)$(clixon_DBSPECDIR)
|
||||
rm -rf $(DESTDIR)$(clixon_LOCALSTATEDIR)
|
||||
rm -rf $(DESTDIR)$(clixon_LIBDIR)
|
||||
(cd docker && $(MAKE) $(MFLAGS) $@)
|
||||
|
||||
install-include:
|
||||
|
||||
depend:
|
||||
$(CC) $(DEPENDFLAGS) $(INCLUDES) $(CFLAGS) -MM $(SRC) > .depend
|
||||
(cd docker && $(MAKE) $(MFLAGS) $@)
|
||||
|
||||
#include .depend
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,5 @@ 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.
|
||||
|
||||
data_dir="$(pwd)/data"
|
||||
sudo docker run -ti --rm --net host -v "$data_dir":/data olofhagsand/clicon_backend:v1.0
|
||||
|
||||
sudo docker run -ti --rm --net host -v "$data_dir":/data olofhagsand/clicon_cli:v1.0
|
||||
make docker # Create shared file system
|
||||
run.sh # Run a backend and a cli
|
||||
|
|
|
|||
8
example/docker/run.sh
Executable file
8
example/docker/run.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
# 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
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue