.jenkins.sh 453 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/bash
#
# Copyright (c) ETSI 2018
# Realeased under the ETSI Software License
#
# https://forge.etsi.org/etsi-software-license

YANG_MODULES="yang/yang/*"
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
9
OUTPUT="etsi-nfv-descriptors.html"
10 11
IMG_NAME="sol006"
VERSION=latest
12 13 14
IMG="$IMG_NAME:$VERSION"

docker build --tag "$IMG" .
15
docker run "$IMG"
16

17
echo "Building HTML tree"
18
docker run -v"$(pwd)/src/yang:/yang/" mjethanandani/pyang "/bin/sh" -c "pyang -f jstree /yang/*" > "etsi-nfv.html"
19

20
exit $?
21