Created
August 16, 2016 04:51
-
-
Save kazuhisya/12784b0414d66bcfe5a4234978c7f985 to your computer and use it in GitHub Desktop.
sqlite314 csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SeeAlso: SQLiteからCSVファイルにSQLを投げてみた | Developers.IO