Camunda Docker build for RaspberryPi 2

620 views
Skip to first unread message

uw....@googlemail.com

unread,
May 21, 2015, 4:36:39 AM5/21/15
to camunda-...@googlegroups.com
Hi,

I would like to use the actual camunda versions via docker an my raspberry pi 2.

I found the project site
https://github.com/camunda/docker-camunda-bpm-platform
and tried to start it under the pi.

I got an error similar to
------------
FATA[0003] Error response from daemon: Cannot start container 0f0fa3f8e510e53908e6a459e817d600b9649e621e7dede974d6a65761ad39e5: exec format error
------------
and found out that the docker build on your site is not for ARM but for x86 (32Bit or 64Bit).

So I tried to use the provided docker file and build my own docker image on the pi.
But got the following error:
-------------------
[root@alarmpi ~]# docker build -t camunda/camunda-bpm-platform:latest git://github.com/camunda/docker-camunda-bpm-platform
Sending build context to Docker daemon 145.4 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04.1
Pulling repository ubuntu
5ba9dab47459: Download complete
511136ea3c5a: Download complete
27d47432a69b: Download complete
5f92234dcf1e: Download complete
51a9c7c1f8bb: Download complete
Status: Downloaded newer image for ubuntu:14.04.1
---> 5ba9dab47459
Step 1 : ENV VERSION 7.3.0-alpha3
---> Running in e5bfa513ceaa
---> f6a5f6dee413
Removing intermediate container e5bfa513ceaa
Step 2 : ENV DISTRO tomcat
---> Running in d345b4bc3159
---> 1e3493f45664
Removing intermediate container d345b4bc3159
Step 3 : ENV SERVER apache-tomcat-7.0.50
---> Running in b54e50784540
---> a3960064cd24
Removing intermediate container b54e50784540
Step 4 : ENV LIB_DIR /camunda/lib/
---> Running in 99198edd8266
---> b2e3babfd096
Removing intermediate container 99198edd8266
Step 5 : ENV SERVER_CONFIG /camunda/conf/server.xml
---> Running in 524460892a82
---> 7376ee51b769
Removing intermediate container 524460892a82
Step 6 : ENV NEXUS https://app.camunda.com/nexus/service/local/artifact/maven/redirect
---> Running in bd8ce9becba4
---> 48ba2a923a6f
Removing intermediate container bd8ce9becba4
Step 7 : RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/oracle-jdk.list && apt-key adv --recv-keys --keyserver keyserver.ubuntu.com EEA14886 && echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && apt-get update && apt-get -y install --no-install-recommends oracle-java8-installer xmlstarlet ca-certificates && apt-get clean && rm -rf /var/cache/* /var/lib/apt/lists/*
---> Running in a3f71af14764
exec format error
INFO[0417] [8] System error: exec format error
[root@alarmpi ~]#
------------------

Is there any way to provide an rasperry pi docker file or even image for ARM?

I'm absolutely new to docker and would prefer a provided image but could help in building the image if I would have a suitable docker file or instruction how to build if the above build call is not correct.

Best regards,
Uwe Koch


Sebastian Menski

unread,
May 21, 2015, 4:52:26 AM5/21/15
to camunda-...@googlegroups.com, uw....@googlemail.com, uw....@googlemail.com
Hi Uwe,

thanks for your interest in the docker images. I think the initial problem is that the base image we use for the docker images are not arm compatible. We use the official ubuntu 14.04.1. You
could search for armhf-* images on the docker hub for compatible base images. My first try would be to use the armhf build for ubuntu [1]. Just replace the first FROM line of the Dockerfile:

FROM armv7/armhf-ubuntu:14.04.1

You can find more information on docker and arm here [2].

Just out of curiosity, which distro are you running? I would guess Archlinux based on the prompt? And which docker version did you installed?

Also feel free to create a github issue for this. Maybe I find some spare time to work on this.

Cheers,
Sebastian

uw....@googlemail.com

unread,
May 21, 2015, 5:56:00 PM5/21/15
to camunda-...@googlegroups.com, uw....@googlemail.com
Hi Sebastian,

> FROM armv7/armhf-ubuntu:14.04.1
>
made it!

I started with an ArchLinux Installation Step-By-Step from
http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2 as it is the suggested distro for raspberry pi if you want to use docker because it is included in the repos.

After that I found
http://clmpractice.org/2015/02/07/how-to-install-docker-on-a-raspberry-pi2/
mentioning a ready-to-use Archlinux image preinstalled with docker:
https://www.homegear.eu/index.php/Downloads - Tab "Docker"
http://homegear.eu/downloads/rpi_archlinux_docker_20150217.zip
which was a much faster installation.

Besides...
Docker Version is 1.6.2 after an update via pacman.
ArchLinux version? Don't know exactly:
[root@archimage ~]# cat /proc/version
Linux version 3.18.13-2-ARCH (builduser@leming) (gcc version 4.9.2 20150304 (prerelease) (GCC) ) #1 SMP PREEMPT Mon May 18 20:19:37 MDT 2015


I installed make & unzip only and started docker as daemon via "docker -d &"

After downloading the camunda docker github package and only modifying Dockerfile's first line to "FROM armv7/armhf-ubuntu:14.04.1" as mentioned,
I started the new build via "make build" on the Pi2.
Afterwards I started the fresh image as described:

docker run -d --name camunda -p 8080:8080 camunda/camunda-bpm-platform:latest
# open browser with url: http://localhost:8080/camunda-welcome/index.html

That's it.

Thanks for the helpful answer.

So it was not much effort after all.

Examples, cockpit, tasklist seem all to work.

Great ;-)

Uwe
Uwe

Sebastian Menski

unread,
May 22, 2015, 3:12:52 AM5/22/15
to camunda-...@googlegroups.com, uw....@googlemail.com, uw....@googlemail.com
Hi Uwe,

thanks for the feedback. Nice to hear that it works. I created an issue [1] to provide ARM images
for the future.

Cheers,
Sebastian

Reply all
Reply to author
Forward
0 new messages