Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2682 closed task (fixed)

Install pretalx plugins pretalx-public-voting and pretalx-pages

Reported by: robe Owned by: sac@…
Priority: normal Milestone: Sysadmin Contract 2021-II
Component: SysAdmin Keywords:
Cc:

Description

FOSS4G2022 needs pretalx-public-voting. I'm working on building a custom docker image. Testing on the backup of pretalx osgeo3 container I created.

I will push the docker image to docker.osgeo.org once I am done. and also have a repo here - https://git.osgeo.org/gitea/sac/pretalx to keep track of customizations

Change History (8)

comment:1 by robe, 3 years ago

Okay pretalx-public-voting I finally got to install in the docker image. I also installed pluging pretalx-pages which looked useful.

pretalx-venuless I wasn't so lucky - got error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/pretalx/src/pretalx/__main__.py", line 9, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 122, in populate
    app_config.ready()
  File "/src/pretalx-venueless/pretalx_venueless/apps.py", line 19, in ready
    from . import signals  # NOQA
  File "/src/pretalx-venueless/pretalx_venueless/signals.py", line 8, in <module>
    from pretalx.schedule.signals import schedule_release
ImportError: cannot import name 'schedule_release' from 'pretalx.schedule.signals' (/pretalx/src/pretalx/schedule/signals.py)

But anyway guess that might still be in development and not ready for prime time or only works with not yet released pretalx that is supports hooks in schedules.

So the Dockerfile I ended up with is

Docker File contents:

FROM pretalx/standalone:latest
USER root
# Based on instructions from https://github.com/pretalx/pretalx-docker/issues/13
RUN pip3 install -Ue "git+https://github.com/pretalx/pretalx-public-voting.git@master#egg=pretalx-public-voting"
RUN pip3 install -Ue "git+https://github.com/pretalx/pretalx-pages.git@master#egg=pretalx-pages"
#RUN pip3 install -Ue "git+https://github.com/pretalx/pretalx-venueless.git@main#egg=pretalx-venueless"
USER pretalxuser
RUN python3 -m pretalx makemigrations


VOLUME ["/etc/pretalx", "/data"]
EXPOSE 80
ENTRYPOINT ["pretalx"]
CMD ["all"]

I have just in staging to make sure I didn't screw up on anything.

Staging site is - https://talks.staging.osgeo.org/orga/event/foss4g-2022/settings/plugins

comment:2 by robe, 3 years ago

Resolution: fixed
Status: newclosed

I have pushed the docker image to docker.osgeo.org

To pull you can do

docker pull docker.osgeo.org/sac/pretalx-osgeo:latest

as detailed on - https://git.osgeo.org/gitea/sac/pretalx

comment:3 by robe, 3 years ago

Resolution: fixed
Status: closedreopened

Oops haven't installed on production yet. Waiting for some feedback from FOSS4G2022

comment:4 by lucadelu, 3 years ago

I'm not able to enter in https://talks.staging.osgeo.org/orga/event/foss4g-2022/settings/plugins, I have no problem to install it in production since you tested on staging. We would like to start on Monday but we have time to test it and in the worst situation we can postpone few days

Thanks a lot

comment:5 by robe, 3 years ago

Still working out some issues with the plugin before ready for production install.

comment:6 by robe, 3 years ago

Okay worked out the issues with public-voting piece with help from Volker Mische.

I now have it installed in production site - https://talks.osgeo.org

I'm going to shutdown the staging site for now do minimize on confusion.

comment:7 by robe, 3 years ago

Resolution: fixed
Status: reopenedclosed

comment:8 by robe, 3 years ago

Summary: Install pretalx plugins pretalx-public-voting and (possibly pretalx-venueless)Install pretalx plugins pretalx-public-voting and pretalx-pages
Note: See TracTickets for help on using tickets.