Skip to content

Commit 5220fca

Browse files
committed
build: initial commit
1 parent 0e5c5bd commit 5220fca

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Markdown
22

3-
Multi-platform Docker container with utilities to process Markdown files (`asciidoc`, `a2x`, `ascidoctor`...).
3+
Multi-platform Docker container with utilities to process Mardown and text files (pandoc, markdown, prettier...).
44

55
[![Dockerfile](https://img.shields.io/badge/GitHub-Dockerfile-blue)](md/Dockerfile)
66
[![Docker Build](https://github.com/leplusorg/docker-md/workflows/Docker/badge.svg)](https://github.com/leplusorg/docker-md/actions?query=workflow:"Docker")
@@ -17,13 +17,13 @@ Let's say that you want to convert an Markdown file intput.md in your current wo
1717
**Mac/Linux**
1818

1919
```bash
20-
cat intput.md | docker run --rm -i --net=none leplusorg/md asciidoc -o - > output.html
20+
cat intput.md | docker run --rm -i --net=none leplusorg/md pandoc -o - > output.html
2121
```
2222

2323
**Windows**
2424

2525
```batch
26-
type intput.md | docker run --rm -i --net=none leplusorg/md asciidoc -o - > output.html
26+
type intput.md | docker run --rm -i --net=none leplusorg/md pandoc -o - > output.html
2727
```
2828

2929
## Example using the filesystem
@@ -33,21 +33,21 @@ Same thing, assuming that you want to convert an Markdown file intput.md in your
3333
**Mac/Linux**
3434

3535
```bash
36-
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" leplusorg/md asciidoc -o output.html intput.md
36+
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" leplusorg/md pandoc -o output.html intput.md
3737
```
3838

3939
**Windows**
4040

4141
In `cmd`:
4242

4343
```batch
44-
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/md asciidoc -o output.html intput.md
44+
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/md pandoc -o output.html intput.md
4545
```
4646

4747
In PowerShell:
4848

4949
```pwsh
50-
docker run --rm -t --net=none -v "${PWD}:/tmp" leplusorg/md asciidoc -o output.html intput.md
50+
docker run --rm -t --net=none -v "${PWD}:/tmp" leplusorg/md pandoc -o output.html intput.md
5151
```
5252

5353
## Software Bill of Materials (SBOM)

md/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,32 @@ SHELL ["/bin/ash", "-euo", "pipefail", "-c"]
1313

1414
RUN apk upgrade --no-cache \
1515
&& apk add --no-cache \
16+
aspell=0.60.8.1-r0 \
17+
aspell-de=20161207.7.0-r0 \
18+
aspell-en=2020.12.07-r0 \
19+
aspell-fr=0.50.3-r0 \
20+
aspell-ru=0.99_p7-r2 \
21+
aspell-uk=1.4.0-r3 \
1622
coreutils=9.7-r1 \
1723
curl=8.14.1-r1 \
1824
git=2.49.1-r0 \
25+
go-md2man=2.0.7-r3 \
26+
markdown=1.0.1-r3 \
27+
npm=11.3.0-r1 \
28+
pandoc-cli=3.6.4-r0 \
29+
pipx=1.7.1-r0 \
1930
py3-pip=25.1.1-r0 \
2031
python3=3.12.11-r0 \
2132
&& apk cache --no-cache clean \
2233
&& rm -rf /var/cache/apk/*
2334

35+
RUN pipx ensurepath --global \
36+
&& pipx install --global \
37+
mdformat==0.7.22
38+
39+
RUN npm install -g \
40+
41+
2442
RUN adduser \
2543
--home "${USER_HOME}" \
2644
--uid "${USER_ID}" \

md/docker-compose.test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ services:
1111
if [ $$(id -u) -ne 1000 ]; then
1212
exit 1
1313
fi
14+
aspell --version # aspell
1415
base64 --version # coreutils
1516
curl --version # curl
1617
git --version # git
18+
echo | go-md2man # go-md2man
19+
markdown --version # markdown
20+
mdformat --version # mdformat
21+
pandoc --version # pandoc
1722
pip --version # py3-pip
1823
python --version # python3
1924
'

0 commit comments

Comments
 (0)