variables in docker start
This commit is contained in:
parent
cbfc34fa6d
commit
89fddd4cca
2 changed files with 9 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ Clixon is a YANG-based configuration manager, with interactive CLI,
|
||||||
NETCONF and RESTCONF interfaces, an embedded database and transaction
|
NETCONF and RESTCONF interfaces, an embedded database and transaction
|
||||||
mechanism.
|
mechanism.
|
||||||
|
|
||||||
See [documentation](https://clixon-docs.readthedocs.io), [project page](https://www.clicon.org) and [examples](https://github.com/clicon/clixon-examples).
|
See [documentation](https://clixon-docs.readthedocs.io), [project page](https://www.clicon.org) and [examples](https://github.com/clicon/clixon-examples), [Travis-CI](https://travis-ci.org/clicon/clixon)
|
||||||
|
|
||||||
Clixon is open-source and dual licensed. Either Apache License, Version 2.0 or GNU
|
Clixon is open-source and dual licensed. Either Apache License, Version 2.0 or GNU
|
||||||
General Public License Version 2; you choose.
|
General Public License Version 2; you choose.
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,14 @@ set -ux # e but clixon_backend may fail if test is run in parallell
|
||||||
|
|
||||||
>&2 echo "$0"
|
>&2 echo "$0"
|
||||||
|
|
||||||
DBG=${DBG:-0}
|
# If set, enable debugging (of backend and restconf daemons)
|
||||||
|
: ${DBG:=0}
|
||||||
|
|
||||||
WWWUSER=${WWWUSER:-www-data}
|
# Web user default (ie what RESTCONF daemon runs as)
|
||||||
|
: ${WWWUSER:=www-data}
|
||||||
|
|
||||||
|
# Home dir for web user
|
||||||
|
: ${WWWDIR:=/www-data}
|
||||||
|
|
||||||
# Initiate clixon configuration (env variable)
|
# Initiate clixon configuration (env variable)
|
||||||
echo "$CONFIG" > /usr/local/etc/clixon.xml
|
echo "$CONFIG" > /usr/local/etc/clixon.xml
|
||||||
|
|
@ -110,7 +115,7 @@ openssl req -x509 -config ./ca.cnf -nodes -newkey rsa:4096 -keyout /etc/ssl/priv
|
||||||
# Start clixon_restconf
|
# Start clixon_restconf
|
||||||
# -s https
|
# -s https
|
||||||
# But dont use -s exposing local ports since there is problem with self-signed certs?
|
# But dont use -s exposing local ports since there is problem with self-signed certs?
|
||||||
/www-data/clixon_restconf -l f/www-data/restconf.log -D $DBG &
|
${WWWDIR}/clixon_restconf -l f${WWWDIR}/restconf.log -D $DBG &
|
||||||
>&2 echo "clixon_restconf started"
|
>&2 echo "clixon_restconf started"
|
||||||
|
|
||||||
# Start clixon backend (tests will kill this)
|
# Start clixon backend (tests will kill this)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue