Page 1 of 1
Docker container update
Posted: 12 Sep 2016, 19:01
by gr8pa2
How can we update the alpine-madsonic docker container to the 6.2.8840 version? Can we create a Docker that will download the update when we restart the container?
Re: Docker container update
Posted: 08 Nov 2016, 14:15
by gr8pa2
Ok, found the way to update the container without the need to a new dockerfile or a new pull.
Re: Docker container update
Posted: 15 Nov 2016, 18:16
by VikingOy
gr8pa2 wrote:Ok, found the way to update the container without the need to a new dockerfile or a new pull.
How about sharing it with the rest of us?
Re: Docker container update
Posted: 20 Dec 2016, 15:11
by gr8pa2
Start a shell in your madsonic container:
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
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