ct-Open-Source / team-container

A collection of containers to prepare a server for collaboration.
117 stars 40 forks source link

How to change configuration on openslides? #60

Open intense77 opened 3 years ago

intense77 commented 3 years ago

Great project so far - thanks! I need to change some configs on openslides - but where? It would be nice beeing able to activte secret polls and mails.

dafwb commented 3 years ago

Did you solve this issue?

intense77 commented 3 years ago

Sadly not

dafwb @.***> schrieb am Di., 1. Juni 2021, 17:03:

Did you solve this issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ct-Open-Source/team-container/issues/60#issuecomment-852199086, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7F2EMUG5F5WF7DQRK6S3LTQTZDJANCNFSM4YCRVLEQ .

dafwb commented 3 years ago

I found the following solution to enable electronic voting:

In the file team-openslides/templates/deploy_openslides.yaml is the image defined, that is used to execute openslides. That can be changed to a different image. In my case I created a Docker-Repo and build an Docker-Image based on the Dockerfile end of this text with docker build -t dafwb/openslides . Than I changed in the file mentioned in the beginning the line starting with image to dafwb/openslides. So far I did not try to also start the mailserver, but in theory same technique could be used or as an alternative you may just copy a settings.py from your computer that builds the docker-image to the docker-image. I will keep you postet, if I am able to also start the mailserver. If you just need eletronic voting you can also use my image.

FROM python:3
RUN mkdir /openslides
WORKDIR /openslides
RUN pip3 install openslides
RUN openslides --version
RUN openslides createsettings
RUN sed -e "s/ENABLE_ELECTRONIC_VOTING = False/ENABLE_ELECTRONIC_VOTING = True/g" -i /root/.config/openslides/settings.py

EXPOSE 8000
CMD openslides
intense77 commented 3 years ago

Thanks so far, i will try your image!

dafwb @.***> schrieb am Sa., 19. Juni 2021, 16:19:

I found the following solution to enable electronic voting:

In the file team-openslides/templates/deploy_openslides.yaml is the image defined, that is used to execute openslides. That can be changed to a different image. In my case I created a Docker-Repo and build an Docker-Image based on the Dockerfile end of this text with docker build -t dafwb/openslides . Than I changed in the file mentioned in the beginning the line starting with image to dafwb/openslides. So far I did not try to also start the mailserver, but in theory same technique could be used or as an alternative you may just copy a settings.py from your computer that builds the docker-image to the docker-image. I will keep you postet, if I am able to also start the mailserver. If you just need eletronic voting you can also use my image.

`FROM python:3 RUN mkdir /openslides WORKDIR /openslides RUN pip3 install openslides RUN openslides --version RUN openslides createsettings RUN sed -e "s/ENABLE_ELECTRONIC_VOTING = False/ENABLE_ELECTRONIC_VOTING = True/g" -i /root/.config/openslides/settings.py

EXPOSE 8000 CMD openslides`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ct-Open-Source/team-container/issues/60#issuecomment-864412428, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7F2EKR6GHMRVC3XCBCZI3TTSROHANCNFSM4YCRVLEQ .