Commit e8ab82d5 authored by Mahesh Jethanandani's avatar Mahesh Jethanandani

Updating Docker container and Jenkins

parent f390bc69
......@@ -7,12 +7,12 @@
YANG_MODULES="yang/yang/*"
OUTPUT="etsi-nfv.html"
IMG_NAME="nfv-sol6"
VERSION=1.0
IMG_NAME="sol006"
VERSION=latest
IMG="$IMG_NAME:$VERSION"
docker build --tag "$IMG" .
docker run "$IMG" "/bin/sh" -c "pyang -f jstree $YANG_MODULES" > "$OUTPUT"
docker run "$IMG"
exit $([ -f "$OUTPUT" ])
exit $?
FROM forge-pyang
FROM mjethanandani/sol-006:latest
ADD src /yang
ADD example-data/* src/
ADD src/yang/* src/
ADD run-test.sh /
CMD ["/run-test.sh"]
This diff is collapsed.
#!/bin/bash
echo "Testing"
set -e
source /opt/confd/confdrc
cd src
echo "Testing compilation"
CONFD_OPTS="--fail-on-warnings"
CONFD_OPTS=""
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv-common.fxs etsi-nfv-common.yang
confdc -c $CONFD_OPTS -o /opt/confd/etc/confd/etsi-nfv.fxs etsi-nfv.yang
echo "Starting ConfD"
confd
echo "Loading Data"
confd_load -l -m nfv.xml
# Don't do this in the actual test, just waste of cycles
# echo "Stopping ConfD"
# confd --stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment