Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guerinoni/qt-wasm

Docker image for Qt WebAssembly
https://github.com/guerinoni/qt-wasm

docker docker-image qt qt-wasm qt5 wasm webassembly

Last synced: 23 days ago
JSON representation

Docker image for Qt WebAssembly

Awesome Lists containing this project

README

        

# qt-wasm
![Docker Image CI](https://github.com/guerinoni/qt-wasm/workflows/Docker%20Image%20CI/badge.svg)
![GitHub Container Registry](https://github.com/guerinoni/qt-wasm/workflows/GitHub%20Container%20Registry/badge.svg)

Docker image for Qt WebAssembly

## Build
```
- clone repository
- cd qt-wasm
- docker build -t qtwa .
```

## Create container

Example that create container with name webassembly from image with name qtwa binding port 8080 of the host machine with 30000 of container and bind local folder with home folder of container
```
docker run -it -p 8080:30000 -v :/home --name webassembly qtwa
```

## Usage

Inside docker container
```
cd
mkdir build
cd build
qmake ..
make
emrun --no_browser --port 30000 .html
```
Open your host browser and go to `localhost:8080/.html`.