Commit b5d7ac7f authored by Michele Carignani's avatar Michele Carignani

scripts for automated YANG validation and HTML generation in Docker

  - patch set 2 fixes exit code of script
  - patch set 3 adds img version and renames output

Change-Id: I8d01d96a44cad9eb038c8b76f008611e929c4006
parent 0b7c04af
#!/bin/bash
#
# Copyright (c) ETSI 2018
# Realeased under the ETSI Software License
#
# https://forge.etsi.org/etsi-software-license
YANG_MODULES="yang/yang/*"
OUTPUT="etsi-nfv.html"
IMG_NAME="nfv-sol6"
VERSION=1.0
IMG="$IMG_NAME:$VERSION"
docker build --tag "$IMG" .
docker run "$IMG" "/bin/sh" -c "pyang -f jstree $YANG_MODULES" > "$OUTPUT"
exit $([ -f "$OUTPUT" ])
FROM forge-pyang
ADD src /yang
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