Skip to content

Instantly share code, notes, and snippets.

View nicr9's full-sized avatar

Nic Roland nicr9

View GitHub Profile
@nicr9
nicr9 / qtcreator_build.sh
Last active December 6, 2015 13:32
QtCreator build instructions
# Build base image
docker build -t qt:base .
# N.B. This is an important step any time you're running GUIs in containers
xhost local:root
# Run installation wizard, save to new image, delete left over container
docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v /dev/shm:/dev/shm --device /dev/dri --name qt_install --entrypoint /qt-unified-linux-x64-online.run qt:base
docker commit qt_install qt:latest
docker rm qt_install
@nicr9
nicr9 / Dockerfile.qt.base
Last active December 6, 2015 13:20
Base Qt Dockerfile
FROM ubuntu:15.10
MAINTAINER Nic Roland "nicroland9@gmail.com"
# Install lots of packages
RUN apt-get update && apt-get install -y libxcb-keysyms1-dev libxcb-image0-dev \
libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev \
libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev \
libfontconfig1-dev libfreetype6-dev libx11-dev libxext-dev libxfixes-dev \
libxi-dev libxrender-dev libxcb1-dev libx11-xcb-dev libxcb-glx0-dev x11vnc \
xauth build-essential mesa-common-dev libglu1-mesa-dev libxkbcommon-dev \