jdkelley/csvkit

By jdkelley

Updated over 5 years ago

Image
0

498

csvkit

csvkit in a container. This is useful if you do not want to depend on having installed dependencies to your CI node or if you are unable to install dependencies.

For full usage visit the source code and the latest release documentation.

Usage | Pipes
curl -L -s https://raw.githubusercontent.com/wireservice/csvkit/master/examples/realdata/acs2012_5yr_population.csv | \
    docker run --rm \
    -i \
    jdkelley/csvkit \
    csvlook

To use this instead of the local version of csvkit, create an alias:

alias csvkit="docker run --rm -i jdkelley/csvkit"
Usage | Local Files

There may be times when you want to use a directory of files inside your csvkit container. Map in the directory as a volume:

docker run --rm \
    -v <scripts-directory>:/scripts \
    -it \
    jdkelley/csvkit

To map your current directory, use:

docker run --rm \
    -v ${PWD}:/scripts \
    -it \
    jdkelley/csvkit
Deployed

This is deployed on Docker Hub and GitHub Package Registry.

Docker Pull Command

docker pull jdkelley/csvkit