Cleaned up image, added new version of sqlite

This commit is contained in:
Pedro Pinto committed 2018-12-12 22:11:22 -05:00
1 parent 8ee9692597
commit e3bf6462fd
4 files changed
+1974 -8

No files matched your search

+5 -8
View File
@@ -1,4 +1,4 @@
FROM ubuntu:bionic
FROM ubuntu:bionic
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
autoconf \
@@ -9,7 +9,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
clang \
cmake \
curl \
emacs \
flex \
bison \
autopoint \
@@ -50,13 +49,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
unzip \
uuid-dev \
vim \
sqlite3 \
tcpdump \
valgrind \
tzdata \
npm \
nodejs \
libsqlite3-dev \
rsync \
datamash \
hwloc \
@@ -110,8 +107,8 @@ RUN curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
# build rtags
copy rtags.zip /
run unzip rtags.zip && cd /rtags && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 && make -j$(nproc) install
run rm -rf rtags.zip rtags
copy sqlite-version-3.26.0.zip extension-functions.c build_sqlite.sh /
run ./build_sqlite.sh
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
unzip sqlite-version-3.26.0.zip
cd sqlite-version-3.26.0
git init
git rev-parse --git-dir >/dev/null || exit 1
git log -1 --format=format:%ci%n | sed -e 's/ [-+].*$//;s/ /T/;s/^/D /' > manifest
echo $(git log -1 --format=format:%H) > manifest.uuid
mkdir build
cd build
../configure
make "CFLAGS=-fPIC -DSQLITE_ENABLE_COLUMN_METADATA" -j $(nproc)
gcc -Os -I. -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS4 \
-DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 \
-DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_EXPLAIN_COMMENTS \
-DHAVE_USLEEP -DHAVE_READLINE \
shell.c sqlite3.c -lm -ldl -lreadline -lncurses -o sqlite3
cp sqlite3 /usr/local/bin
mv ../../extension-functions.c .
gcc -fPIC -shared extension-functions.c -o libsqlitefunctions.so -lm
cp libsqlitefunctions.so /usr/local/lib
rm -rf sqlite-version-3.26.0.zip sqlite-version-3.26.0
File diff suppressed because it is too large. Load diff
Binary file not shown.