#!/bin/bash echo "This script shall not be run and is only included for general documentation purposes." exit 0 ######## VERSION INFORMATION ######## postgres_version=13 node_version=14 ruby_version=2.7.2 rails_version=5.2.4.4 geckodriver_version=0.26.0 ########## INSTALL SCRIPT ########### # codeocean user sudo adduser codeocean # PostgreSQL wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" # drop postgres access control # tee /etc/postgresql/$postgres_version/main/pg_hba.conf <

Maintenance! Wartungsarbeiten!

CodeOcean is temporarily unavailable and will be back soon! We're aware of this issue and you do not need to take further steps (ask a question in the course forum or create a helpdesk ticket). Please check back in about five minutes. Your last progress has been saved and will be available once you return.


CodeOcean ist derzeit nicht verfügbar und wird in Kürze wieder erreichbar sein. Wir wissen von der Nichtverfügbarkeit, sodass keine weiteren Schritte (wie eine Frage im Forum zu posten oder ein Helpdesk-Ticket zu erstellen) nötig sind. Bitte versuchen Sie in ungefähr fünf Minunten erneut, die Lernplattform aus dem Kurs heraus zu öffnen. Ihr Bearbeitungsstand wurde gespeichert und wird Ihnen beim Fortsetzen der Aufgabe wieder zur Verfügung stehen.


Kind regards, Viele Grüße

Teaching Team

EOF systemctl enable codeocean.service systemctl enable dockercontainerpool.service mkdir -p /var/www/acme-challenges chown -R www-data:codeocean /var/www chmod -R 775 /var/www certbot certonly --webroot -w /var/www/acme-challenges/ --email email@example.org --rsa-key-size 4096 --agree-tos -d codeocean.openhpi.de systemctl daemon-reload # Deploy via Capistrano (both, CodeOcean and DockerContainerPool) # Ensure that the `codeocean` user always has access to the files (especially when Docker remap is active): # cd /var/www/app/current/tmp/files && setfacl -Rdm user:codeocean:rwx . && setfacl -Rm user:codeocean:rwx . && cd - # Find more files in codeocean-deploy/config/backup # execute in PSQL as user postgres in database postgres # This will schedule an automatic VACUUM ANALYZE on a nightly basis # CREATE EXTENSION pg_cron; # SELECT cron.schedule('nightly-vacuum', '0 3 * * *', 'VACUUM ANALYZE'); # UPDATE cron.job SET database = 'codeocean-production' WHERE jobid = 1;