GNU bug report logs -
#47260
Package GNU MediaGoblin as a Guix service
Previous Next
Reported by: Ben Sturmfels <ben <at> sturm.com.au>
Date: Fri, 19 Mar 2021 12:21:02 UTC
Severity: normal
Done: jgart <jgart <at> dismail.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Thu, 01 Apr 2021, Ben Sturmfels wrote:
> 5. Get a basic Guix service working, with sqlite3 and without the
> offloaded media transcoding currently using Celery task queue with a
> Redis broker.
Woo! After a lot of trial and error, I finally have a basic MediaGoblin
running entirely under Guix with no virtualenv trickery!
After applying the attached patch to my guix repo, I grab a copy of the
basic config files and enable audio and video:
curl https://git.savannah.gnu.org/cgit/mediagoblin.git/plain/mediagoblin.example.ini > mediagoblin.ini
curl https://git.savannah.gnu.org/cgit/mediagoblin.git/plain/paste.ini > paste.ini
echo "[[mediagoblin.media_types.audio]]" >> mediagoblin.ini
echo "[[mediagoblin.media_types.video]]" >> mediagoblin.ini
Build MediaGoblin, which downloads from our master branch and runs the
full test suite successfully:
~/ws/guix/pre-inst-env guix build mediagoblin
Then install MediaGoblin in a container (not working in a non-container
guix environment or without explicit "python"):
~/ws/guix/pre-inst-env guix environment --container --network --share=$HOME/.bash_history --ad-hoc mediagoblin python
Create an sqlite3 database and add a user:
gmg dbupdate
gmg adduser --username admin --password a --email admin <at> example.com
gmg changepw admin a
Upload an image, audio and video via CLI:
gmg addmedia admin image.jpg
gmg addmedia admin audio.wav
gmg addmedia admin video.mp4
Start the web interface:
CELERY_ALWAYS_EAGER=true paster serve paste.ini
The web interface is working. Looks like we're missing some CSS
(probably due to files not being included in the setuptools package),
but that's a minor issue.
Getting there!
Regards,
Ben
[0001-Add-MediaGoblin-package.patch (text/x-patch, attachment)]
This bug report was last modified 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.