Skip to content
Snippets Groups Projects
Commit d264e1ec authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Initial commit

parent d9ea9695
No related branches found
No related tags found
No related merge requests found
api
front
music/files
#Funkwhale demo
You simply need to download demo tracks (courtesy of Jamendo):
./download-tracks.sh
Then set up everything:
./setup-demo.sh
This will take care of pulling git repositories, spin up docker containers, etc.
`./setup-demo` may be called multiple times if you want to update the demo to newer versions.
API_AUTHENTICATION_REQUIRED=false
#! /bin/bash
echo "This will download tracks from zip archives listed under music/list"
mkdir -p music/files
cd music/files
echo "Downloading files..."
cat ../list | grep "^[^#;]" | xargs -n 1 curl -LO
echo "Unzipping archives..."
find . -name "*.zip" | while read filename; do
dirname="${filename%.*}"
mkdir $dirname
unzip -o -d "$dirname" "$filename";
done;
echo "Done!"
BACKEND_URL=https://demo.funkwhale.io
# You can get a pretty list of open music here: https://archive.org/details/jamendo-albums
https://archive.org/compress/jamendo-069098/formats=OGG%20VORBIS&file=/jamendo-069098.zip
https://archive.org/compress/jamendo-001144/formats=OGG%20VORBIS&file=/jamendo-001144.zip
https://archive.org/compress/jamendo-027690/formats=OGG%20VORBIS&file=/jamendo-027690.zip
https://archive.org/compress/jamendo-001469/formats=OGG%20VORBIS&file=/jamendo-001469.zip
https://archive.org/compress/jamendo-106323/formats=OGG%20VORBIS&file=/jamendo-106323.zip
https://archive.org/compress/jamendo-071149/formats=OGG%20VORBIS&file=/jamendo-071149.zip
https://archive.org/compress/jamendo-085030/formats=OGG%20VORBIS&file=/jamendo-085030.zip
#! /bin/bash
API_BRANCH="develop"
FRONT_BRANCH="master"
echo "Initializing repositories..."
git clone ssh://git@code.eliotberriot.com:2222/funkwhale/api.git api
git clone ssh://git@code.eliotberriot.com:2222/funkwhale/front.git front
echo "Updating repositories..."
git -C api checkout $API_BRANCH
git -C api pull
git -C front checkout $FRONT_BRANCH
git -C front pull
echo "Copying music directory..."
cp -r music api/
echo "Setting up api .env file..."
cp ./api-env api/.env
echo "Setting up front .env file..."
cp ./front-env front/.env
echo "Stopping previous demo..."
docker-compose -p funkwhale_demo_api -f api/dev.yml down -v
docker-compose -p funkwhale_demo_front -f front/dev.yml down -v
rm -rf api/funkwhale_api/media
echo "Compiling front-end files..."
docker-compose -p funkwhale_demo_front -f front/dev.yml run app npm run build
echo "Configuring api..."
docker-compose -p funkwhale_demo_api -f api/dev.yml up -d postgres
sleep 5
docker-compose -p funkwhale_demo_api -f api/dev.yml run django ./demo/load-demo-data.sh
docker-compose -p funkwhale_demo_api -f api/dev.yml up -d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment