Freetz @ docker


as you may already notice I nowadays used to play with docker. Therefore I just tried to dockerize Freetz.


FROM ubuntu:vivid
#FROM ubuntu:trusty
RUN mkdir -p /opt /opt/home /opt/bin
RUN adduser --disabled-password --home /opt/home/freetz freetz
RUN apt-get install -y subversion build-essential  gcc g++ binutils autoconf automake automake1.9 libtool make bzip2 libncurses5-dev libreadline-dev zlib1g-dev flex bison patch texinfo tofrodos gettext pkg-config ecj fastjar realpath perl  ruby ruby1.8 gawk python libusb-dev unzip intltool libacl1-dev libcap-dev libc6-dev-i386 lib32ncurses5-dev gcc-multilib libc6-dev-i386 lib32ncurses5-dev gcc-multilib libtool git libtool-bin wget 
USER freetz
WORKDIR /opt/home/freetz  
RUN svn checkout

Container build-command:


BASE="`dirname "$0"`"
[ "$BASE" = "." ] && BASE=`pwd`

cd ${BASE}/freetz

docker build -t freetz_org:2.0 --no-cache=false .

Container run-command:


mkdir -p ~/freetz-stable-2.0/dl
mkdir -p ~/freetz-stable-2.0/images

docker run -t -i --rm=false -u freetz \
-v ~/freetz-stable-2.0/dl:/opt/home/freetz/freetz-stable-2.0/dl \
-v ~/freetz-stable-2.0/images:/opt/home/freetz/freetz-stable-2.0/images \

So you end up with a docker container for freetz builds and a


With all the downloaded and image stuff. (e.g.)


So enjoy.



This entry was posted in build-script, container-launcher, Docker, Dockerfile, freetz, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s