Public Repository

Last pushed: 2 years ago
Short Description
ubuntu:12.04 with PyQt5 (with webkit support)
Full Description

```
This image is based on the instructions:
https://github.com/pyqt/python-qt5/wiki/Compiling-PyQt5-on-Ubuntu-12.04
Notes:

  • In addition it has Webkit support.
  • This image is prepared by using a graphical installer. (That is why a Dockerfile is not provided).
  • If you want to use the QT functionality, you probably need the QT_GRAPHICSSYSTEM=native env to prevent gray output screens.
  • To check if QT is working right, run:
    QTGRAPHICSSYSTEM=native python -c 'import sys; from PyQt5 import QtWidgets; app = QtWidgets.QApplication(sys.argv); b = QtWidgets.QPushButton("Hello!"); b.setFixedSize(100, 50); b.show(); app.exec()'

The Ubuntu image is started with X support (you may need to run 'xhost +' on the host):

docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix/:ro ubuntu:12.04 bash

The following commands are run:

mkdir install && cd install
apt-get update
apt-get install -y build-essential \
python-dev \
apt-utils \
python-software-properties \
wget sudo xterm
apt-add-repository ppa:ubuntu-sdk-team/ppa -y
apt-get update && apt-get install -y qtdeclarative5-dev libwebkit-dev

wget http://download.qt.io/archive/qt/5.3/5.3.1/qt-opensource-linux-x64-5.3.1.run
chmod a+x qt-opensource-linux-x64-5.3.1.run
QT_GRAPHICSSYSTEM=native ./qt-opensource-linux-x64-5.3.1.run

Proceed by manually clicking buttons. (Qt5: go make a headless installer). Then run:

wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz
tar xf sip-4.16.5.tar.gz
cd sip-4.16.5
python configure.py
make
make install
cd ..

wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.3.2/PyQt-gpl-5.3.2.tar.gz/download
tar xf download
cd PyQt-gpl-5.3.2
python configure.py --qmake /opt/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib --confirm-license
ln -s /usr/include/python2.7 /usr/local/include/python2.7
make
make install
cd ..

cd ..
rm -rf install

Docker Pull Command
Owner
voipgrid

Comments (0)