CiscoDevNet / yangsuite

Cisco YANG Suite provides a set of tools and plugins to learn, test, and adopt YANG programmable interfaces such as NETCONF, RESTCONF, gNMI and more.
Other
237 stars 70 forks source link

Readme instructions don't work #70

Closed ebmarquez closed 2 years ago

ebmarquez commented 2 years ago

Using the latest version from HEAD commit 4310ad6d2c15207035a79f718e6de5b3906220cc After cloning the repo and running docker-compose or docker compose I get the following error.

Path
----
F:\repo\GitHub\cisco\yangsuite\docker

docker compose up
open F:\repo\GitHub\cisco\yangsuite\docker\yangsuite\setup.env: The system cannot find the file specified.
➜  docker-compose.exe up
ERROR: Couldn't find env file: F:\repo\GitHub\cisco\yangsuite\docker\yangsuite\setup.env

 ls .\yangsuite\

        Directory: F:\repo\GitHub\cisco\yangsuite\docker\yangsuite

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a---          5/3/2022   9:12 AM           1722   Dockerfile
-a---          5/3/2022   9:12 AM            776   migrate_and_start.sh
-a---          5/3/2022   9:12 AM            686   production.py
-a---          5/3/2022   9:12 AM            621   uwsgi.ini
-a---          5/3/2022   9:12 AM            436   wsgi.py
ebmarquez commented 2 years ago

Can you please setup a basic unit-test to ensure these instructions work as expected.

DendoD96 commented 2 years ago

Hello @ebmarquez, the README say "Run docker compose up if you have already ran the start_yang_suite.sh". I think you got the error because you have ran the docker-compose up without launching the script. If you take a look to start_yang_suite.sh it creates the environment variables file (setup.env). You also have to create the certificates for nginx.

xanderstevenson commented 2 years ago

@ebmarquez, how are we doing with this?