This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1744 from pypeclub/feature/move-to-pyside2
- Loading branch information
Showing
26 changed files
with
475 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ Temporary Items | |
/dist/ | ||
|
||
/vendor/bin/* | ||
/vendor/python/* | ||
/.venv | ||
/venv/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Build Pype docker image | ||
FROM centos:7 AS builder | ||
ARG OPENPYPE_PYTHON_VERSION=3.7.10 | ||
|
||
LABEL org.opencontainers.image.name="pypeclub/openpype" | ||
LABEL org.opencontainers.image.title="OpenPype Docker Image" | ||
LABEL org.opencontainers.image.url="https://openpype.io/" | ||
LABEL org.opencontainers.image.source="https://github.com/pypeclub/pype" | ||
|
||
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 \ | ||
bzip2 \ | ||
bzip2-devel \ | ||
readline-devel \ | ||
sqlite sqlite-devel \ | ||
openssl-devel \ | ||
openssl-libs \ | ||
tk-devel libffi-devel \ | ||
patchelf \ | ||
automake \ | ||
autoconf \ | ||
ncurses \ | ||
ncurses-devel \ | ||
qt5-qtbase-devel \ | ||
&& yum clean all | ||
|
||
# we need to build our own patchelf | ||
WORKDIR /temp-patchelf | ||
RUN git clone https://github.com/NixOS/patchelf.git . \ | ||
&& source scl_source enable devtoolset-7 \ | ||
&& ./bootstrap.sh \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install | ||
|
||
RUN mkdir /opt/openpype | ||
# RUN useradd -m pype | ||
# RUN chown pype /opt/openpype | ||
# USER pype | ||
|
||
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 && pyenv install ${OPENPYPE_PYTHON_VERSION} | ||
|
||
COPY . /opt/openpype/ | ||
RUN rm -rf /openpype/.poetry || echo "No Poetry installed yet." | ||
# USER root | ||
# RUN chown -R pype /opt/openpype | ||
RUN chmod +x /opt/openpype/tools/create_env.sh && chmod +x /opt/openpype/tools/build.sh | ||
|
||
# USER pype | ||
|
||
WORKDIR /opt/openpype | ||
|
||
RUN cd /opt/openpype \ | ||
&& source $HOME/.bashrc \ | ||
&& pyenv local ${OPENPYPE_PYTHON_VERSION} | ||
|
||
RUN source $HOME/.bashrc \ | ||
&& ./tools/create_env.sh | ||
|
||
RUN source $HOME/.bashrc \ | ||
&& ./tools/fetch_thirdparty_libs.sh | ||
|
||
RUN source $HOME/.bashrc \ | ||
&& bash ./tools/build.sh | ||
|
||
RUN cp /usr/lib64/libffi* ./build/exe.linux-x86_64-3.7/lib \ | ||
&& cp /usr/lib64/libssl* ./build/exe.linux-x86_64-3.7/lib \ | ||
&& cp /usr/lib64/libcrypto* ./build/exe.linux-x86_64-3.7/lib \ | ||
&& cp /root/.pyenv/versions/${OPENPYPE_PYTHON_VERSION}/lib/libpython* ./build/exe.linux-x86_64-3.7/lib | ||
|
||
RUN cd /opt/openpype \ | ||
rm -rf ./vendor/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.