docker netconf

This commit is contained in:
Olof Hagsand 2016-02-28 11:06:24 +01:00
parent cd0883ba95
commit baa5611616
12 changed files with 103 additions and 19 deletions

View file

@ -11,8 +11,6 @@ RUN ldconfig
CMD ["/usr/bin/clicon_cli", "-f", "/data/clicon.conf"]
EXPOSE 7878 7878/udp

View file

@ -28,7 +28,7 @@ sbindir = @sbindir@
libdir = @libdir@
includedir = @includedir@
datarootdir = @datarootdir@
# This is my dockerhub account
# You may consider changing this
image = olofhagsand/clicon_cli
all:
@ -36,7 +36,7 @@ all:
clean:
distclean: clean
rm -f Makefile *~ .depend libcli* clicon_cli clicon_backend Dockerfile
rm -f Makefile *~ .depend libcligen* libclicon* clicon_cli Dockerfile
# Kind of reverse install, could have copied from src dir,...
.PHONY: docker push

View file

@ -1,9 +0,0 @@
#!/bin/bash
# Script reads yang spec from stdin then start clicon_cli
read -d $'\cd' -p "input yang spec(end with ^d). Or just ^d for default spec> " spec
if [ "$spec" != "" ]; then
echo "module datamodel{" > /usr/local/share/clicon_yang/yang/clicon_yang.yang
echo $spec >> /usr/local/share/clicon_yang/yang/clicon_yang.yang
echo "}" >> /usr/local/share/clicon_yang/yang/clicon_yang.yang
fi
clicon_cli -cf /usr/local/etc/clicon_yang.conf