Sign inSign up

gioxa/pandoc-centos

By gioxa

Updated over 7 years ago

Pandoc with CentOS micro image with coreutils for converting markdowns to html.

Image
1

3.0K

gioxa/pandoc-centos repository overview

pandoc-centos

pandoc version

pandoc v2.4


purpose

"Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library."

This image adds pandoc to a micro CentOS 7 image with coreutils to convert Markdown to html.

note: no support for pdf yet!

usage image

example:

# .gitlab-ci.yml
build_docs:
  image: gioxa/pandoc-centos
  stage: build
  retry: 1
  dependencies: []
  variables:
    ODAGRUN_POD_SIZE: nano
  script:
    - mkdir -pv public
    - cp -v  Docs/app.css public/app.css
    - >-
      pandoc
      -s
      --highlight-style pygments
      --toc
      --toc-depth=2
      -c app.css
      -o public/index.html
      Docs/start_s.md
      Docs/intro.md
      Docs/install.md
  tags:
    - odagrun
  artifacts:
    paths:
      - public

used by:

odagrun to publish html manual for each release, see result at User Guide odagrun

make_os.conf


install_packages="coreutils"


Docker Image Config


Cmd:
  - /bin/bash
Env:
  - 'PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin'
  - LANG=en_US.UTF-8
  - LANGUAGE=en_US.UTF-8
  - LC_CTYPE=en_US.UTF-8
Hostname: "$CI_PROJECT_NAME"
WorkingDir: /
User: ""



Build with odagrun from GitLab Repo gioxa/build-images/pandoc-centos on openshift online starter.

Tag summary

Content type

Image

Digest

Size

24.8 MB

Last updated

over 7 years ago

docker pull gioxa/pandoc-centos