From 2bc20c00a2a8b83508934943d96530e120502aec Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Tue, 11 May 2021 10:37:36 +0200 Subject: [PATCH] add fetch dependencies and its cleanup --- .dockerignore | 1 + Dockerfile | 9 +++++++++ tools/create_env.sh | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index c48c47562e..f8cacebbbc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -141,3 +141,4 @@ cython_debug/ vendor/bin docs/ +website/ diff --git a/Dockerfile b/Dockerfile index 92900c67cf..8d69a97b0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,7 +67,16 @@ RUN cd /opt/openpype \ && pyenv local ${OPENPYPE_PYTHON_VERSION} RUN source $HOME/.bashrc \ + cd /opt/openpype \ && ./tools/create_env.sh RUN source $HOME/.bashrc \ + cd /opt/openpype \ + && ./tools/fetch_thirdparty_libs.sh + +RUN source $HOME/.bashrc \ + cd /opt/openpype \ && bash ./tools/build.sh + +RUN cd /opt/openpype \ + rm -rf ./vendor/bin diff --git a/tools/create_env.sh b/tools/create_env.sh index 81f0b3b0b0..b3fbaf42ed 100755 --- a/tools/create_env.sh +++ b/tools/create_env.sh @@ -108,7 +108,7 @@ detect_python () { install_poetry () { echo -e "${BIGreen}>>>${RST} Installing Poetry ..." command -v curl >/dev/null 2>&1 || { echo -e "${BIRed}!!!${RST}${BIYellow} Missing ${RST}${BIBlue}curl${BIYellow} command.${RST}"; return 1; } - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - + curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - export PATH="$PATH:$HOME/.poetry/bin" }