Docker container update

Need help? Post your questions here.
gr8pa2
Posts: 15
Joined: 14 Jan 2014, 15:00
Has thanked: 0
Been thanked: 5 times

Docker container update

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

Re: Docker container update

Unread post by gr8pa2 »

Ok, found the way to update the container without the need to a new dockerfile or a new pull.
VikingOy
Posts: 41
Joined: 03 May 2015, 20:26
Has thanked: 3 times
Been thanked: 7 times

Re: Docker container update

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

Re: Docker container update

Unread post 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
These users thanked the author gr8pa2 for the post (total 2):
Madsonicmorten
Rating: 15.38%
Post Reply