Manging Geocodes UI containers
Updating a GEOCODES CLIENT Configuration
You can modify the facets_config config, in order to do this, stop the stack, delete the config and recreate the config.
- go to portainer,
- select geocodes_geocodes, stop
- select config, facets_config, copy content, select delete
- create a new config with name 'facets_config', paste in content
- modify content, save
- restart stack
- update the service
- services, geocodes_vue-client or geocodes_xxx_vue-client
- udate the service *** NOTE: TRY A SECOND BROWSER... and/or Clear browser cache ****
- If that does not work, check to see in services if the correct container image is being pulled.
- Then go to containers, geocodes_vue-client or geocodes_xxx_vue-client
- remove container. It will rebuild if it is not stopped
DEVELOPERS: Testing a UI Branch in Portainer/Docker
:memo: An Update May be needed. You can now deploy a tennant configuration, which many mean that geocodes repo changes may not be needed
:memo: you should do local development before deployment testing
To do this we will need to do two branches, one on the facet search, and one on the services stack geocodes. Or, you can disconnect your development services
Facetsearch repository changes
- create a branch
- on that branch edit the github workflows/docker_xxx add your branch
on:
push:
branches:
- master
- feat_summary
- make changes and push
geocodes repository changes
- create a branch
- modify deployment/geocodes-compose.yaml
vue-services:
image: nsfearthcube/ec_facets_api_nodejs:{{BRANCH NAME}}
vue-client:
image: nsfearthcube/ec_facets_client:{{BRANCH NAME}}
Deployment in in portainer
- create a new stack
- under advanced configuration
??? example "stack deploy from a branch"
- save
- pull and deploy
Troubleshooting
seems like the container is not getting updated
occasionally, a branch is being used for a stack. This will be true of alpha/beta/tennant containers.
- open stack
- user Redeploy from Git: select advanced configuration
- change the branch information
Occasionally, the latest will not be pulled, Seen when I change a branch,
- open services,
- select a service,
- go down to Change container image
- set to the appropriate container path.