[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] document progress in setting up snapshot.r-b.o

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Nov 4 17:24:43 GMT 2021



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
4ca285db by Holger Levsen at 2021-11-04T18:24:23+01:00
document progress in setting up snapshot.r-b.o

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- + README.snapshot.r-b.o
- + hosts/snapshot/etc/nginx/nginx.conf


Changes:

=====================================
README.snapshot.r-b.o
=====================================
@@ -0,0 +1,39 @@
+About the snapshot.r-b.o setup
+==============================
+:Author:           Holger Levsen
+:Authorinitials:   holger
+:EMail:            holger at layer-acht.org
+:Status:           working, in progress
+:lang:             en
+:Doctype:          article
+:License:          GPLv2
+
+== Scope
+
+Describe how snapshot.r-b.o has been set up on a dedicated machine
+hosted at OSUOSL.org
+
+=== initial setup
+
+I follewed https://github.com/fepitre/debian-snapshot#installation and
+added the needed packages to update_jdn.sh in this git repo.
+
+https://github.com/fepitre/debian-snapshot was cloned into ~jenkins/debian-snapshot/
+
+sudo cp ~jenkins/debian-snapshot/api/snapshot-api.service /usr/lib/systemd/system
+and adopted two lines:
+	User=jenkins
+	WorkingDirectory=/var/lib/jenkins/debian-snapshot/api
+
+sudo systemctl daemon-reload
+sudo mkdir -p /snapshot /var/run/snapshot /var/log/snapshot
+sudo chown jenkins:www-data /var/run/snapshot
+sudo chown postgres:postgres /var/lib/postgresql
+sudo chown jenkins:jenkins /var/log/snapshot
+
+nginx.conf from ~jenkins/debian-snapshot/api/nginx.conf has been copied into this
+git repo so we can maintain our copy here.
+
+
+
+// vim: set filetype=asciidoc:


=====================================
hosts/snapshot/etc/nginx/nginx.conf
=====================================
@@ -0,0 +1,30 @@
+user                   www-data;
+worker_processes       auto;
+error_log              /var/log/nginx/error.log;
+pid                    /run/nginx.pid;
+
+events {
+    worker_connections  1024;
+}
+
+http {
+    include             mime.types;
+    sendfile            on;
+    server_tokens       off;
+
+    server {
+        listen          80;
+        server_name     localhost;
+
+        location /snapshot {
+            alias       /snapshot;
+            autoindex   on;
+        }
+
+        location /snapshot/mr {
+            include     uwsgi_params;
+            rewrite     /snapshot/(.+) /$1 break;
+            uwsgi_pass  unix:/var/run/snapshot/snapshot.sock;
+        }
+    }
+}



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/4ca285dbe7db9f9eff592322f0ea7640ef0378a4

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/4ca285dbe7db9f9eff592322f0ea7640ef0378a4
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20211104/9827ffa7/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list