Author Topic: Zentyal + Docker  (Read 9543 times)

Drekorig

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Zentyal + Docker
« on: April 20, 2015, 11:53:26 am »
Hi all,

I test install Zentyal using Docker but dpkg displays an error message during the configuration of packets :

Code: [Select]
aptitude install zentyal
The following partially installed packages will be configured:
  zentyal zentyal-core zentyal-software
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up zentyal-core (4.1) ...       
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/EBox/Service.pm line 81.
dpkg: error processing package zentyal-core (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of zentyal-software:
 zentyal-software depends on zentyal-core (>= 4.1); however:
  Package zentyal-core is not configured yet.
 zentyal-software depends on zentyal-core (<< 4.2); however:
  Package zentyal-core is not configured yet.

dpkg: error processing package zentyal-software (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal:
 zentyal depends on zentyal-core; however:
  Package zentyal-core is not configured yet.
 zentyal depends on zentyal-software; however:
  Package zentyal-software is not configured yet.

dpkg: error processing package zentyal (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
 Errors were encountered while processing:
 zentyal-core
 zentyal-software
 zentyal
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up zentyal-core (4.1) ...
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/EBox/Service.pm line 81.
dpkg: error processing package zentyal-core (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of zentyal-software:
 zentyal-software depends on zentyal-core (>= 4.1); however:
  Package zentyal-core is not configured yet.
 zentyal-software depends on zentyal-core (<< 4.2); however:
  Package zentyal-core is not configured yet.

dpkg: error processing package zentyal-software (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal:
 zentyal depends on zentyal-core; however:
  Package zentyal-core is not configured yet.
 zentyal depends on zentyal-software; however:
  Package zentyal-software is not configured yet.

dpkg: error processing package zentyal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 zentyal-core
 zentyal-software
 zentyal

Do you know how I can install Zentyal in Docker?
Thank you in advance for your help and desolated for my Google translation  :) .

unclesamwk

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Zentyal + Docker
« Reply #1 on: October 13, 2015, 02:38:12 pm »
Hello,

ich will use it in docker too ... Can you help please?

Greetings

Sam

apos

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +2/-0
    • View Profile
Re: Zentyal + Docker
« Reply #2 on: June 12, 2016, 01:31:59 pm »
Hello Docker and Zentyal fans,

I am very astonished, that there seams to be not post about docker + zentyal in the forum. It would solve a lot of problems (rolling back when updates are going wrong, providing ready to go images !!!). Therefore I will reactivate this thread.



Short answer to

Quote
ich will use it in docker too ... Can you help please?

Read and contribute ... ;-)

Short answer to the thread starter: The Ubuntu-Docker-Image of Ubuntu is not per default designed and prepared to run complex applications. BUT Zentyal requires Ubuntu! AND: to run in a docker image there have to be several things to be done to get things running ... that might be the reason because the effort of the thread starter ...

Quote
I test install Zentyal using Docker but dpkg displays an error message during the configuration of packets

... failed. He simply did not know, how docker workes (I am almost 100% shure whithout the spare informations he gave use) ;-)


A solution and long answer why just using the standard docker image in ubuntu won't work and how we will get it go running:

1.  (and other) https://www.digitalocean.com/community/tutorials/how-to-install-zentyal-on-ubuntu-14-04

Quote
Zentyal is Debian-based and built on the latest Ubuntu Long Term Support (LTS) version. The current hardware requirements for Zentyal 3.5 are based on Ubuntu Trusty 14.04.1 LTS (kernel 3.5). Zentyal uses the LXDE desktop and the Openbox window manager.

2. https://github.com/phusion/baseimage-docker#what-are-the-problems-with-the-stock-ubuntu-base-image

Quote
Ubuntu is not designed to be run inside Docker. Its init system, Upstart, assumes that it's running on either real hardware or virtualized hardware, but not inside a Docker container. But inside a container you don't want a full system anyway, you want a minimal system. But configuring that minimal system for use within a container has many strange corner cases that are hard to get right if you are not intimately familiar with the Unix system model. This can cause a lot of strange problems.

Baseimage-docker gets everything right. The "Contents" section describes all the things that it modifies.

3.  An example how to get a LAMP stack running (Wordpress) with Docker Composer which might help getting zentyal run: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-and-phpmyadmin-with-docker-compose-on-ubuntu-14-04

Quote
Docker Compose makes dealing with the orchestration processes of Docker containers (such as starting up, shutting down, and setting up intra-container linking and volumes) really easy.


Please READ before you procede and try to understand what docker is, works and how it behaves under Ubuntu. Take yourself the time, prepare coffee or tee BEFORE, read the articles above and THEN go on installing zentyal explained the following link should work.

* https://wiki.zentyal.org/wiki/Installation_Guide


I don't have time to test this in the moment. If anyone does, please post ... I will, wenn I find the time.

* _PLEASE_ post your solution in detail (not just. "it worked for me")
* post your docker yml files and what dependencies you had
* probably share youre zentyal docker image with others at docker registry
* Be prductive - don't post any: "I also have the same problem." -  posts.

Good luck
Axel
« Last Edit: June 13, 2016, 10:44:37 pm by apos »

OBenned

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Zentyal + Docker
« Reply #3 on: February 14, 2017, 11:39:41 pm »
Im trying to bring this back: http://phusion.github.io/baseimage-docker/

Maybe this image makes it possible for us to run Zentyal in docker