Skip to content

GEANT/docker-devops-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Wiki

Documentation as a code with MkDocs-material

  1. Preamble
  2. Docker instructions
  3. Create a new release

Preamble

The Wiki is accessible at the root URL (/)

Additionally, the container provides also a hook URL (/hookz/<branch>) to trigger a Git pull and rebuild the documentation site. This requires setting up a trigger on your CI platform.

Ensure to specify a publicly accessible repository URL in Dockerfile/Dockerfile-local containing your Wiki code.

There is also a health-check URL (/healthz) which I use from Nomad to determine the health status of the container.

The trailing z in hookz and healthz serves the purpose of choosing distinctive names, less likely to conflict with page names within the Wiki.

Docker instructions

You can build and run a local image using the script build.sh. You can use --help to explore all the options:

./build.sh --help

Create a new release

Bearing in mind that our laptops can compile the image for a different architecture, we rely on Gitlab CI to compile the image.

You can add these lines inside your ~/.gitconfig:

[alias]
    pp = !git pull &&  git push
    pushall = !git remote | xargs -L1 git push --all
    pushall-tags = !git remote | xargs -L1 git push --tags

In the case below you apply the changes to main branch and create a tag starting from main.

If you want to create version 1.2.3, the commands below will trigger the CI and upload the files to Gitlab:

git checkout main  # make your changes ...
git commit "my new change"
git push
git tag 1.2.3
git pushall-tags