Skip to content

Commit b944252

Browse files
committed
build: initial commit
1 parent 12f6f21 commit b944252

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

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

3-
Multi-platform Docker container with utilities to process Rich Text Format files (`unrtf`, `striprtf`, `rtf-converter`...).
3+
Multi-platform Docker container with utilities to process Rich Text Format files (`pandoc`, `unrtf`...).
44

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

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

2323
**Windows**
2424

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

2929
## Example using the filesystem
@@ -33,21 +33,21 @@ Same thing, assuming that you want to convert an Rich Text Format file intput.rt
3333
**Mac/Linux**
3434

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

3939
**Windows**
4040

4141
In `cmd`:
4242

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

4747
In PowerShell:
4848

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

5353
## Software Bill of Materials (SBOM)

rtf/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ RUN apk upgrade --no-cache \
1616
coreutils=9.7-r1 \
1717
curl=8.14.1-r1 \
1818
git=2.49.1-r0 \
19+
pandoc-cli=3.6.4-r0 \
1920
py3-pip=25.1.1-r0 \
2021
python3=3.12.11-r0 \
22+
unrtf=0.21.10-r3 \
2123
&& apk cache --no-cache clean \
2224
&& rm -rf /var/cache/apk/*
2325

rtf/docker-compose.test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ services:
1414
base64 --version # coreutils
1515
curl --version # curl
1616
git --version # git
17+
pandoc --version # pandoc
1718
pip --version # py3-pip
1819
python --version # python3
20+
unrtf --version # unrtf
1921
'

0 commit comments

Comments
 (0)