Commit 4ca285db authored by Holger Levsen's avatar Holger Levsen
Browse files

document progress in setting up snapshot.r-b.o



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 6a75e4a8
About the snapshot.r-b.o setup
==============================
:Author: Holger Levsen
:Authorinitials: holger
:EMail: holger@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:
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;
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment