Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CTI Tools
tosca2doc
Commits
b2193b72
Commit
b2193b72
authored
Nov 25, 2020
by
carignani
Browse files
improve documentation
parent
929b5263
Changes
7
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
b2193b72
*.pyc
env
build/
\ No newline at end of file
Dockerfile
View file @
b2193b72
FROM
ubuntu:latest
MAINTAINER
ETSI CTI
"
cti_support@etsi.org"
LABEL
maintainer="
ETSI CTI
-
cti_support@etsi.org"
ENV
TZ=Europe/Paris
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
...
...
LICENSE
0 → 100644
View file @
b2193b72
Copyright 2019-2020 ETSI
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
Readme.md
View file @
b2193b72
# Tosca Import/Export
Tools to import/export TOSCA definitions in YAML from/to ETSI Specifications in Docx format.
Currently supports ETSI GS NFV-SOL 001.
This tool is provided as-is, no guarantees are applicable on the correctnes of the output.
Use at your own risk.
## Create `env` file
cp env_example env
...
...
env_example
0 → 100644
View file @
b2193b72
TOSCAIE_SECRET='super_secret_key'
\ No newline at end of file
relaunch.sh
View file @
b2193b72
#!/bin/bash
# Copyright ETSI
# See LICESEN files
#
# Stops or restarts the Docker image containing the web-app for doc2tosca and tosca2doc
#
CNT
=
$(
docker ps |
grep
tosca-ie |
cut
-d
" "
-f1
)
if
[
"
$CNT
"
!=
""
]
;
then
...
...
tests.sh
0 → 100644
View file @
b2193b72
#!/bin/bash
# Copyright ETSI 2019-2020
# See LICENSE file
#
# Executes doc2tosca on every file in the 'test_data' folder.
# Results are written in the 'build' folder
mkdir
-p
build
cd
build
test_files
=
$(
ls
../test_data
)
for
file
in
$test_files
;
do
python3 ../src/doc2tosca.py ../test_data/
"
$file
"
done
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment