Project

General

Profile

Docker-Wt-Template Project

Added by Christian Meyer over 4 years ago

Hi!

I was trying to create a template Project to use Docker and got it to work with ubuntu and alpine based images

I just found out later that wt is available as package on alpine ...

Anyway, I thought I share it with you, in case someone struggles or I forget =D

I hope the Documentation and Comments make clear what is happening and why

I think this is a good help to run Projects with different Wt-Versions for testing as well

I hope it helps!

Cheers!

File-Structure in Zip:

>Docker
->Wt
-->alpine_3
---Dockerfile
-->ubuntu_19.04
---Dockerfile
-docker-compose.yml
>Wt
-wt_config.xml // copied from 4.2.0 / set plain ajax ration to .3 as it kicked my ass before with 1
-// Some Boostrap Additions for graphicons and Layout additions I often use
>Wt-Project
-startScript.sh
-Readme.md
-// Sample Hello World Project // Should be dropin replaceable with your own
Readme.md
.dockerignore

Replies (4)

RE: Docker-Wt-Template Project - Added by Roel Standaert over 4 years ago

Good to know that everything's building fine for you on Alpine. We've had someone report before that they experienced problems, but I think that may be because Wt was built without RTTI or exception support or something. I know it's been an Alpine package for a while.

RE: Docker-Wt-Template Project - Added by Christian Meyer over 4 years ago

Ah yes, I knew I forgot something that I wanted to include...

There were deprecation warnings for some things related to Pango in some Wt Files if build on alpine

Can't remember in detail now, but this might give you some trouble in the future...

RE: Docker-Wt-Template Project - Added by Roel Standaert over 4 years ago

Oh, yeah. That has been reported: https://redmine.emweb.be/issues/7196. It's a fairly recent change to Pango that's causing this warning.

RE: Docker-Wt-Template Project - Added by Christian Meyer almost 3 years ago

Hello again =D

I updated the Template and added VSCode Remote Debugging.

In Order to use this Template you need VSCode with extension RemoteContainers, and Docker installed.

Most Prominent Changes to Dockerfile is now focussed on Ubuntu20.04LTS, alpine is not included in this package.

Added option to configure for fcgi support, though I could not yet figure out how to work with it.

Added aditional buildstep to use for debugging.

Sample Project uses PostgreSQL but can be switched to SQLite3 as both backends are defined.
Although this Project is not Production ready as Passwords are displayed in docker-compose file and hardcoded.

Be sure to check out Readme.md for details =D

To try:
Open Folder Wt-Project in vscode
Reopen in container -> All images are build, wt is compiled from git, so can take a while
docker-compose will open Port 8080 for "release container" and 8090 for "debug container"

Good Luck!

Cheers
Christian

    (1-4/4)