Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:container:sediment

Dies ist eine alte Version des Dokuments!


Inhaltsverzeichnis

Sediment

Verantwortung Malte
Container sediment
W. Ports keine
OS Debian 10
Server magrathea
Zustand Produktiv

Hier findet sich die technische Dokumentation des Chaotikum Sediment. Die Nutzerdoku findet sich hier.

Services

ServiceübersichtVersion
Sediment 0.3.4

Sediment

Sediment wird von Malte entwickelt. Der Quelltext liegt in unserem Gitlab.

Installation Protocol

Install dependencies:

apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl

Install yarn:

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt remove cmdtest
apt update
apt install yarn

Clone code

git clone -4 https://git.chaotikum.org/malte/sediment.git

Install ruby dependencies

bundle update --bundler

Create secrets:

EDITOR=vim rails credentials:edit

Create empty database

rake db:setup RAILS_ENV=production

Precompile static assets

yarn install --check-files
rake assets:precompile

Running As IPv6

Now you can run the server using

RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD='CHANGEME' MAILER_HOST='[2a01:4f8:160:3067::37]' MAILER_PORT='80' rails s -e production -p 80 -b [::]

Create systemd service `/etc/systemd/system/sediment.service`

[Unit]
Description=sediment
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/root/sediment/
Environment=RAILS_SERVE_STATIC_FILES=1
Environment=MAILER_PASSWORD='CHANGEME'
Environment=MAILER_HOST='[2a01:4f8:160:3067::37]'
Environment=MAILER_PORT='80'
ExecStart=/root/sediment/bin/rails s -e production -p 80 -b [::]
Restart=always

[Install]
WantedBy=multi-user.target

Running As IPv4 Behind Reverse Proxy On Web

Now you can run the server using

RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD='CHANGEME' MAILER_HOST='sediment.chaotikum.org' MAILER_PORT='80' rails s -e production -p 80

Create systemd service `/etc/systemd/system/sediment.service`

[Unit]
Description=sediment
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/root/sediment/
Environment=RAILS_SERVE_STATIC_FILES=1
Environment=MAILER_PASSWORD='CHANGEME'
Environment=MAILER_HOST='sediment.chaotikum.org'
Environment=MAILER_PORT='80'
ExecStart=/root/sediment/bin/rails s -e production -p 80
Restart=always

[Install]
WantedBy=multi-user.target

Starting The Service

Enable and start systemd service

systemctl enable sediment
systemctl start sediment

Creating The First Admin User

Use the web interface to register a normal user.

Run console in production environment

rails console -e production

Inside the console:

u = User.find_by_email("your@email.address")
u.admin = true
u.save!

Wartung

Wartung SedimentWartung Sediment Wann 07.10.2023 21:40 Warum Update System Sediment Ansprechperson Malte wartungsfenster sediment done Agenda * Migration auf aktuelle Beta-Version
Wartung SedimentWartung Sediment Wann 15.10.2022 21:14 Warum Update System Sediment Ansprechperson Malte wartungsfenster sediment done
Wartung SedimentWartung Sediment Wann 20.03.2022 14:20 Warum Update auf 0.3.7 System Sediment Ansprechperson Malte wartungsfenster sediment done Agenda * Update auf Bullseye
Wartung SedimentWartung Sediment Wann 07.11.2021 11:24 Warum Systemupdate System Sediment Ansprechperson Malte wartungsfenster sediment done
Sediment Wartung (22.07.2021)Sediment Wartung (22.07.2021) Wann 22.07.2021 21:50 bis 22:00 Warum Wartung System Sediment Ansprechperson Malte wartungsfenster done sediment Agenda * Systemupdate * Skripte aktualisieren
Sediment Wartung (28.06.2021)Sediment Wartung (28.06.2021) Wann 28.06.2021 21:50 bis 22:20 Warum Wartung System Sediment Ansprechperson Malte wartungsfenster sediment done Agenda * Update auf 0.3.6
infrastruktur/container/sediment.1610819686.txt.gz · Zuletzt geändert: 16.01.2021 17:54 von Malte