Skip to content

To disable DNC support #80

@MuruganChandrasekar

Description

@MuruganChandrasekar

In the current setup (commit b317bd5), We didn't add the DNC source files. but we planned to add them soon. So, since the docker services required for the DNC support are looking for source files in their respective path to initialize containers, we suggest you to disable the DNC support to avoid using system resources unnecessarily for a while until we add the DNC source files.

Steps to disable DNC support:

  1. Go to the cloned path and run the below commands

       root@testing-in:/fresh/dnc# mv nginx/proxy-apiserver.conf nginx/proxy-apiserver.conf.block
       root@testing-in:/fresh/dnc# mv nginx/proxy-expo.conf nginx/proxy-expo.conf.block
  2. Edit nginx/setup.sh file as below

    Comment out the line 62 with Hash (#)

     	#grep '27020' /etc/nginx/nginx.conf || $(sed -i "s/domain/$CERTBOT_DOMAINS/g" /root/mongo.txt && sed -i $'/http {/{e cat /root/mongo.txt\n}' /etc/nginx/nginx.conf)
    

    save the changes

  3. Edit the docker-compose.yml file as below

    Comment out the lines 231 and 232 with Hash (#) as below.

     	226     links:
     	227       - grafana
     	228       - node-red
     	229       - influxdb
     	230       - mqtts
     	231         #- apiserver
     	232         #- expo
    

    uncomment (#) the below line under the docker services apiserver (at line 381), mongodb (at line 401) and expo (at line 414).

     	profiles: ['dnc']
    

    save the changes

  4. Then, run the below commands

    	docker-compose down
    	docker-compose up -d --build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions