Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:container:sediment

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung
infrastruktur:container:sediment [11.04.2021 07:29] – [Wartung] Lukas Rugeinfrastruktur:container:sediment [07.10.2023 22:11] – [Sediment] Malte
Zeile 1: Zeile 1:
 ====== Sediment ====== ====== Sediment ======
-|Verantwortung  |Malte                          +| Verantwortung  | Malte                               
-|Container      |sediment                           +| Container      | sediment                            
-|W. Ports       |keine                          +| W. Ports       | keine                               
-|OS             |Debian 10                      +| OS             | Debian 11.7                         
-|Server         |[[infrastruktur:server:magrathea]] | +| Server         | [[infrastruktur:server:magrathea]]  
-|Zustand        |Produktiv                      |+| Zustand        | Produktiv                           |
  
-{{tag>infrasystem container magrathea productive}}+{{tag>infrasystem container magrathea productive malte}}
  
 Hier findet sich die technische Dokumentation des Chaotikum Sediment. [[hackspace:infrastruktur:sediment|Die Nutzungshinweise finden sich hier]]. Hier findet sich die technische Dokumentation des Chaotikum Sediment. [[hackspace:infrastruktur:sediment|Die Nutzungshinweise finden sich hier]].
  
 ===== Services ===== ===== Services =====
-^ Serviceübersicht^Version^ +^ Serviceübersicht  ^ Version  
-|Sediment| 0.3.4 |+| Sediment          | 0.4.0    |
  
 ====Sediment==== ====Sediment====
Zeile 22: Zeile 22:
  
 <code> <code>
-apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl+apt install build-essential patch zlib1g-dev liblzma-dev libsqlite3-dev nodejs curl 
 +</code> 
 + 
 +[[https://rvm.io|Install RVM]]: 
 + 
 +Install GPG keys: 
 +<code> 
 +gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
 +</code> 
 + 
 +Install RVM: 
 +<code> 
 +\curl -sSL https://get.rvm.io | bash -s stable 
 +</code> 
 + 
 +Install Ruby: 
 +<code> 
 +rvm install ruby-3.1.4
 </code> </code>
  
Zeile 38: Zeile 55:
  
 <code> <code>
-git clone -4 https://git.chaotikum.org/malte/sediment.git+git clone https://git.chaotikum.org/malte/sediment.git
 </code> </code>
  
Zeile 44: Zeile 61:
  
 <code> <code>
-bundle update --bundler +bundle install
-</code> +
- +
-Create secrets: +
- +
-<code> +
-EDITOR=vim rails credentials:edit+
 </code> </code>
  
Zeile 62: Zeile 73:
  
 <code> <code>
-yarn install --check-files 
 rake assets:precompile rake assets:precompile
 </code> </code>
  
-=== Running As IPv6 ===+=== Systemd Service ===
  
-Now you can run the server using +Create systemd service ''/etc/systemd/system/sediment.service''
- +
-<code> +
-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 [::] +
-</code> +
- +
-Create systemd service `/etc/systemd/system/sediment.service`+
  
 <code> <code>
Zeile 84: Zeile 88:
 Type=simple Type=simple
 WorkingDirectory=/root/sediment/ WorkingDirectory=/root/sediment/
-Environment=RAILS_SERVE_STATIC_FILES=1 +Environment=RAILS_ENV=production 
-Environment=MAILER_PASSWORD='CHANGEME+Environment=RAILS_SERVE_STATIC_FILES=true 
-Environment=MAILER_HOST='[2a01:4f8:160:3067::37]+Environment=SEDIMENT_OPENID_DISPLAY_NAME='Chaotikum Account
-Environment=MAILER_PORT='80' +Environment=SEDIMENT_OPENID_AUTH_URI='https://me.chaotikum.org/auth/realms/Chaotikum/protocol/openid-connect/auth
-ExecStart=/root/sediment/bin/rails s -e production -p 80 -b [::] +Environment=SEDIMENT_OPENID_TOKEN_URI='https://me.chaotikum.org/auth/realms/Chaotikum/protocol/openid-connect/token' 
-Restart=always +Environment=SEDIMENT_OPENID_CLIENT_ID='sediment' 
- +Environment=SEDIMENT_OPENID_CLIENT_SECRET='****************' 
-[Install] +Environment=SEDIMENT_OPENID_SCOPE='email profile openid' 
-WantedBy=multi-user.target +Environment=SEDIMENT_OPENID_LOGOUT_URL='https://me.chaotikum.org/auth/realms/Chaotikum/protocol/openid-connect/logout' 
-</code> +Environment=SEDIMENT_OPENID_GROUP_KEY='groups
- +Environment=SEDIMENT_OPENID_GROUP_VALUE='/freigeschaltet' 
-=== Running As IPv4 Behind Reverse Proxy On Web === +Environment=SECRET_KEY_BASE=********************** 
- +Environment=SMTP_ADDRESS=mail.chaotikum.net 
-Now you can run the server using +Environment=SMTP_PORT=587 
- +Environment=SMTP_USER=sediment 
-<code> +Environment=SMTP_PASSWORD='**************' 
-RAILS_SERVE_STATIC_FILES=1 MAILER_PASSWORD='CHANGEMEMAILER_HOST='sediment.chaotikum.org' MAILER_PORT='80rails s -e production -p 80 +Environment=SMTP_AUTHENTICATION=plain 
-</code> +Environment=SMTP_ENABLE_STARTTLS_AUTO=1 
- +Environment=MAILER_FROM=sediment@chaotikum.org 
-Create systemd service `/etc/systemd/system/sediment.service` +Environment=MAILER_HOST=sediment.chaotikum.org 
- +Environment=MAILER_PORT=80 
-<code> +Environment=SEDIMENT_FOOTER_LINK_1='https://chaotikum.org|Chaotikum
-[Unit] +Environment=SEDIMENT_FOOTER_LINK_2='https://chaotikum.org/impressum|Impressum
-Description=sediment +Environment=SEDIMENT_FOOTER_LINK_3='https://chaotikum.org/datenschutzerk|Datenschutzerklärung
-After=syslog.target network.target +ExecStart=/usr/local/rvm/bin/rvm 3.1.4@sediment do bundle exec rails s -e production -p 80
- +
-[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 Restart=always
  
Zeile 151: Zeile 146:
  
 ===== Wartung ===== ===== Wartung =====
 +In das Textfeld einfach das Datum der Wartung eintragen, am besten in der Form yyyy-mm-dd. 
 +
 +{{NEWPAGE>infrastruktur:wartung:sediment#pagetemplates:wartungstemplate:sediment|Sediment
 +}} 
 +
 {{topic>:infrastruktur:wartung?wartungsfenster +sediment &nodate&nouser&desc&table}} {{topic>:infrastruktur:wartung?wartungsfenster +sediment &nodate&nouser&desc&table}}
 +
 +~~NOCACHE~~
infrastruktur/container/sediment.txt · Zuletzt geändert: 09.05.2024 15:58 von Malte