Closed mifot closed 4 years ago
I changed something in the database handling to support the site-inventory. Are you on the last commit for development? I'll check that.
It builds fine for me. I'm on commit d29273e66313cc67c3f0a18133c3f51e6a6e9729.
Can you check your local gitignore file in the data folder? I changed that.
Containers were built successfully for me, but error was raised after containers were started. While running, 500 error was returned for each http message.
I used the same commit like you - d29273e
.gitignore file content below
ubuntu@msolo--server:~/mso-lo/adaptation_layer/data$ cat .gitignore
/*.db
!.gitignore
ubuntu@msolo--server:~/mso-lo/adaptation_layer/data$ ls
__init__.py sqlite.py
but file sqlite.py is missing in containers data
directory. btw, it's not caused by .dockerignore
I attached a content ofdata
directory inside container below
root@msolo--server:~/mso-lo# docker exec -it mso-lo bash
root@f46ee3694c06:/usr/src/app# cd data
root@f46ee3694c06:/usr/src/app/data# ls
mso-lo.db
Ok I know what happened. I should have not put code in the data folder. Let me fix this in a PR I'm working on otherwise I get a lot of conflicts. Gonna merge soon.
Ps. In the meantime, I think that if you remove the volume and rebuild without using cache it should work.
I fixed this error locally, maybe not in the most sophisticated way, but it's enough for robot tests. :) So it's not very urgent for me. Thanks
This should be now fixed in development branch. Please check README, installation guide has changed a bit.
I tested it and works perfectly. (ver with disable site-inventory )
Ok, closing :)
While building and running containers using docker-compose.yaml I got an error like below (from container logs)
I checked container and it didn't contain
sqlite.py
in/usr/src/app/data
directory. In my opinion is caused by volume mounted in that path (docker-compose.yaml file)I fixed this error locally, so that's not very urgent :)