Docker container update

Need help? Post your questions here.

Docker container update

Unread postby gr8pa2 » 12 Sep 2016, 19:01

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?
gr8pa2
 
Posts: 14
Joined: 14 Jan 2014, 15:00
Has thanked: 0 time
Been thanked: 5 times

Re: Docker container update

Unread postby gr8pa2 » 08 Nov 2016, 14:15

Ok, found the way to update the container without the need to a new dockerfile or a new pull.
gr8pa2
 
Posts: 14
Joined: 14 Jan 2014, 15:00
Has thanked: 0 time
Been thanked: 5 times

Re: Docker container update

Unread postby VikingOy » 15 Nov 2016, 18:16

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? :roll:
VikingOy
 
Posts: 32
Joined: 03 May 2015, 20:26
Has thanked: 3 times
Been thanked: 5 times

Re: Docker container update

Unread postby gr8pa2 » 20 Dec 2016, 15:11

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
gr8pa2
 
Posts: 14
Joined: 14 Jan 2014, 15:00
Has thanked: 0 time
Been thanked: 5 times


Return to Support 6.x

Who is online

Users browsing this forum: Bing [Bot] and 3 guests