Dockerfile to build Apache Arrow
Build on top of Debian Linux
rvernica/apache-arrow Docker image builds:
arrowparquet-cpppyarrow with feather, parquet and jemallocrvernica/apache-arrow:pyarrow Docker image builds:
arrowpyarrow with feather and jemallocThe image comes with an example to verify that pyarrow and pyarrow.feather are working, see example.py:
>>> import pyarrow
>>> import pyarrow.feather
>>> import pandas
>>> import numpy
>>> pyarrow.from_pylist([1,2,3]) # doctest: +ELLIPSIS
<pyarrow.array.Int64Array object at 0x...>
[
1,
2,
3
]
>>> fn = 'example.feather'
>>> df = pandas.DataFrame({'ints': numpy.random.randint(0, 10, 5)})
>>> pyarrow.feather.write_feather(df, fn)
>>> pyarrow.feather.read_feather(fn) == df
ints
0 True
1 True
2 True
3 True
4 True
To test the example do:
> docker run --tty --interactive rvernica/apache-arrow python example.py -v
...
9 passed and 0 failed.
Test passed.
Content type
Image
Digest
Size
440.3 MB
Last updated
over 9 years ago
docker pull rvernica/apache-arrow