From 5fc5a0820d164e3322867f5ce0eb98235edb2054 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Tue, 29 Aug 2023 18:20:11 -0500 Subject: [PATCH 1/8] Update 18.04 and 20.04 to 3.10 --- ubuntu-18.04/Dockerfile | 4 ++-- ubuntu-20.04/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntu-18.04/Dockerfile b/ubuntu-18.04/Dockerfile index f3dcecd..771dbd6 100644 --- a/ubuntu-18.04/Dockerfile +++ b/ubuntu-18.04/Dockerfile @@ -36,8 +36,8 @@ RUN apt-get update && \ zlib1g-dev && \ # Set up pyenv \ git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ - pyenv install 3.8 && \ - pyenv global 3.8 && \ + pyenv install 3.10 && \ + pyenv global 3.10 && \ pip install --upgrade pip && \ pip install --no-cache-dir py3createtorrent && \ rm -rf /var/lib/apt/lists/* diff --git a/ubuntu-20.04/Dockerfile b/ubuntu-20.04/Dockerfile index bc3bce2..5ec05aa 100644 --- a/ubuntu-20.04/Dockerfile +++ b/ubuntu-20.04/Dockerfile @@ -36,8 +36,8 @@ RUN apt-get update && \ zlib1g-dev && \ # Set up pyenv \ git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ - pyenv install 3.9 && \ - pyenv global 3.9 && \ + pyenv install 3.10 && \ + pyenv global 3.10 && \ pip install --upgrade pip && \ pip install --no-cache-dir py3createtorrent && \ rm -rf /var/lib/apt/lists/* From e95e83109165513ff62700c7b161a401317aff46 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Tue, 29 Aug 2023 23:43:42 -0500 Subject: [PATCH 2/8] Swap to pyenv, python 3.10, and match sqlite version to windows runners --- centos7/Dockerfile | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/centos7/Dockerfile b/centos7/Dockerfile index 31966de..692379b 100644 --- a/centos7/Dockerfile +++ b/centos7/Dockerfile @@ -1,16 +1,19 @@ FROM centos:7 +ENV PYENV_ROOT=/root/.pyenv +ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" + # General Deps RUN yum -y groupinstall "Development Tools" && \ yum -y install ca-certificates createrepo dnf epel-release rpm-build squashfs-tools vim wget && \ # relies on epel - yum -y install jq && \ + yum -y install jq - # Compile newer version of sqlite3 \ - cd ~ && \ - wget -q https://www.sqlite.org/2021/sqlite-autoconf-3370000.tar.gz && \ - tar -xzf sqlite-autoconf-3370000.tar.gz && \ - cd sqlite-autoconf-3370000 && \ +# Compile newer version of sqlite3 \ +RUN cd ~ && \ + wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ + tar -xzf sqlite-autoconf-3400100.tar.gz && \ + cd sqlite-autoconf-3400100 && \ ./configure --prefix=/usr && \ make && \ make install && \ @@ -20,24 +23,17 @@ RUN yum -y groupinstall "Development Tools" && \ # Compile newer version of python3 # CVE-2022-0778 fixed in openssl11-1.1.1k-3.el7 https://bugzilla.redhat.com/show_bug.cgi?id=2064913 -RUN yum -y install openssl11 openssl11-devel bzip2-devel libffi-devel zlib-devel && \ - cd ~ && \ - wget -q https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz && \ - tar xvf Python-3.9.9.tgz && \ - cd Python-3.9*/ && \ - # A bit hacky, but gets the proper/newer openssl 1.1.1 version into configure, instead of the default old openssl version \ - # https://stackoverflow.com/questions/69371800/how-to-link-python3-to-use-openssl11-or-latest-version-of-openssl-1-1-1-on-c - sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure && \ - ./configure --enable-optimizations --prefix=/usr --enable-shared --enable-loadable-sqlite-extensions LDFLAGS="-Wl,-rpath /usr/lib" && \ - make install && \ +RUN yum -y install openssl-devel openssl11 openssl11-devel zlib-devel bzip2 bzip2-devel readline-devel tk-devel libffi-devel xz-devel && \ cd ~ && \ - rm -rf ~/Python-3.9* && \ - ln -s /usr/bin/python3 /usr/local/bin/python && \ + # Set up pyenv \ + git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ + CPPFLAGS=$(pkg-config --cflags openssl11) LDFLAGS=$(pkg-config --libs openssl11) pyenv install 3.10 && \ + pyenv global 3.10 && \ + pip install --upgrade pip && \ + pip install --no-cache-dir py3createtorrent awscli && \ yum clean all -RUN pip3 install --upgrade pip && \ - pip3 install awscli - +# Add newer git version RUN yum -y install curl-devel expat-devel gettext-devel perl-CPAN perl-devel zlib-devel && \ cd ~ && \ wget -q https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.34.1.tar.gz && \ @@ -55,8 +51,7 @@ RUN yum -y install curl-devel expat-devel gettext-devel perl-CPAN perl-devel zli SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - && \ yum install -y nodejs && \ - yum clean all && \ - pip3 install --no-cache-dir py3createtorrent + yum clean all # Add FPM RUN gpg2 --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB && \ From 5d2624fd53fc95f8cd6ffd4fd4d3935aff2fb193 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 30 Aug 2023 12:41:40 -0500 Subject: [PATCH 3/8] Make sqlite version consistent. Update to node18 --- ubuntu-22.04/Dockerfile | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/ubuntu-22.04/Dockerfile b/ubuntu-22.04/Dockerfile index 10d1f6b..fdb1cae 100644 --- a/ubuntu-22.04/Dockerfile +++ b/ubuntu-22.04/Dockerfile @@ -2,6 +2,7 @@ FROM ubuntu:22.04 ENV PYENV_ROOT=/root/.pyenv ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" +ENV LD_LIBRARY_PATH="/usr/lib" RUN apt-get update && \ DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ @@ -14,6 +15,7 @@ RUN apt-get update && \ DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ awscli \ build-essential \ + ca-certificates \ curl \ dialog \ fakeroot \ @@ -27,7 +29,6 @@ RUN apt-get update && \ libncursesw5-dev \ libreadline-dev \ libssl-dev \ - libsqlite3-dev \ libxml2-dev \ libxmlsec1-dev \ sudo \ @@ -36,18 +37,34 @@ RUN apt-get update && \ wget \ xz-utils \ zlib1g-dev && \ - # Set up pyenv \ - git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ + rm -rf /var/lib/apt/lists/* + +# Compile newer version of sqlite3 \ +RUN cd ~ && \ + wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ + tar -xzf sqlite-autoconf-3400100.tar.gz && \ + cd sqlite-autoconf-3400100 && \ + ./configure --prefix=/usr && \ + make && \ + make install && \ + cd ~ && \ + rm -rf ~/sqlite-autoconf* + +# Set up pyenv +RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ pyenv install 3.10 && \ pyenv global 3.10 && \ pip install --upgrade pip && \ pip install --no-cache-dir py3createtorrent && \ - rm -rf /var/lib/apt/lists/* + python3 -c 'import sys; import sqlite3; sys.exit(sqlite3.sqlite_version != "3.40.1")' # Add nodejs -SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ - apt-get install -y nodejs +ENV NODE_MAJOR=18 +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && \ + apt-get install -y nodejs && \ + rm -rf /var/lib/apt/lists/* # Newer version of CMAKE RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \ From 5874350eb2f689a5085aad41d43b4c75af96bbfb Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 30 Aug 2023 14:36:00 -0500 Subject: [PATCH 4/8] Fix the sqlite version in python --- centos7/Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/centos7/Dockerfile b/centos7/Dockerfile index 692379b..f0162e3 100644 --- a/centos7/Dockerfile +++ b/centos7/Dockerfile @@ -2,14 +2,17 @@ FROM centos:7 ENV PYENV_ROOT=/root/.pyenv ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" +# Python needs to be able to find the proper sqlite3 install +ENV LD_LIBRARY_PATH="/usr/lib" # General Deps RUN yum -y groupinstall "Development Tools" && \ yum -y install ca-certificates createrepo dnf epel-release rpm-build squashfs-tools vim wget && \ - # relies on epel - yum -y install jq + # jq relies on epel + yum -y install jq && \ + yum clean all -# Compile newer version of sqlite3 \ +# Compile newer version of sqlite3 RUN cd ~ && \ wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tar -xzf sqlite-autoconf-3400100.tar.gz && \ @@ -18,8 +21,7 @@ RUN cd ~ && \ make && \ make install && \ cd ~ && \ - rm -rf ~/sqlite-autoconf* && \ - yum clean all + rm -rf ~/sqlite-autoconf* # Compile newer version of python3 # CVE-2022-0778 fixed in openssl11-1.1.1k-3.el7 https://bugzilla.redhat.com/show_bug.cgi?id=2064913 @@ -31,6 +33,7 @@ RUN yum -y install openssl-devel openssl11 openssl11-devel zlib-devel bzip2 bzip pyenv global 3.10 && \ pip install --upgrade pip && \ pip install --no-cache-dir py3createtorrent awscli && \ + python3 -c 'import sys; import sqlite3; sys.exit(sqlite3.sqlite_version != "3.40.1")' && \ yum clean all # Add newer git version From 3ec42b6f3f7d8be675ab95fbc4432b23597edcbc Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 30 Aug 2023 14:36:31 -0500 Subject: [PATCH 5/8] add rocky8 image + workflow --- .github/workflows/build-rocky8.yml | 30 ++++++++++++++++ rocky8/Dockerfile | 58 ++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 .github/workflows/build-rocky8.yml create mode 100644 rocky8/Dockerfile diff --git a/.github/workflows/build-rocky8.yml b/.github/workflows/build-rocky8.yml new file mode 100644 index 0000000..24bc197 --- /dev/null +++ b/.github/workflows/build-rocky8.yml @@ -0,0 +1,30 @@ +name: Build Rocky 8 Image + +on: + push: + branches: + - main + paths: + - 'rocky8/*' + - '.github/workflows/build-rocky8.yml' + pull_request: + workflow_dispatch: + schedule: + - cron: '30 12 * * 5' + +concurrency: + # SHA is added to the end if on `main` to let all main workflows run + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} + cancel-in-progress: true + +jobs: + build: + uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main + with: + docker-context: "./rocky8" + dockerfile: "./rocky8/Dockerfile" + dockerhub_imagename: "chianetwork/rocky8-builder" + docker-platforms: linux/amd64 + secrets: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_PAT: ${{ secrets.DOCKERHUB_PAT }} diff --git a/rocky8/Dockerfile b/rocky8/Dockerfile new file mode 100644 index 0000000..7f63100 --- /dev/null +++ b/rocky8/Dockerfile @@ -0,0 +1,58 @@ +FROM rockylinux:8 + +ENV PYENV_ROOT=/root/.pyenv +ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" +# Python needs to be able to find the proper sqlite3 install +ENV LD_LIBRARY_PATH="/usr/lib64" +ENV NVM_DIR="/root/.nvm" + +# General Deps +RUN yum -y groupinstall "Development Tools" && \ + yum -y install ca-certificates createrepo dnf epel-release git rpm-build squashfs-tools vim wget && \ + # jq relies on epel + yum -y install jq && \ + yum clean all + +# Compile newer version of sqlite3 +RUN cd ~ && \ + wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ + tar -xzf sqlite-autoconf-3400100.tar.gz && \ + cd sqlite-autoconf-3400100 && \ + ./configure --prefix=/usr && \ + make && \ + make install && \ + cd ~ && \ + rm -rf ~/sqlite-autoconf* + +# Compile newer version of python3 +RUN yum -y install openssl openssl-devel zlib-devel bzip2 bzip2-devel readline-devel tk-devel libffi-devel xz-devel && \ + cd ~ && \ + # Set up pyenv \ + git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ + pyenv install 3.10 && \ + pyenv global 3.10 && \ + pip install --upgrade pip && \ + pip install --no-cache-dir py3createtorrent awscli && \ + python3 -c 'import sys; import sqlite3; sys.exit(sqlite3.sqlite_version != "3.40.1")' && \ + yum clean all + +# Add nodejs +RUN git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR" && \ + cd "$NVM_DIR" && \ + git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` && \ + \. "$NVM_DIR/nvm.sh" && \ + nvm install 18 && \ + nvm alias default 18 && \ + for nodebin in $NVM_DIR/versions/node/$(nvm current)/bin/*; do ln -s "$nodebin" /usr/bin/$(basename $nodebin); done + +# Add FPM +RUN gpg2 --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB && \ + curl -sSL https://get.rvm.io | bash -s stable && \ + /bin/bash -l -c ". /etc/profile.d/rvm.sh && rvm install ruby-3 && gem install fpm" && \ + yum clean all + +# Add GitHub CLI +RUN dnf -y update && \ + dnf -y install 'dnf-command(config-manager)' && \ + dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo && \ + dnf -y install gh From b5a6f957b2c0443eea3626710782516e4d76b3a7 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 30 Aug 2023 14:42:40 -0500 Subject: [PATCH 6/8] Build the rocky image for default of amd64 and arm64 --- .github/workflows/build-rocky8.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-rocky8.yml b/.github/workflows/build-rocky8.yml index 24bc197..4935ea3 100644 --- a/.github/workflows/build-rocky8.yml +++ b/.github/workflows/build-rocky8.yml @@ -24,7 +24,6 @@ jobs: docker-context: "./rocky8" dockerfile: "./rocky8/Dockerfile" dockerhub_imagename: "chianetwork/rocky8-builder" - docker-platforms: linux/amd64 secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_PAT: ${{ secrets.DOCKERHUB_PAT }} From 5d797f696bad7d7a78c5389ff4481480b28932c0 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 30 Aug 2023 15:03:30 -0500 Subject: [PATCH 7/8] Update 20.04 to consistent node/python/sqlite versions --- ubuntu-20.04/Dockerfile | 34 +++++++++++++++++++++++++++------- ubuntu-22.04/Dockerfile | 2 +- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/ubuntu-20.04/Dockerfile b/ubuntu-20.04/Dockerfile index 5ec05aa..e5457ac 100644 --- a/ubuntu-20.04/Dockerfile +++ b/ubuntu-20.04/Dockerfile @@ -2,16 +2,20 @@ FROM ubuntu:20.04 ENV PYENV_ROOT=/root/.pyenv ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" +ENV LD_LIBRARY_PATH="/usr/lib" RUN apt-get update && \ DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ apt-utils \ + gpg \ + gpg-agent \ software-properties-common && \ add-apt-repository ppa:git-core/ppa -y && \ add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ awscli \ build-essential \ + ca-certificates \ curl \ dialog \ fakeroot \ @@ -25,7 +29,6 @@ RUN apt-get update && \ libncursesw5-dev \ libreadline-dev \ libssl-dev \ - libsqlite3-dev \ libxml2-dev \ libxmlsec1-dev \ sudo \ @@ -34,18 +37,35 @@ RUN apt-get update && \ wget \ xz-utils \ zlib1g-dev && \ - # Set up pyenv \ - git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ + rm -rf /var/lib/apt/lists/* + +# Compile newer version of sqlite3 \ +RUN cd ~ && \ + wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ + tar -xzf sqlite-autoconf-3400100.tar.gz && \ + cd sqlite-autoconf-3400100 && \ + ./configure --prefix=/usr && \ + make && \ + make install && \ + cd ~ && \ + rm -rf ~/sqlite-autoconf* + +# Set up pyenv \ +RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ pyenv install 3.10 && \ pyenv global 3.10 && \ pip install --upgrade pip && \ pip install --no-cache-dir py3createtorrent && \ - rm -rf /var/lib/apt/lists/* + python3 -c 'import sys; import sqlite3; sys.exit(sqlite3.sqlite_version != "3.40.1")' # Add nodejs -SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ - apt-get install -y nodejs +ENV NODE_MAJOR=18 +RUN mkdir -p /etc/apt/keyrings/ && \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && \ + apt-get install -y nodejs && \ + rm -rf /var/lib/apt/lists/* # Newer version of CMAKE RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \ diff --git a/ubuntu-22.04/Dockerfile b/ubuntu-22.04/Dockerfile index fdb1cae..aac0625 100644 --- a/ubuntu-22.04/Dockerfile +++ b/ubuntu-22.04/Dockerfile @@ -15,7 +15,7 @@ RUN apt-get update && \ DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ awscli \ build-essential \ - ca-certificates \ + ca-certificates \ curl \ dialog \ fakeroot \ From 76e9d0176c57120553ced0717321a8ce70f1f69c Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 30 Aug 2023 17:07:36 -0500 Subject: [PATCH 8/8] Set DSQLITE_MAX_VARIABLE_NUMBER=500000 --- centos7/Dockerfile | 2 +- rocky8/Dockerfile | 2 +- ubuntu-20.04/Dockerfile | 2 +- ubuntu-22.04/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/centos7/Dockerfile b/centos7/Dockerfile index f0162e3..172726f 100644 --- a/centos7/Dockerfile +++ b/centos7/Dockerfile @@ -17,7 +17,7 @@ RUN cd ~ && \ wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tar -xzf sqlite-autoconf-3400100.tar.gz && \ cd sqlite-autoconf-3400100 && \ - ./configure --prefix=/usr && \ + CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=500000" ./configure --prefix=/usr && \ make && \ make install && \ cd ~ && \ diff --git a/rocky8/Dockerfile b/rocky8/Dockerfile index 7f63100..7fc7771 100644 --- a/rocky8/Dockerfile +++ b/rocky8/Dockerfile @@ -18,7 +18,7 @@ RUN cd ~ && \ wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tar -xzf sqlite-autoconf-3400100.tar.gz && \ cd sqlite-autoconf-3400100 && \ - ./configure --prefix=/usr && \ + CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=500000" ./configure --prefix=/usr && \ make && \ make install && \ cd ~ && \ diff --git a/ubuntu-20.04/Dockerfile b/ubuntu-20.04/Dockerfile index e5457ac..2207a4e 100644 --- a/ubuntu-20.04/Dockerfile +++ b/ubuntu-20.04/Dockerfile @@ -44,7 +44,7 @@ RUN cd ~ && \ wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tar -xzf sqlite-autoconf-3400100.tar.gz && \ cd sqlite-autoconf-3400100 && \ - ./configure --prefix=/usr && \ + CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=500000" ./configure --prefix=/usr && \ make && \ make install && \ cd ~ && \ diff --git a/ubuntu-22.04/Dockerfile b/ubuntu-22.04/Dockerfile index aac0625..a9dee75 100644 --- a/ubuntu-22.04/Dockerfile +++ b/ubuntu-22.04/Dockerfile @@ -44,7 +44,7 @@ RUN cd ~ && \ wget -q https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ tar -xzf sqlite-autoconf-3400100.tar.gz && \ cd sqlite-autoconf-3400100 && \ - ./configure --prefix=/usr && \ + CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=500000" ./configure --prefix=/usr && \ make && \ make install && \ cd ~ && \