Skip to content

composarc/ern

Repository files navigation

Linux web

This repo follows https://how-to.docs.cern.ch/advanced/alternative/.

  • linux is the production site and uses the linux-paas OKD4 project.

    • linux-qa and uses the linux-qa-paas OKD4 project.
  • We have a CNAME registered that we then use for a redirect, i.e. linux-qa.cern.ch -> linux-qa.web.cern.ch, to replicate the old website behaviour.

    • Redirection is done with a simple nginx redirection, deployed with oc create -f nginx-redirect-(qa/prod).yaml.
  • For https://linux-qa.web.cern.ch and https://linux.web.cern.ch we use KB0006299 solution for a Let's encrypt certificate.

  • This repo adds some useful redirections to ease with any old URL format. Check nginx-default-cfg/redirect.conf file for more details. This directory and its contents follow the documentation

Customisations

CI/CD

Instead of relying on the general use case https://how-to.docs.cern.ch, we deployed the more complex version IT-CDA-WF provided. Check their docs for reference.

Archive

Following a similar setup (except for the nginx-redirect as this one is not necessary) we have prepared https://gitlab.cern.ch/linuxsupport/websites/linux-archive.web.cern.ch for archiving old content. This helps reducing the building time, as for example splitting old SLC6 updates in a different project.

Upgrading or updating MkDocs configuration

As of August 2021 we still use https://gitlab.cern.ch/authoring/documentation/s2i-mkdocs-container which is now considered unmaintained.

If we ever update the image version, we need to follow certain steps:

GitLab CI will take care of deploying everything.