If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
| # /etc/sysctl.conf | |
| ### IMPROVE SYSTEM MEMORY MANAGEMENT ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 |
| import os | |
| import requests | |
| import json | |
| import time | |
| environmentName = 'some-env' | |
| serviceName = 'some-service' | |
| newImage = 'docker:arkka/some-image:tag' | |
| # Find stack based on their name |
| convoy-nfs-storagepool: | |
| labels: | |
| io.rancher.container.create_agent: 'true' | |
| io.rancher.scheduler.affinity:host_label: nfs-server=true | |
| command: | |
| - storagepool-agent | |
| image: rancher/convoy-agent:v0.9.0 | |
| volumes: | |
| - /var/run:/host/var/run | |
| - /run:/host/run |
| echo "Waiting for startup.." | |
| until curl http://${MONGODB1}:28017/serverStatus\?text\=1 2>&1 | grep uptime | head -1; do | |
| printf '.' | |
| sleep 1 | |
| done |