{"id":20234146,"url":"https://github.com/arbmind/qtcreator-containers","last_synced_at":"2025-04-10T18:31:48.383Z","repository":{"id":37256273,"uuid":"314238753","full_name":"arBmind/qtcreator-containers","owner":"arBmind","description":"Docker containers with QtCreator - Ready to develop, build and run Qt Gui applications.","archived":false,"fork":false,"pushed_at":"2024-12-22T00:42:14.000Z","size":34,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-24T16:11:08.605Z","etag":null,"topics":["cpp","docker-container","docker-images","qt","qtcreator"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arBmind.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-19T12:17:12.000Z","updated_at":"2025-01-18T15:41:06.000Z","dependencies_parsed_at":"2024-06-15T00:24:36.532Z","dependency_job_id":"a4495181-371a-4600-99de-0c655d742913","html_url":"https://github.com/arBmind/qtcreator-containers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arBmind%2Fqtcreator-containers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arBmind%2Fqtcreator-containers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arBmind%2Fqtcreator-containers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arBmind%2Fqtcreator-containers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arBmind","download_url":"https://codeload.github.com/arBmind/qtcreator-containers/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271781,"owners_count":21075800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","docker-container","docker-images","qt","qtcreator"],"created_at":"2024-11-14T08:08:50.290Z","updated_at":"2025-04-10T18:31:48.361Z","avatar_url":"https://github.com/arBmind.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker images for QtCreator\n\nThis project builds Docker images with QtCreator and various compilers used to build and debug C++ and Gui applications using WSL and Docker.\n\n| Image (latest versions) | Size |\n| -- | -- |\n| [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/arbmind/qtcreator-clang?color=black\u0026label=arbmind%2Fqtcreator-clang\u0026logo=Docker\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-clang) | [![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/arbmind/qtcreator-clang?color=g\u0026logo=Ubuntu\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-clang) |\n| [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/arbmind/qtcreator-clang-libstdcpp?color=black\u0026label=arbmind%2Fqtcreator-clang-libstdcpp\u0026logo=Docker\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-clang-libstdcpp) | [![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/arbmind/qtcreator-clang-libstdcpp?color=green\u0026logo=Ubuntu\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-clang-libstdcpp) |\n| [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/arbmind/qtcreator-clang-libstdcpp-qt?color=black\u0026label=arbmind%2Fqtcreator-clang-libstdcpp-qt\u0026logo=Docker\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-clang-libstdcpp-qt) | [![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/arbmind/qtcreator-clang-libstdcpp-qt?color=yellow\u0026logo=Ubuntu\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-clang-libstdcpp-qt) |\n| [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/arbmind/qtcreator-gcc?color=black\u0026label=arbmind%2Fqtcreator-gcc\u0026logo=Docker\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-gcc) | [![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/arbmind/qtcreator-gcc?color=green\u0026logo=Ubuntu\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-gcc) |\n| [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/arbmind/qtcreator-gcc-qt?color=black\u0026label=arbmind%2Fqtcreator-gcc-qt\u0026logo=Docker\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-gcc-qt) | [![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/arbmind/qtcreator-gcc-qt?color=red\u0026logo=Ubuntu\u0026sort=semver)](https://hub.docker.com/r/arbmind/qtcreator-gcc-qt) |\n\n## Usage\n\nPrerequiste: X server (Linux with X, Win11 or [VcXsrv](https://sourceforge.net/projects/vcxsrv/))\n\nTo run on Windows 11 you need to mount some special directories to enable fast graphics rendering and X11 communications.\n\n```bash\ndocker run -it \\\n    --mount src=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind \\\n    --mount src=/mnt/wslg,target=/mnt/wslg,type=bind \\\n    -e XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir \\\n    --mount src=\"$(pwd)\",target=/build,type=bind \\\n    arbmind/qtcreator-gcc-qt:latest \\\n    qtcreator myproject.qbs\n```\n\nTo use clang instead of gcc use this:\n\n```bash\ndocker run -it \\\n    --mount src=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind \\\n    --mount src=/mnt/wslg,target=/mnt/wslg,type=bind \\\n    -e XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir \\\n    --mount src=\"$(pwd)\",target=/build,type=bind \\\n    arbmind/qtcreator-clang-libstdcpp-qt:latest \\\n    qtcreator myproject.qbs\n```\n\nDescription:\n* define the display variable to use Docker\n* mount the current directory to the `/build` folder\n* use the `qtcreator-clang-qt` image in the latest variant\n* start the qtcreator with `myproject.qbs`\n\nIf you want to do more work on the project, we recommend to use a docker-compose.\n\n```yaml\nversion: \"3.7\"\n\nvolumes:\n  tmp: # cached builds\n\nservices:\n  myproject:\n    image: arbmind/qtcreator-gcc-qt:latest\n    cap_add: [SYS_PTRACE] # needed for lldb debugging\n    security_opt: [seccomp=unconfined] # needed for lldb debugging\n    environment:\n      - XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir\n    command: qtcreator myproject.qbs\n    volumes:\n      - /tmp/.X11-unix:/tmp/.X11-unix\n      - /mnt/wslg:/mnt/wslg\n      - ./repository/:/build\n      - tmp:/tmp\n```\n\n## Details\n\nThe Dockerfile is multi staged and has different targets for all the variants.\nAll targets with underscores are meant to be internally only.\n\nNote: The Clang Qt combination is missing because the Qt Company does not publish binaries built for libc++\n\nQtCreator is preconfigured to run Gui applications properly.\n\nTo support your development the user is non-root.\nYou may still install extra software with sudo if you need.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbmind%2Fqtcreator-containers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farbmind%2Fqtcreator-containers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbmind%2Fqtcreator-containers/lists"}