From dde89f6c0d1b235b13e402b1ebacd1d891e60e21 Mon Sep 17 00:00:00 2001 From: Charl Smit Date: Thu, 11 Apr 2024 12:12:17 +0200 Subject: [PATCH] Remove docker --- build_exe/linux/Dockerfile-py3-amd64 | 59 ---------------------------- build_exe/linux/entrypoint-linux.sh | 14 ------- 2 files changed, 73 deletions(-) delete mode 100644 build_exe/linux/Dockerfile-py3-amd64 delete mode 100644 build_exe/linux/entrypoint-linux.sh diff --git a/build_exe/linux/Dockerfile-py3-amd64 b/build_exe/linux/Dockerfile-py3-amd64 deleted file mode 100644 index 1c33b42..0000000 --- a/build_exe/linux/Dockerfile-py3-amd64 +++ /dev/null @@ -1,59 +0,0 @@ -FROM ubuntu:20.04 -SHELL ["/bin/bash", "-i", "-c"] - -ARG PYTHON_VERSION=3.9.18 -ARG PYINSTALLER_VERSION=6.4 - -ENV PYPI_URL=https://pypi.python.org/ -ENV PYPI_INDEX_URL=https://pypi.python.org/simple -ENV PYENV_VERSION=${PYTHON_VERSION} - -COPY ./build_exe/linux/entrypoint-linux.sh /entrypoint.sh - -RUN \ - set -x \ - # update system - && apt-get update \ - # install requirements - && apt-get install -y --no-install-recommends \ - build-essential \ - ca-certificates \ - curl \ - wget \ - git \ - libbz2-dev \ - libreadline-dev \ - libsqlite3-dev \ - libssl-dev \ - zlib1g-dev \ - libffi-dev \ - # required because openSSL on Ubuntu 12.04 and 14.04 run out of support versions of OpenSSL - && mkdir openssl \ - && cd openssl \ - # latest version, there won't be anything newer for this - && wget https://www.openssl.org/source/openssl-1.0.2u.tar.gz \ - && tar -xzvf openssl-1.0.2u.tar.gz \ - && cd openssl-1.0.2u \ - && ./config --prefix=$HOME/openssl --openssldir=$HOME/openssl shared zlib \ - && make \ - && make install \ - # install pyenv - && echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc \ - && echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc \ - && source ~/.bashrc \ - && curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \ - && echo 'eval "$(pyenv init -)"' >> ~/.bashrc \ - && source ~/.bashrc \ - # install python - && PATH="$HOME/openssl:$PATH" CPPFLAGS="-O2 -I$HOME/openssl/include" CFLAGS="-I$HOME/openssl/include/" LDFLAGS="-L$HOME/openssl/lib -Wl,-rpath,$HOME/openssl/lib" LD_LIBRARY_PATH=$HOME/openssl/lib:$LD_LIBRARY_PATH LD_RUN_PATH="$HOME/openssl/lib" CONFIGURE_OPTS="--with-openssl=$HOME/openssl" PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_VERSION \ - && pyenv global $PYTHON_VERSION \ - && pip install --upgrade pip \ - # install pyinstaller - && pip install pyinstaller==$PYINSTALLER_VERSION \ - && mkdir /src/ \ - && chmod +x /entrypoint.sh - -VOLUME /src/ -WORKDIR /src/ - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/build_exe/linux/entrypoint-linux.sh b/build_exe/linux/entrypoint-linux.sh deleted file mode 100644 index 5d781fb..0000000 --- a/build_exe/linux/entrypoint-linux.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -i - -# Fail on errors. -set -e - -# Make sure .bashrc is sourced -. /root/.bashrc - -cd /src - -pip install commcare-export -pip install -r build_exe/requirements.txt - -pyinstaller --clean -y --dist ./dist/linux --workpath /tmp *.spec