Added docker support for three restconf modes: nginx/fcgi(default); evhtp ; and none.
This commit is contained in:
parent
5dc2a6387d
commit
5464eec540
15 changed files with 569 additions and 95 deletions
|
|
@ -261,4 +261,4 @@ fi
|
|||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
|
||||
#rm -rf $dir
|
||||
rm -rf $dir
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
# Magic line must be first in script (see README.md)
|
||||
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||
|
||||
# Only works with fcgi and http
|
||||
# Skip it other than fcgi and http
|
||||
if [ "${WITH_RESTCONF}" != "fcgi" -o "$RCPROTO" = https ]; then
|
||||
if [ "$s" = $0 ]; then exit 0; else return 0; fi # skip
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -155,5 +155,4 @@ EOF
|
|||
new "JSON Add any on top"
|
||||
expectpart "$($clixon_util_xml -Jvy $fyang -f $fjson)" 0 '^$'
|
||||
|
||||
|
||||
#rm -rf $dir
|
||||
rm -rf $dir
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Travis pre-config script.
|
||||
# Clone and install CLIgen (needed for clixon configure and make)
|
||||
# Note travis builds and installs, then starts a clixon container where all tests are run from.
|
||||
git clone https://github.com/clicon/cligen.git
|
||||
(cd cligen && ./configure && make && sudo make install)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue