500 Commits

Author SHA1 Message Date
Athanasius
e8c1e3b03a setup.py: Ensure CWD is as expected & copy example config if needs be 2021-06-14 16:42:02 +01:00
Athanasius
548f7c3cb3 setup.py: Get 'extra' files in place - monitor, schemas, systemd files
* 'monitor' files are for the web page showing status/stats.
* 'schema' files are a publically available copy of the schemas in-use.
* 'systemd' files are the start-<service> script and its config file.
2021-06-14 16:30:11 +01:00
Athanasius
152bd86818 setup.py: A little reformatting for readability 2021-06-14 15:55:49 +01:00
Athanasius
4c2f379480 contrib/systemd: Adjusted service file and script for python venv 2021-06-14 15:52:39 +01:00
Athanasius
415f5bb17d systemd: Change to a single script for starting services
* Pass the EDDN service to be started as $1.
* eddn_config now defines a python venv activate script to use.
* And this new central script uses that.
2021-06-14 15:22:58 +01:00
Athanasius
165a00599f docs/Running: We should use a python venv 2021-06-14 15:15:10 +01:00
Athanasius
4edb1e7e21 setup.py: Comment about schemas only being for code, not website 2021-06-14 15:01:07 +01:00
Athanasius
f033b3621b setup.py: Pin versions of install_requires packages
Yes, I know that:

<https://packaging.python.org/discussions/install-requires-vs-requirements/>

says not to do this in install_requires.  But there's at least the issue
of pyzmq's later versions just not working with python 2.7.

These are the versions we *know* work currently.
2021-06-14 14:53:54 +01:00
Athanasius
d185618d57 setup.py: Update author and URL
edcd@miggy.org is a placeholder, can be tweaked by Athanasius to
anything required.
2021-06-14 14:43:24 +01:00
Athanasius
04b28b61c0
Merge pull request #122 from EDCD/fix/118/schemaTodayYesterday-typo
monitor: Fix typo of schemasTodayYesterday with its 's' on 'schemas'
2021-06-14 13:01:39 +01:00
Athanasius
d1159b6bbd
Merge pull request #117 from EDCD/enhancement/from-scratch-docs
Document how to run EDDN from scratch
2021-06-14 13:01:26 +01:00
Athanasius
80a858fb26 monitor: Fix typo of schemasTodayYesterday with its 's' on 'schemas' 2021-06-14 12:47:54 +01:00
Athanasius
5dc0e345fa docs/Running-this-software: Call out contrib/systemd 2021-06-14 12:33:14 +01:00
Athanasius
61bf062e9c Add example systemd unit files, and supporting files. 2021-06-14 12:27:21 +01:00
Athanasius
c383d97fee docs: Basic instructions on putting existing LetsEncrypt cert files in place 2021-06-04 15:24:40 +01:00
Athanasius
adaa6822f0 docs: Add some information from the VPS Anthor has been using. 2021-06-04 14:22:14 +01:00
Athanasius
423a9a23ee
Merge pull request #121 from BANTYC/enhancement/es-6-node-example
Minor Node.js example enhancement
2021-05-26 10:11:15 +01:00
BANTYC
2d2a02265f * Added semicolons
* Added ES6 imports
* Added package-lock.json
* Added module definition at package.json
2021-05-25 23:51:39 +07:00
Athanasius
e47b3e4021 docs/Running: Correct and clarify the Apache Proxy examples. 2021-05-19 11:32:42 +01:00
Athanasius
c5070c7754 docs/Running: Be explicit about the mysql password use 2021-05-19 11:28:03 +01:00
Athanasius
ad236365f8 docs/running: Add dpkg output of the tested VM.
The debian-vm-dpkg_-l.txt is likely the most useful as it includes the
exact versions of the packages.  This might help resolve any "uh,
doesn't work on *my* system" conundrums.
2021-05-17 08:25:34 +01:00
Athanasius
5f12722c9f docs/running: Order steps more logically.
* Also adds some minimal Apache guidance for Reverse Proxy setup.
2021-05-16 20:59:03 +01:00
Athanasius
ae4f54b608 docs/running: Move DB init after DB install/setup
* Also we might as well make examples clearer by assuming
  `~/eddn/dev/EDDN/` for the git clone.
2021-05-16 20:47:34 +01:00
Athanasius
f195a53872 docs/running: Detail the ports each process uses and why. 2021-05-16 20:45:03 +01:00
Athanasius
7dce35d442 docs/running: expand/correct/improve iptables rules for VM testing 2021-05-16 20:30:53 +01:00
Athanasius
a64ca249d1 docs/running: Add section on needing to search/replace monitor files 2021-05-16 20:27:56 +01:00
Athanasius
66bb88abca docs/running: cp -r not cp -p 2021-05-16 19:31:10 +01:00
Athanasius
e12f6f1f70 docs/running: Init SQL schema & port 9091 also needs forwarding to VM 2021-05-16 18:09:57 +01:00
Athanasius
031981893c docs/running: Example settings override file & misc grammar 2021-05-16 17:35:30 +01:00
Athanasius
ae73b346fd docs: Add example of a settings override file 2021-05-16 17:29:37 +01:00
Athanasius
b4359286af docs/running: multiple schemas can be outdated 2021-05-16 17:26:09 +01:00
Athanasius
4e9cecaf1e docs/running: nginx serves the schema files 2021-05-16 17:25:20 +01:00
Athanasius
854e20501c docs/running: missing ' which ' 2021-05-16 17:23:49 +01:00
Athanasius
5c9f01be7a docs/running: formatting & correct RELAY_HTTP_BIND_ADDRESS/RELAY_HTTP_PORT 2021-05-16 17:19:59 +01:00
Athanasius
4229d59450 docs/running: Formatting fixups. 2021-05-16 17:12:52 +01:00
Athanasius
1e4eb9e0e1 docs/running: Be more explicit about using an override file for config 2021-05-16 16:51:32 +01:00
Athanasius
ea87cea80b docs/running: Generalise the VM host name in example 2021-05-16 16:35:01 +01:00
Athanasius
2656efc828 docs/running: Notes on testing in a VM
* The useradd command is adding a user.
* How to quit out of `mysql.
* The `requirements.txt` is in this PR now.
* How to disable the message duplicates check.
* If you're double-proxying you need to set that up, and some firewall
  redirects too.
2021-05-16 16:32:12 +01:00
Athanasius
193863e686 docs/running: Much more progress
* Installing a mariadb server and creating the database, plus db user
  and permissions.
* Installing to ~/.local/ with setup.py script.
* Installing the monitor files.
* Installing the schema files.
* Installing `netdata` Debian package for performance stats.
* Installing and configuring nginx as reverse proxy.
2021-05-16 15:31:57 +01:00
Athanasius
1d871557eb requirements: add strict_rfc3339 2021-05-16 12:41:23 +01:00
Athanasius
b296f3ff11 Add requirements.txt
Whilst setup.py lists the required python modules it allows attempted
installation of the latest versions of each.

Unfortunately there is at least the problem that simplejson's latest
version attempts to install some dependencies which won't install on
Python 2.7.

Thus we nail down the versions of all the required modules as per
Athanasius' experience of what actually works on a Debian system.
2021-05-16 11:28:14 +01:00
Athanasius
8ee650c8db docs/running: Expand on Gateway passing messages on, start 'Running' section 2021-05-16 11:19:37 +01:00
Athanasius
8d34c3335f Add contrib/run-from-source.sh
This allows for running the three components without first installing
them in any manner.  You can just git clone, configure (including
certificate files) and go.
2021-05-16 10:41:17 +01:00
Athanasius
a8a6fd15a4 docs/Running: You can specify an overrides config file 2021-05-16 10:35:59 +01:00
Athanasius
d2d2122609 docs: Add initial version of Running-this-software.md 2021-05-16 09:35:20 +01:00
Rob
bd1c3d96d3
Merge pull request #115 from clonedArtie/master
Odyssey flags for the schemas
16May21PreChanged
2021-05-12 16:12:35 +01:00
clonedArtie
a1e61bab01
Odyssey and Horizons flags added 2021-05-12 16:33:39 +02:00
clonedArtie
878dbb7a99
Odyssey flag added 2021-05-12 16:32:51 +02:00
clonedArtie
629973b7d0
Odyssey flag added 2021-05-12 16:32:29 +02:00
clonedArtie
6a956f96f3
Odyssey flag added 2021-05-12 16:32:07 +02:00