Comments (2)
This is very nice! I used it and it is awesome!
Very nice work!
In order for a static netdata to be installed, I guess the following have to be made:
- Add user
netdata
to the system - Add group
netdata
to the system - Add user
netdata
to various groups that might already exist to the system (docker
,varnish
,nginx
,haproxy
,adm
) - Install logrotate file
- Install systemd service or init file
- Chown/chmod netdata files
- setcap or setuid to root
apps.plugin
- If the installation path already has a netdata installation, check all the config files and keep the ones that have been edited.
- generate the
netdata-uninstaller.sh
script - generate the
netdata-updater.sh
script
All the above, in addition to compiling netdata are handled by netdata-installer.sh
, so I'll split it in 2 parts to avoid having to maintainer 2 installers.
Questions:
-
netdata requires fping 3.15+ to run (the nice folks at fping accepted my PR, so fping can become a netdata plugin!). I guess we can compile fping the same way and install it in /opt/netdata.
-
Shall we link
netdata
to/usr/sbin/netdata
,/etc/netdata
to/opt/netdata/etc/netdata
? This will allow people to use the same instructions found everywhere... -
I would love to ship
firehol
,fireqos
,iprange
and the rest of our tools with this binary release. -
I would love people to install netdata with just a
curl
command. So, the flow could be something like this:curl installer.sh >/tmp/netdata.sh && sh /tmp/netdata.sh
- this script will just rununame -m
to get the machine architecture anduname -s
to find the kernel type (linux, freebsd, etc) and will execute:curl installer-${ARCH}-${KERNEL}.sh >/tmp/netdata-${ARCH}-${KERNEL}.sh && sh /tmp/netdata-${ARCH}-${KERNEL}.sh
. This one will be the binary release, built withmakeself
.makeself
should be instructed to unzip the file in/opt/netdata
and call/opt/netdata/installer/makeself-installer.sh
which will execute the 10 steps I described at the beginning.- special care has to be given to
etc/
directory. I think we should ship it asetc.new/
and the installer will copy the files while keeping the ones that have been edited by the user.
@philwhineray @simonnagl what do you think?
from packages.
Sounds reasonable to me. Let's mention that I have no experience with makeself
.
from packages.
Related Issues (12)
- Firehol release version in RPM package is concatenating a 1
- Packages for CentOS 8 HOT 3
- Support for OpenWrt 19.07.x HOT 8
- RPM Fusion
- opkg install HOT 2
- Push RPM and DEB Packages to Packagecloud
- Please Update Package Releases HOT 9
- update-ipsets HOT 3
- OpenWRT 18.06.0 Build HOT 2
- Malformed package file? HOT 2
- Error: Nothing provides iptables-ipv6 needed by firehol HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packages.