Last active
September 17, 2017 07:29
-
-
Save davidlatwe/9998dee5eba05f6dca9db57717273497 to your computer and use it in GitHub Desktop.
avalon docker
This file contains hidden or 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
FROM ubuntu:16.04 | |
# install python3.6 and pip | |
RUN apt-get update \ | |
&& apt-get install -y software-properties-common curl \ | |
&& add-apt-repository ppa:jonathonf/python-3.6 \ | |
&& apt-get remove -y software-properties-common \ | |
&& apt autoremove -y \ | |
&& apt-get update \ | |
&& apt-get install -y python3.6 \ | |
&& curl -o /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" \ | |
&& python3.6 /tmp/get-pip.py \ | |
&& apt-get remove -y curl \ | |
&& apt autoremove -y \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& ln -s /usr/bin/python3.6 /usr/local/bin/python | |
# install git & qt5 | |
RUN apt-get update -y && \ | |
apt-get install -y git \ | |
build-essential \ | |
qt5-default \ | |
qt5-qmake \ | |
libqt5webkit5-dev | |
# install pyqt5 | |
RUN pip install PyQt5 | |
# git clone avalon | |
RUN mkdir -p /avalon && \ | |
git clone https://github.com/davidpower/setup /avalon --recursive | |
# set env vars | |
ENV PATH=/avalon:/avalon/bin:/avalon/bin/windows:/avalon/bin/linux:$PATH\ | |
PYTHONPATH=/avalon/bin/pythonpath:/avalon/git/mindbender-config:/avalon/git/avalon-launcher:/avalon/git/avalon-core:$PYTHONPATH \ | |
PYBLISH_BASE=/avalon/git/pyblish-base \ | |
PYBLISH_QML=/avalon/git/pyblish-qml \ | |
AVALON_CORE=/avalon/git/avalon-core \ | |
AVALON_LAUNCHER=/avalon/git/avalon-launcher \ | |
AVALON_EXAMPLES=/avalon/git/avalon-examples \ | |
AVALON_DEBUG=1 \ | |
AVALON_MONGO=mongodb://avalon-mongo:27017/avalon \ | |
AVALON_DB=avalon \ | |
AVALON_CONFIG=polly \ | |
AVALON_PROJECTS=/data/examples/projects \ | |
AVALON_EXAMPLES=/data/examples |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment