Docker container update
Re: Docker container update
Start a shell in your madsonic container:
docker exec -ti madsonic sh
Create MadsonicUpgrade.sh that you will save in your /config:
save the file and chmod a+x the file.
execute the script, when prompt, enter the name of the file to download like this: 20161208_madsonic-6.2.9040-standalone.tar.gz, the script will download it, extract and delete the tar.gz.
exit the container shell
commit the changes on the container and restart the container
docker commit madsonic
docker restart madsonic
docker logs -f madsonic
you should now have the latest version running
docker exec -ti madsonic sh
Create MadsonicUpgrade.sh that you will save in your /config:
Code: Select all
#!/bin/bash
echo "Type the name of the Madsonic 6.2 standalone file to download and install, followed by [ENTER]:"
read MadsonicUpdate
wget http://madsonic.org/download/6.2/$MadsonicUpdate
tar xzvf $MadsonicUpdate
rm *standalone.tar.gz
ls -talr
exit
execute the script, when prompt, enter the name of the file to download like this: 20161208_madsonic-6.2.9040-standalone.tar.gz, the script will download it, extract and delete the tar.gz.
exit the container shell
commit the changes on the container and restart the container
docker commit madsonic
docker restart madsonic
docker logs -f madsonic
you should now have the latest version running