[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47260: Package GNU MediaGoblin as a Guix service
From: |
Ben Sturmfels |
Subject: |
bug#47260: Package GNU MediaGoblin as a Guix service |
Date: |
Tue, 06 Apr 2021 22:01:56 +1000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
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@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
Description: Text Data