1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00

add visidata

This commit is contained in:
kev 2024-12-03 14:24:20 +08:00
parent 48b0efb9ed
commit e35514dfde
3 changed files with 37 additions and 0 deletions

View File

@ -161,6 +161,7 @@ A collection of delicious docker recipes.
- [x] open-vmdk - [x] open-vmdk
- [x] registry-cli - [x] registry-cli
- [x] tldextract - [x] tldextract
- [x] visidata
## Media ## Media

15
visidata/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
#
# Dockerfile for visidata
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache python3 py3-pip \
&& pip3 config set global.break-system-packages true \
&& pip3 install visidata \
&& visidata --version \
&& vd --version
ENTRYPOINT ["vd"]

21
visidata/README.md Normal file
View File

@ -0,0 +1,21 @@
visidata
========
[VisiData][1] is a terminal interface for exploring and arranging tabular data.
VisiData supports tsv, csv, sqlite, json, xlsx (Excel), hdf5, and many other formats.
## Tutorial
```bash
# Create an alias
$ alias vd='docker run --rm -u $(id -u):$(id -g) -v "$PWD:/data" -w /data vimagick/visidata'
$ alias visidata='docker run --rm -u $(id -u):$(id -g) -v "$PWD:/data" -w /data vimagick/visidata'
# Create a csv file
$ echo -e 'a,b\n1,2\n3,4' > input.csv
# View the csv file
$ vd input.csv
```
[1]: https://github.com/saulpw/visidata