Docker Image based on Derek Eder's Github Repository (all credits belong to him) with some features!.
docker run -d --rm -it --name csv2html \
-e APP_TITLE="Player Stats" \
-e APP_LOGO_URL="https://upload.wikimedia.org/wikipedia/id/thumb/e/e3/2022_FIFA_World_Cup.svg/220px-2022_FIFA_World_Cup.svg.png" \
-e APP_ORG="FIFA World Cup" \
-e APP_YEAR="2022" \
-e APP_DESC="Source: kaggle.com" \
-e APP_CSV_COL_HIDE="3,9,12,13,14,17,18,19,20,21,22,23,24,25,26,27,28,29,30" \
-e APP_CSV_FILELIST=1 \
-e APP_CSV_ROW_SPOT="data[0] == 'Cristiano Ronaldo'" \
-p 30003:8000 gprakosa/csv2html:v1.7
You can also mount your own filesystem and use it as follows
…
-v $PWD:/app/data
-e APP_CSV_FILENAME=“<your-csv-filename>”
…
| Parameter | Variable | Default Value | Notes |
|---|---|---|---|
| Application Port | APP_PORT | 8000 | |
| Application Title | APP_TITLE | "CSV to HTML Table" | |
| Application Logo URL | APP_LOGO_URL | - | |
| Application Organization | APP_ORG | - | automatically add "at" |
| Application Year | APP_YEAR | - | automatically add "©" |
| Application Desciption | APP_DESC | - | |
| Application Stylesheet URL | APP_STYLE_URL | Bootstrap URL | |
| Appliction Font-Family | APP_STYLE_FONT | "Arial,sans-serif" | |
| Application CSV Filename | APP_CSV_FILENAME | "player_stats" | just without .csv |
| Application CSV List | APP_CSV_FILELIST | 0 | available: 0, 1 |
| Application CSV Column to Sorted-by | APP_CSV_COL_SORT | "0, 'asc'" | available: asc, desc |
| Application CSV Column to Hide | APP_CSV_COL_HIDE | - | use comma for multiple columns |
| Application CSV Column Date Format | APP_CSV_COL_DATE | - | use Moment.js format |
| Application CSV Rows to Spot | APP_CSV_ROW_SPOT | "col[0] == ''" | use any Javascript conditional statement |
| Application CSV Rows to Spot Class | APP_CSV_ROW_SPOTCLASS | "text-warning bg-dark" |
Content type
Image
Digest
sha256:b5762b3a2…
Size
20.8 MB
Last updated
over 3 years ago
docker pull gprakosa/csv2html:v1.7