From 16c4a504e812f0218ed85ecd3b05efd5f7c57b3a Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:22:56 +0200 Subject: [PATCH] removed centos7 docker build --- Dockerfile.centos7 | 108 --------------------------------------------- tools/make.sh | 2 +- tools/manage.ps1 | 2 +- 3 files changed, 2 insertions(+), 110 deletions(-) delete mode 100644 Dockerfile.centos7 diff --git a/Dockerfile.centos7 b/Dockerfile.centos7 deleted file mode 100644 index 36c46ad8a..000000000 --- a/Dockerfile.centos7 +++ /dev/null @@ -1,108 +0,0 @@ -# Build AYON launcher docker image -FROM centos:7 AS builder -ARG PYTHON_VERSION=3.9.13 - -ARG CUSTOM_QT_BINDING="" -ENV QT_BINDING=$CUSTOM_QT_BINDING - -LABEL description="Docker Image to build and run AYON Launcher under Centos 7" -LABEL org.opencontainers.image.name="ynput/ayon-launcher" -LABEL org.opencontainers.image.title="AYON Launcher Docker Image" -LABEL org.opencontainers.image.url="https://ayon.ynput.io/" -LABEL org.opencontainers.image.source="https://github.com/ynput/ayon-launcher" -LABEL org.opencontainers.image.documentation="https://ayon.ynput.io" -LABEL org.opencontainers.image.created=$BUILD_DATE -LABEL org.opencontainers.image.version=$VERSION - -USER root - -# update base -RUN yum -y install deltarpm \ - && yum -y update \ - && yum clean all - -# add tools we need -RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ - && yum -y install centos-release-scl \ - && yum -y install \ - bash \ - which \ - git \ - make \ - devtoolset-7 \ - cmake \ - curl \ - wget \ - gcc \ - zlib-devel \ - pcre-devel \ - perl-core \ - bzip2 \ - bzip2-devel \ - readline-devel \ - sqlite sqlite-devel \ - openssl-devel \ - openssl-libs \ - openssl11-devel \ - openssl11-libs \ - tk-devel libffi-devel \ - patchelf \ - automake \ - autoconf \ - patch \ - ncurses \ - ncurses-devel \ - qt5-qtbase-devel \ - xcb-util-wm \ - xcb-util-renderutil \ - && yum clean all - -# we need to build our own patchelf -WORKDIR /temp-patchelf -RUN git clone -b 0.17.0 --single-branch https://github.com/NixOS/patchelf.git . \ - && source scl_source enable devtoolset-7 \ - && ./bootstrap.sh \ - && ./configure \ - && make \ - && make install - -RUN mkdir /opt/ayon-launcher - -RUN curl https://pyenv.run | bash -# ENV PYTHON_CONFIGURE_OPTS --enable-shared - -RUN echo 'export PATH="$HOME/.pyenv/bin:$PATH"'>> $HOME/.bashrc \ - && echo 'eval "$(pyenv init -)"' >> $HOME/.bashrc \ - && echo 'eval "$(pyenv virtualenv-init -)"' >> $HOME/.bashrc \ - && echo 'eval "$(pyenv init --path)"' >> $HOME/.bashrc - -RUN source $HOME/.bashrc \ - && export CPPFLAGS="-I/usr/include/openssl11" \ - && export LDFLAGS="-L/usr/lib64/openssl11 -lssl -lcrypto" \ - && export PATH=/usr/local/openssl/bin:$PATH \ - && export LD_LIBRARY_PATH=/usr/local/openssl/lib:$LD_LIBRARY_PATH \ - && pyenv install ${PYTHON_VERSION} - -COPY . /opt/ayon-launcher/ -RUN rm -rf /opt/ayon-launcher/.poetry || echo "No Poetry installed yet." -RUN chmod +x /opt/ayon-launcher/tools/make.sh - -# USER pype - -WORKDIR /opt/ayon-launcher - -RUN source $HOME/.bashrc \ - && pyenv local ${PYTHON_VERSION} - -RUN source $HOME/.bashrc \ - && ./tools/make.sh create-env \ - && ./tools/make.sh install-runtime \ - && ./tools/make.sh build-make-installer - -RUN cp /usr/lib64/libffi* ./build/output/lib \ - && cp /usr/lib64/openssl11/libssl* ./build/output/lib \ - && cp /usr/lib64/openssl11/libcrypto* ./build/output/lib \ - && ln -sr ./build/output/lib/libssl.so ./build/output/lib/libssl.1.1.so \ - && ln -sr ./build/output/lib/libcrypto.so ./build/output/lib/libcrypto.1.1.so \ - && cp /root/.pyenv/versions/${PYTHON_VERSION}/lib/libpython* ./build/output/lib \ - && cp /usr/lib64/libxcb* ./build/output/vendor/python/PySide2/Qt/lib diff --git a/tools/make.sh b/tools/make.sh index 11a8bee53..737683276 100755 --- a/tools/make.sh +++ b/tools/make.sh @@ -403,7 +403,7 @@ default_help() { echo " upload Upload installer to server" echo " create-server-package Create package ready for AYON server" echo " run Run desktop application from code" - echo " docker-build [variant] Build AYON using Docker. Variant can be 'centos7', 'debian', 'rocky8' or 'rocky9'" + echo " docker-build [variant] Build AYON using Docker. Variant can be 'debian', 'rocky8' or 'rocky9'" echo "" } diff --git a/tools/manage.ps1 b/tools/manage.ps1 index b500525ac..f9088c0d1 100755 --- a/tools/manage.ps1 +++ b/tools/manage.ps1 @@ -260,7 +260,7 @@ function Default-Func { Write-Color -text " build-make-installer ", "Build desktop application and make installer" -Color White, Cyan Write-Color -text " upload ", "Upload installer to server" -Color White, Cyan Write-Color -text " run ", "Run desktop application from code" -Color White, Cyan - Write-Color -text " docker-build ","[variant] ", "Build AYON using Docker. Variant can be '", "centos7", "', '", "ubuntu", "', '", "debian", "', '", "rocky8", "' or '", "rocky9", "'" -Color White, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan + Write-Color -text " docker-build ","[variant] ", "Build AYON using Docker. Variant can be '", "ubuntu", "', '", "debian", "', '", "rocky8", "' or '", "rocky9", "'" -Color White, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan, Yellow, Cyan Write-Host "" }