An open API service indexing awesome lists of open source software.

https://github.com/moimhossain/markdown-to-html

A docker image that converts a VSTS wiki repository into a html site and stores the htmls into a Blob Storage
https://github.com/moimhossain/markdown-to-html

docker docker-image markdown-to-html

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.

``` javascript

FROM moimhossain/markdown-to-html

WORKDIR /usr/src/app

ARG storageAcccount=notset
ARG storageKey=notset

ENV AZURE_STORAGE_ACCOUNT=$storageAcccount
ENV AZURE_STORAGE_ACCESS_KEY=$storageKey

ADD wiki ./wiki_raw/
RUN node convert-markdown-to-html.js
RUN node upload-to-blob-storage.js

ADD markdownfolder ./wiki_raw/
RUN node convert-markdown-to-html.js
RUN node upload-to-blob-storage.js

```

Once you have this `Dockerfile`, run it as following:

``` javascript

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. :-)