Freetz @ docker

Hi,

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

Dockerfile:

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 http://svn.freetz.org/branches/freetz-stable-2.0

Container build-command:

#!/bin/bash

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

cd ${BASE}/freetz

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

Container run-command:

#!/bin/bash

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 \
freetz_org:2.0

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

~/freetz-stable-2.0/

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

./dl
./dl/mipsel_gcc-4.6.4_uClibc-0.9.28-freetz-r10381-shared-glibc.tar.lzma
./dl/squashfs3.4.tar.gz
./dl/mips_gcc-4.6.4-freetz-r10381-shared-glibc.tar.lzma
./dl/haserl-0.9.29.tar.gz
./dl/mipsel_gcc-3.4.6-freetz-r10381-shared-glibc.tar.lzma
./dl/sfk165.zip
./dl/modcgi-0.3.tar.bz2
./dl/libtool-1.5.26.tar.gz
./dl/kconfig-v3.8.tar.xz
./dl/busybox-1.21.0.tar.bz2
./dl/lzma443.tar.bz2
./dl/mips_gcc-4.6.4_uClibc-0.9.32.1-freetz-r10381-shared-glibc.tar.lzma
./dl/squashfs2.2-r2.tar.gz
./dl/uClibc++-5976d7536d8c7a8d5a7f60fd2a3c34876a224f30.tar.bz2
./dl/fakeroot_1.18.4.orig.tar.bz2
./dl/fw
./dl/fw/7390_05.50-release_kernel.tar.xz
./dl/fw/FRITZ.Box_7390.84.05.54.image
./dl/fw/04.67-release_kernel.tar.xz
./dl/fw/FRITZ.Box_Fon_WLAN_7113.60.04.68.image
./images
./images/7113_04.68-freetz-2.0-13451.de_20151122-071604.image
./images/7390_05.54-freetz-2.0-13451.de_20151122-070947.image

So enjoy.

 

 

Advertisements
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:

WordPress.com Logo

You are commenting using your WordPress.com 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