Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delameter/docker-pyqt5
Dockerfile for Python 3 + PyQt5 applications with X11 support
https://github.com/delameter/docker-pyqt5
docker pyqt pyqt5 python python3 qt5
Last synced: about 1 month ago
JSON representation
Dockerfile for Python 3 + PyQt5 applications with X11 support
- Host: GitHub
- URL: https://github.com/delameter/docker-pyqt5
- Owner: delameter
- Created: 2021-11-04T09:07:17.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-21T22:22:07.000Z (about 1 year ago)
- Last Synced: 2023-11-22T22:35:26.275Z (about 1 year ago)
- Topics: docker, pyqt, pyqt5, python, python3, qt5
- Language: Makefile
- Homepage: https://hub.docker.com/r/delameter/pyqt5
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.rst
Awesome Lists containing this project
README
# docker-pyqt5
## Dockerfile for Python 3 + PyQt5 apps with X11 support
[DockerHub](https://hub.docker.com/repository/docker/delameter/pyqt5) | [GitHub](https://github.com/delameter/docker-pyqt5) | [Changelog](https://github.com/delameter/docker-pyqt5/blob/master/CHANGES.rst)
Based on [jozo/pyqt5:1.0](https://hub.docker.com/r/jozo/pyqt5). Includes:
- pip
- pyqt5
- pyqt5.qtmultimedia
- pyqt5.qtx11extras
- [dumb-init](https://github.com/Yelp/dumb-init)Run this command from the sources directory to make sure everything works as supposed to:
```shell
docker run --rm \
-e DISPLAY=$DISPLAY \
-u $(id -u):$(id -g) \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ./test.py:/tmp/test.py \
delameter/pyqt5:latest \
python3 /tmp/test.py
```Or just execute `test.sh`, which contains the very same command.
The result should look like on a screenshot to the right.### Development
Clone the repository, create the configuration file:
```shell
git clone [email protected]:delameter/docker-pyqt5.git
cd docker-pyqt5
make prepare
```This will create local configuration file `.env`, which determines target docker repository, image name and version. Build the image:
```shell
make build
```Push the image to the registry:
```shell
make publish
```