Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Created August 16, 2016 04:51
Show Gist options
  • Save kazuhisya/12784b0414d66bcfe5a4234978c7f985 to your computer and use it in GitHub Desktop.
Save kazuhisya/12784b0414d66bcfe5a4234978c7f985 to your computer and use it in GitHub Desktop.
sqlite314 csv
FROM centos:7
RUN yum install -y unzip gcc
WORKDIR /sqlite
RUN curl -O https://www.sqlite.org/2016/sqlite-amalgamation-3140100.zip
RUN unzip sqlite-amalgamation-3140100.zip
WORKDIR /sqlite/sqlite-amalgamation-3140100
RUN gcc -o sqlite3 shell.c sqlite3.c -ldl -lpthread
RUN curl -o csv.c https://www.sqlite.org/src/raw/ext/misc/csv.c?name=816a3715356e4210dae2d242057745e937050896
RUN gcc -g -fPIC -shared csv.c -o csv.so -I.
CMD ["/sqlite/sqlite-amalgamation-3140100/sqlite3", "-v"]
@kazuhisya
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment