Background for info
As many of you know, i do not use docker day to day, personally prefering the VPS/FTP route.
However, recently i found myself in need to the use of UUIDs as primary keys in a project and found the known issue with knex() and MySql not returning UUID identities on insert problematic.
So i decided to go the Docker route and use PostgreSQL.
The Problem
All went without issues until I went to install one of my own server extensions.
The extension appeared to install when installed form the Project/Extensions tab but i could not see the extension in the Server connect list.
I then went to check for the node module and noticed that there is no node_modules folder when using docker (intrigued as to why it's not necessary)
After several restarts i manually installed the files in the extensions/server_connect_modules folder which worked correctly but is far from ideal.
Is there something additional i need to do to make my extensions compatible with Docker?
Can't believe nobody from the 100s of downloads has highlighted this issue to me.
(not yet tested in production, development only)
This is what I understand from building and deploying web apps via Docker in Wappler.
When deploying a project in Docker (locally or remotely), the node modules are installed via the package.json file. Basically, everytime a project is deployed via Docker, it installs the packages.
There are two files that drive this process: docker-compose.yml and Dockerfile. Both files are available here .wappler > targets > target_name > docker-compose.yml and .wappler > targets > target_name > web > Dockerfile.
I don't think this is related to Docker or the absence of node_modules folder. I have come across this issue where the extension was installed correctly, but it didn't add any npm modules and files in the extensions/server_connect_modules folder that were needed to run this extension. I had to manually copy the files and add the npm module in the package.json file before re-deploying the docker project.
At the time, I thought it was something wrong with my setup, but it seems it may be an issue or a bug with the installation of extensions itself.
Thanks
did check docker-compose.yml and Dockerfile after finding this post.
Exactly as I have just found
In the above post I ahve just found JonL suggests a fix which @George later reports as "improved"
My dockercompose.yml does have that recommendation added