From c9f8ed42c709a619a485ae3edfdf66d2b8c9db16 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 19 Sep 2024 18:48:29 -0400 Subject: [PATCH] just rust on risc for testing --- ubuntu-22.04-risc/Dockerfile | 80 ++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/ubuntu-22.04-risc/Dockerfile b/ubuntu-22.04-risc/Dockerfile index 2ab3f4d..441465e 100644 --- a/ubuntu-22.04-risc/Dockerfile +++ b/ubuntu-22.04-risc/Dockerfile @@ -15,50 +15,52 @@ RUN curl -L -O https://ftpmirror.gnu.org/gnu/binutils/binutils-2.38.tar.gz && \ tree /opt && \ /opt/ld/bin/ld --version -FROM base as sqlite - -RUN curl -L -O https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ - tar -xvzf sqlite-autoconf-3400100.tar.gz && \ - cd sqlite-autoconf-3400100 && \ - CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=500000" ./configure --prefix=/opt/sqlite3 && \ - make && \ - make install && \ - tree /opt && \ - /opt/sqlite3/bin/sqlite3 -version +#FROM base as sqlite +# +#RUN curl -L -O https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz && \ +# tar -xvzf sqlite-autoconf-3400100.tar.gz && \ +# cd sqlite-autoconf-3400100 && \ +# CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=500000" ./configure --prefix=/opt/sqlite3 && \ +# make && \ +# make install && \ +# tree /opt && \ +# /opt/sqlite3/bin/sqlite3 -version FROM base as final COPY --from=ld /opt/ld /usr -COPY --from=sqlite /opt/sqlite3 /opt/sqlite3 - -RUN tree /opt && \ - ld --version && \ - /opt/sqlite3/bin/sqlite3 -version - -ENV PYENV_ROOT=/root/.pyenv -ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" - -RUN curl https://pyenv.run | bash - -ARG PYTHON_CONFIGURE_OPTS="--enable-shared" -ARG LDFLAGS="-Wl,-rpath,/opt/sqlite3/lib -L/opt/sqlite3/lib -lsqlite3" -ARG CPPFLAGS="-I/opt/sqlite3/include" - -RUN pyenv install 3.8 -RUN pyenv install 3.9 -RUN pyenv install 3.10 -RUN pyenv install 3.11 -RUN pyenv install 3.12 - -RUN pyenv global 3.12 3.11 3.10 3.9 3.8 - -# make sure sqlite is loaded from the expected path -RUN ldd $(python3.8 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ -RUN ldd $(python3.9 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ -RUN ldd $(python3.10 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ -RUN ldd $(python3.11 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ -RUN ldd $(python3.12 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ +#COPY --from=sqlite /opt/sqlite3 /opt/sqlite3 + +RUN ld --version + +#RUN tree /opt && \ +# ld --version && \ +# /opt/sqlite3/bin/sqlite3 -version + +#ENV PYENV_ROOT=/root/.pyenv +#ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" +# +#RUN curl https://pyenv.run | bash +# +#ARG PYTHON_CONFIGURE_OPTS="--enable-shared" +#ARG LDFLAGS="-Wl,-rpath,/opt/sqlite3/lib -L/opt/sqlite3/lib -lsqlite3" +#ARG CPPFLAGS="-I/opt/sqlite3/include" +# +#RUN pyenv install 3.8 +#RUN pyenv install 3.9 +#RUN pyenv install 3.10 +#RUN pyenv install 3.11 +#RUN pyenv install 3.12 +# +#RUN pyenv global 3.12 3.11 3.10 3.9 3.8 +# +## make sure sqlite is loaded from the expected path +#RUN ldd $(python3.8 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ +#RUN ldd $(python3.9 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ +#RUN ldd $(python3.10 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ +#RUN ldd $(python3.11 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ +#RUN ldd $(python3.12 -c 'import _sqlite3; print(_sqlite3.__file__)') | grep /opt/sqlite3/lib/ ENV PATH="/root/.cargo/bin:${PATH}" ENV RUST_BACKTRACE=1