mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
add visidata
This commit is contained in:
parent
48b0efb9ed
commit
e35514dfde
@ -161,6 +161,7 @@ A collection of delicious docker recipes.
|
||||
- [x] open-vmdk
|
||||
- [x] registry-cli
|
||||
- [x] tldextract
|
||||
- [x] visidata
|
||||
|
||||
## Media
|
||||
|
||||
|
15
visidata/Dockerfile
Normal file
15
visidata/Dockerfile
Normal 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
21
visidata/README.md
Normal 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
|
Loading…
Reference in New Issue
Block a user