Skip to content

erstrom/docker-qt

Repository files navigation

QT docker development environment

Overview

This docker image is intended to provide a development environment for Qt. It containsqtcreatoras well as the Qt libraries and tools (such as qmake etc.)

The Qt libraries andqtcreatorare built from source with the script build_qt.sh.The source is obtained from the official Qt git repositories.

Installation

See the official docker documentation for a general overview of docker and how to install:

https://docs.docker /engine/installation/linux/

Build and launch docker image

Build the docker image

git clone https://github /erstrom/docker-qt.git
cddocker-qt
./docker-build.sh

During the build process,build_qt.shwill clone the Qt git repos and build the versions specified byQT_VERSIONandQT_CREATOR_VERSION. If you want other versions than the default, just updateDockerfilewith the desired versions (must be valid git tags in the repo's).

Create a container

Usedocker runto create a container. Two wrapper scripts are included that can be used to ease the creation of containers:

  • docker_run_shell.sh
  • docker_run_qtcreator.sh

docker_run_shell.shcreates a container and sets dockerCOMMANDto the default bash shell. This is useful if the container is going to be customized.

docker_run_qtcreator.shsets dockerCOMMANDtoqtcreator.This will launchqtcreatoras soon as the container is started.

The wrapper scripts invokesdocker runwith a few options that makes it possible for GUI applications inside the container (likeqtcreator) to connect to the xorg server on the host.

Start an existing container

docker runshould only be run once, so if you want to restart an already created container you should usedocker start.

The below two wrapper scripts exist fordocker start:

  • docker_start_shell.sh
  • docker_start_qtcreator.sh

The scripts will (re)start the containers created by thedocker_run_...scripts, i.e.,docker_start_qtcreator.shwill start the container created by docker_run_qtcreator.sh.

About

Docker development environment for Qt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages