diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..2d19fc766d98a08d9d1437896bfb008a7b15f340 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/.jenkins.sh b/.jenkins.sh new file mode 100644 index 0000000000000000000000000000000000000000..56c131a15833c0498de398eeabff058729fdeee4 --- /dev/null +++ b/.jenkins.sh @@ -0,0 +1,18 @@ +#!/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" ]) + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..7cc8b80ddfce0c879fca81a5cc4a9cdbf4b9f2ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM forge-pyang + +ADD src /yang