Sign inSign up

caladreas/mkdocs-docker-build-container

By caladreas

•Updated over 8 years ago

Build container for MKDocs .

Image
1

2.7K

caladreas/mkdocs-docker-build-container repository overview

⁠MKDocs Docker Build Container

GitHub release license Docker Pulls

This is a docker container for being able to build a site with MKDocs⁠.

It includes MKDocs Material⁠ which is a highly recommendable theme.

For more information, see the requirements.txt⁠.

Buy Me a Coffee at ko-fi.com-

⁠Jenkins 2.0 & Pipeline

This is image is made and maintained for the use in Jenkins pipelines.

Either via the Groovy based Pipeline DSL or the declarative pipeline syntax.

⁠Groovy DSL
node('docker') {
    stage('SCM') {
        checkout scm
    }

    stage('Build Docs') {
        docker.image('caladreas/mkdocs-docker-build-container').inside {
            sh 'mkdocs build'
        }

    }
}

⁠Declarative
pipeline {
    agent none
    options {
        timeout(time: 10, unit: 'MINUTES')
        timestamps()
        buildDiscarder(logRotator(numToKeepStr: '5'))
    }
    stages {
        stage('Checkout'){
            agent { label 'docker' }
            steps {
                checkout scm
            }
        }
        stage('Build Docs') {
            agent {
                docker {
                    image "caladreas/mkdocs-docker-build-container"
                    label "docker"
                }
            }
            steps {
                sh 'mkdocs build'
            }
        }
    }
}

Tag summary

Content type

Image

Digest

Size

272.4 MB

Last updated

over 8 years ago

docker pull caladreas/mkdocs-docker-build-container