Skip to content

Move to OKD #765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025
Merged

Move to OKD #765

merged 2 commits into from
Apr 14, 2025

Conversation

Isak-Kallini
Copy link
Member

This pr adds a Dockerfile and a github workflow to deploy the website to OKD

This pr will be merged during scheduled downtime on monday 14/4 during the evening starting 17:00 since there are some manual steps needed to move the website over completely:

  • Turn off the website when the downtime starts we should turn off the website with pm2 stop to avoid having people use the website and lose data

  • Transfer the data to a new database in okd
    as user postgres run

    pg_dump --verbose --no-owner --no-privilege --format=c --blobs "dsek" --file ./data.sql
    

    to create a dump. Then move it to your own home directory and copy it to your local machine with scp:

    scp web-beta.blossm:/path/to/file .
    

    Then copy it to pando:

    scp ./data.sql pando.blossom:/home/is3366ka-s
    

    As root on pando, move it to /klusterbitar/okd/web-db/web-db

    In the OKD web console, go to the terminal of the db pod and navigate to /var/lib/postgresql/data/web-db and run

    pg_restore --clean -U postgres -d dsek data.sql
    
  • Make a release In github, make a release as usual and make sure the deployment works correctly

  • Point dsek.se to OKD

  • Update docs https://cpu.dsek.se/doc/web-4Xyz2sPwYV

@Isak-Kallini Isak-Kallini marked this pull request as ready for review April 14, 2025 15:52
@Isak-Kallini Isak-Kallini merged commit cc81915 into main Apr 14, 2025
3 checks passed
@Isak-Kallini Isak-Kallini deleted the containerize branch April 14, 2025 16:02
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in CPU Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant