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
- Host: GitHub
- URL: https://github.com/moimhossain/markdown-to-html
- Owner: MoimHossain
- License: mit
- Created: 2018-05-25T05:36:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-25T17:44:09.000Z (about 8 years ago)
- Last Synced: 2024-12-31T03:14:44.952Z (over 1 year ago)
- Topics: docker, docker-image, markdown-to-html
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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. :-)