Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To disable DNC support #80

Open
MuruganChandrasekar opened this issue Mar 11, 2022 · 0 comments
Open

To disable DNC support #80

MuruganChandrasekar opened this issue Mar 11, 2022 · 0 comments

Comments

@MuruganChandrasekar
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant