summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVainsocial root <root@vainsocial>2017-03-07 17:42:21 +0000
committerVainsocial root <root@vainsocial>2017-03-07 17:42:21 +0000
commit861a4b3c6fd59ff2ba3a7b7d3bb54a12df4b3a47 (patch)
tree61a9b62e3dd05ca9b4f452ea8750c868cd9689d3
downloadmeta-861a4b3c6fd59ff2ba3a7b7d3bb54a12df4b3a47.tar.gz
meta-861a4b3c6fd59ff2ba3a7b7d3bb54a12df4b3a47.zip
first setup
-rw-r--r--.gitmodules9
m---------apigrabber0
m---------processor0
m---------statscompiler0
-rw-r--r--supervisord.conf54
-rw-r--r--vainsocial-apigrabber.service13
-rw-r--r--vainsocial-compiler.service13
-rw-r--r--vainsocial-processor.service13
8 files changed, 102 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..8a05ad0
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,9 @@
+[submodule "apigrabber"]
+ path = apigrabber
+ url = https://github.com/vainglorygame/apigrabber
+[submodule "processor"]
+ path = processor
+ url = https://github.com/vainglorygame/processor
+[submodule "statscompiler"]
+ path = statscompiler
+ url = https://github.com/vainglorygame/statscompiler
diff --git a/apigrabber b/apigrabber
new file mode 160000
+Subproject bbc1b9d341aeee60946570e2f7b00b653246a33
diff --git a/processor b/processor
new file mode 160000
+Subproject c335893aa104f77410368f60f53657aa7251584
diff --git a/statscompiler b/statscompiler
new file mode 160000
+Subproject 7832197c4a4259883d728ad2259129bcc5af0de
diff --git a/supervisord.conf b/supervisord.conf
new file mode 100644
index 0000000..6b16a49
--- /dev/null
+++ b/supervisord.conf
@@ -0,0 +1,54 @@
+[supervisord]
+user=root
+
+
+[program:vainsocial-apigrabber]
+user=vainsocial
+command=/vainsocial/apigrabber/venv/bin/python /vainsocial/apigrabber/api.py
+redirect_stderr=true
+stdout_logfile=/vainsocial/logs/apigrabber.log
+environment=
+ VAINSOCIAL_APITOKEN=,
+ POSTGRESQL_HOST=,
+ POSTGRESQL_PORT=5433,
+ POSTGRESQL_DB=vain_raw,
+ POSTGRESQL_USER=vainraw,
+ POSTGRESQL_PASSWORD=
+
+
+[program:vainsocial-processor]
+user=vainsocial
+command=/vainsocial/processor/venv/bin/python /vainsocial/processor/api.py
+redirect_stderr=true
+stdout_logfile=/vainsocial/logs/processor.log
+environment=
+ VAINSOCIAL_SPIDER="true",
+ VAINSOCIAL_ANALYZE="false",
+ POSTGRESQL_SOURCE_HOST=,
+ POSTGRESQL_SOURCE_PORT=5433,
+ POSTGRESQL_SOURCE_DB=vain_raw,
+ POSTGRESQL_SOURCE_USER=vainraw,
+ POSTGRESQL_SOURCE_PASSWORD=,
+ POSTGRESQL_DEST_HOST=,
+ POSTGRESQL_DEST_PORT=5433,
+ POSTGRESQL_DEST_DB=vain_web,
+ POSTGRESQL_DEST_USER=vainweb,
+ POSTGRESQL_DEST_PASSWORD=
+
+
+[program:vainsocial-compiler]
+user=vainsocial
+command=/vainsocial/statscompiler/venv/bin/python /vainsocial/statscompiler/api.py
+redirect_stderr=true
+stdout_logfile=/vainsocial/logs/compiler.log
+environment=
+ POSTGRESQL_SOURCE_HOST=,
+ POSTGRESQL_SOURCE_PORT=5433,
+ POSTGRESQL_SOURCE_DB=vain_raw,
+ POSTGRESQL_SOURCE_USER=vainraw,
+ POSTGRESQL_SOURCE_PASSWORD=,
+ POSTGRESQL_DEST_HOST=,
+ POSTGRESQL_DEST_PORT=5433,
+ POSTGRESQL_DEST_DB=vain_web,
+ POSTGRESQL_DEST_USER=vainweb,
+ POSTGRESQL_DEST_PASSWORD=
diff --git a/vainsocial-apigrabber.service b/vainsocial-apigrabber.service
new file mode 100644
index 0000000..d1b22a7
--- /dev/null
+++ b/vainsocial-apigrabber.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Vainsocial API grabber service
+After=network.target
+
+[Service]
+Type=simple
+User=vainsocial
+ExecStart=/vainsocial/apigrabber/venv/bin/python /vainsocial/apigrabber/api.py
+Restart=on-failure
+EnvironmentFile=/vainsocial/config.env
+
+[Install]
+WantedBy=multi-user.target
diff --git a/vainsocial-compiler.service b/vainsocial-compiler.service
new file mode 100644
index 0000000..f7110a7
--- /dev/null
+++ b/vainsocial-compiler.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Vainsocial compiler service
+After=network.target
+
+[Service]
+Type=simple
+User=vainsocial
+ExecStart=/vainsocial/statscompiler/venv/bin/python /vainsocial/statscompiler/api.py
+Restart=on-failure
+EnvironmentFile=/vainsocial/config.env
+
+[Install]
+WantedBy=multi-user.target
diff --git a/vainsocial-processor.service b/vainsocial-processor.service
new file mode 100644
index 0000000..5782a8a
--- /dev/null
+++ b/vainsocial-processor.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Vainsocial processor service
+After=network.target
+
+[Service]
+Type=simple
+User=vainsocial
+ExecStart=/vainsocial/processor/venv/bin/python /vainsocial/processor/api.py
+Restart=on-failure
+EnvironmentFile=/vainsocial/config.env
+
+[Install]
+WantedBy=multi-user.target