Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 04 16:55
    blaisep commented #234
  • Sep 04 16:49
    blaisep commented #234
  • Aug 27 17:27
    ooduor opened #235
  • Aug 27 17:26

    ooduor on ooduor-with-meta-description

    Add Missing site_description to… (compare)

  • Aug 26 18:22
    clickio opened #234
  • Aug 02 14:10
    VirtUalProtoss opened #233
  • Jul 02 22:45
    slav0nic commented #210
  • Jul 02 09:34
    slav0nic commented #232
  • Jul 01 11:16
    slav0nic opened #232
  • Jun 30 11:52
    slav0nic commented on fe24a9d
  • Jun 27 11:22
    codecov-io commented #231
  • Jun 27 11:19
    codecov-io commented #231
  • Jun 27 11:13
    codecov-io commented #231
  • Jun 27 11:13
    slav0nic synchronize #231
  • Jun 26 19:21
    codecov-io commented #231
  • Jun 26 19:21
    codecov-io commented #231
  • Jun 26 19:19
    codecov-io commented #231
  • Jun 26 19:11
    slav0nic opened #231
  • Jun 26 18:33
    codecov-io commented #230
  • Jun 26 18:30
    codecov-io commented #230
Mikko Ohtamaa
@miohtama
Must be Jim Fulton's doings!
Maksym Shalenyi
@enkidulan
Websauna has been mentioned in this week "The PyCoder’s Weekly" newsletter :)
clickio
@clickio
does anybody have a docker image for this? i get stuck at install
Mikko Ohtamaa
@miohtama
@clickio Also not sure if @ericof created an official Docker image in some point
Érico Andrei
@ericof
No official image (yet)
Steve Piercy
@stevepiercy

WebSauna is featured in the Jul 8, 2019, PythonBytes podcast.

https://pythonbytes.fm/episodes/show/138/will-pyoxidizer-weld-shut-one-of-python-s-major-gaps

clickio
@clickio
ok, can anyone please create an official working docker image for websauna? i promise to post about it everywhere
@all
Blaise Pabon
@blaisep
@stevepiercy I came her because of the PythonBytes podcast. What a cool framework!!
@clickio I'm new to this community, but I'm comfortable with Docker.
@clickio That Docker project is... well, I think I can do better.
Mikko Ohtamaa
@miohtama
Hey @blaisep - welcome!
@clickio @blaisep Can you post me examples of good Python web server docker images you like?
Blaise Pabon
@blaisep

Hi @miohtama , I contacted @clickio with a similar question and I made this observation(s)

The benefit of Docker is a "disposable" development environment; where disposable means that you can quickly (re)start from known working state?

Then, reflecting on my own, very preliminary, experience setting up web sauna:

I think the challenge is that web sauna incorporates multiple components, depending on what you want to do with it (hence the use of cookie cutter in the getting started which is unusual.

Uncommon, but not necessarily a problem.
I wonder if the solution might be to embellish the ansible repo with some plays for getting started and maybe some plays for building images. The advantage of ansible is that you can concatenate many steps or recompose them into a different combinations
I would defer to the wisdom of the group on this.

Blaise Pabon
@blaisep
@miohtama , ansible-bender builds images from ansible plays: https://blog.tomecek.net/post/building-containers-with-buildah-and-ansible/
The result could be to have a number of images with permutations of features, created automagically as part of the release process.
Blaise Pabon
@blaisep
I use pycharm pro and they have a new feature which could serve as an inspiration: https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html
the dockerized code is: https://github.com/ErnstHaagsman/djangodocker/tree/dockerized
Mikko Ohtamaa
@miohtama
@blaisep very goo dinput, thank you
@blaisep I am a heavy user of Ansible mysef
though it is an extra complexity for new developers - we probably need different Docker image for production and for development
Blaise Pabon
@blaisep

OK, I can tell that I reallly want to use web sauna for my current two projects... Doing a multi-stage Dockerfile will reduce the size of the final image. I don't yet know enough to suggest the structure of the Docker image(s). However, it does seem like we would want three distinct use cases, and I'll use pseudo-code for convenience:

make demo to produce a default cookiecutter project and running dev server so that a user can access a working project without making any decisions.
make dev to produce a installed project with optional modules and a data volume to overlay the source directory.

make stage to produce a production-ready project, importing secrets and user accounts during the intermediate build stages.

.... does anyone in this group run Websauna on k8s or perhaps OpenShift?

clickio
@clickio
I will tru pinging all 71 members as I think this docker image will be an important step in the popularity of websauna: so, @/all please help us make an official docker image for websauna
and i hope no one will bothered/upset by that
Kevin Horn
@khorn
Ahoy! How can I get a hold of the json renderer to add adapters to serialize e.g. datetimes, etc.? I know how to do this in Pyramid, but in WebSauna it seems to be hidden someplace...
Kevin Horn
@khorn
Aha! Found it. Initializer.config is a Configurator. Nevermind!
Mikko Ohtamaa
@miohtama
@khorn ah
clickio
@clickio
hello, any news on the docker file? @blaisep
@all please help us make an official docker image for websauna
@/all please help us make an official docker image for websauna
clickio
@clickio
hello guys
any updates on that docker image?
@/all please help us make an official docker image for websauna
Steve Piercy
@stevepiercy
@clickio is there an issue for it in the issue tracker? if so, is it assigned to anyone? obviously it gets done at the speed of open source volunteers, if at all
clickio
@clickio
oh, ok, i'll try adding it to the issue tracker. thanks!
Érico Andrei
@ericof
@clickio Post the link to the issue here and I will take a look ;-)
clickio
@clickio
Érico Andrei
@ericof
Thanks
Blaise Pabon
@blaisep
@clickio , I'm sorry I have been away. I may have some more time now because web sauna is becoming a higher priority. I opened websauna/websauna.ansible#17 to consider if an update Ansible role might be a more useful approach.
Érico Andrei
@ericof
Thanks @blaisep !
clickio
@clickio
yeah @ericof and @blaisep and @miohtama please decide on this, Ansible is not my cup of tea.... YET:)
Érico Andrei
@ericof
Yet :-)
Blaise Pabon
@blaisep

Honestly, I have a love/hate relationship with Ansible... it's like vim in the sense that it is idiosyncratic, unintuitive and inconsistent.... until you try the alternatives.... So, I am trying to promote good devops practices at work these days and have some to the conclusion that:

For automating processes on the local machine: Makefile.... For automating processes on remote machines: Ansible

Blaise Pabon
@blaisep
Also, in keeping with websauna security orientation, I would recommend using podman instead of Docker because it does not require any root privilege. Again, for the purpose described by @clickio , I think is best to have a very opinionated "hello-world" default (maybe a swagger pet-shop app) make demo and then one file to place any custom vars and then make dev (where the Makefile triggers the ansible playbook). I am just a visitor here so please let me know what is most feasible in this community.
clickio
@clickio
hi guys, any progress?
@blaisep ?
Érico Andrei
@ericof
@clickio I have a question for you. Do you want a base image with websauna (one that you could extend adding your own application) and/or a image with a demo of websauna?
clickio
@clickio
both if possible, but if not, any of them
clickio
@clickio
anything that can help a noob pythonista like me get started with websauna
Marwan Rabbâa
@waghanza
Hi,
We want to add websauna in our benchmarking project => the-benchmarker/web-frameworks#1904
@clickio @ericof do you consent on such a thing ?
clickio
@clickio
@waghanza i am not a websauna contributor yet, I just entered this channel with a specific purpose in mind: to have a docker image of websauna I can play with, since my manual install didn't work ;)