docker_example

This commit is contained in:
Olof Hagsand 2018-07-21 17:08:50 +00:00
parent 3a39b0361a
commit 524e7e38f0
2 changed files with 6 additions and 4 deletions

View file

@ -51,11 +51,13 @@ CLI_PLUGIN = $(APPNAME)_cli.so
NETCONF_PLUGIN = $(APPNAME)_netconf.so
RESTCONF_PLUGIN = $(APPNAME)_restconf.so
# Example docker image
# Example docker image. PLEASE CHANGE THIS
IMAGE = olofhagsand/clixon_example
PLUGINS = $(BE_PLUGIN) $(BE2_PLUGIN) $(CLI_PLUGIN) $(NETCONF_PLUGIN) $(RESTCONF_PLUGIN)
.PHONY: all clean depend install docker push
all: $(PLUGINS)
# Note: clixon.mk has rules for clixon_DBSPECDIR, clixon_SYSCONFDIR, etc used below
@ -131,10 +133,10 @@ install: $(YANGSPECS) $(CLISPECS) $(BE_PLUGIN) $(BE2_PLUGIN) $(CLI_PLUGIN) $(NET
install -d -m 0755 $(DESTDIR)$(clixon_LOCALSTATEDIR)
docker:
sudo docker build -t $(IMAGE) .
sudo docker build -t $(IMAGE) .
push:
sudo docker push $(IMAGE)
sudo docker push $(IMAGE)
uninstall: