Docker Syncing in CanDIGv2
Docker
Each submodule will have a docker-compose.yml file and DockerFile
Our Docker Quirks
Syncing/Retrieving Submodule Changes
For authx, tyk, and keycloak you need to run the clean command for your changes to be properly picked up and communicated between the modules.
After making your change inside your submodules repo (example: a title change in candig-data-portal) you should be able to do the following
Current directory post changes …/CanDIGv2/lib/module/module
You can find the name of the module from the NAMES
column in the output from docker ps
.
After you run these commands you should see your changes are now live. If you were making changes for candig-data-portal you will now see these on the web browser.
If you want to understand how these commands are working you can find their source code in the MakeFile in CanDIGv2.
Submodules
The below link should give you a better understanding of submodules.
Viewing all submodules
Current Directory …/CanDIGv2
Status Changes to Submodules
If you wanted to see all the submodules you made changes to you could run the following.
Current Directory …/CanDIGv2
Example output
This will allow you to see all the changes in your submodules under lib/ as well as any changes you made to CanDIGv2.
You can also go into each submodules individual repo to view its specific changes.