Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change configuration on openslides? #60

Open
intense77 opened this issue Feb 23, 2021 · 4 comments
Open

How to change configuration on openslides? #60

intense77 opened this issue Feb 23, 2021 · 4 comments

Comments

@intense77
Copy link

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
Copy link

dafwb commented Jun 1, 2021

Did you solve this issue?

@intense77
Copy link
Author

intense77 commented Jun 1, 2021 via email

@dafwb
Copy link

dafwb commented Jun 19, 2021

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
Copy link
Author

intense77 commented Jun 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants