项目作者: MoimHossain

项目描述 :
A docker image that converts a VSTS wiki repository into a html site and stores the htmls into a Blob Storage
高级语言: JavaScript
项目地址: git://github.com/MoimHossain/markdown-to-html.git
创建时间: 2018-05-25T05:36:05Z
项目社区:https://github.com/MoimHossain/markdown-to-html

开源协议:MIT License

下载


Introduction

A docker image that converts a VSTS wiki repository into a html site and stores the htmls into a Blob Storage during the image build.

Why?

Totally because I just wanted to write it that way. There is no other rational behind.

How to use?

Create your own docker image based on this image.

  1. FROM moimhossain/markdown-to-html
  2. WORKDIR /usr/src/app
  3. ARG storageAcccount=notset
  4. ARG storageKey=notset
  5. ENV AZURE_STORAGE_ACCOUNT=$storageAcccount
  6. ENV AZURE_STORAGE_ACCESS_KEY=$storageKey
  7. ADD wiki ./wiki_raw/
  8. RUN node convert-markdown-to-html.js
  9. RUN node upload-to-blob-storage.js
  10. ADD markdownfolder ./wiki_raw/
  11. RUN node convert-markdown-to-html.js
  12. RUN node upload-to-blob-storage.js

Once you have this Dockerfile, run it as following:

  1. docker build -t whatever --build-arg storageAcccount=AZURE_STORAGE_NAME --build-arg storageKey=AZURE_STORAGE_KEY --no-cache

That’s it. Thanks for looking into. :-)