Setting up docker on Mac OS – php-intl cannot be installed

I have the following problem:

I want set up a development environment on my Mac using docker and boot2docker.

  • Creating docker image that executes commands in python virtualenv
  • Where are docker images gcloud should build from
  • Running docker gitlab-runner with net=host option
  • Docker for windows 7- Get x509: certificate signed by unknown authority
  • Docker time measures in unified unit
  • Faillure to launch docker on OSX Yosemite
  • For that I created an image using the below Dockerfile.

    The Problem is, that my php-intl-Extension cannot be installed.. I tried various method. For example to enable it in php.ini via:

    None of the methods will work. Here is the content of my Dockerfile:

    FROM php:5.5-apache
    # use own php.ini file
    COPY config/php.ini /usr/local/etc/php/
    # get some php-extensions
    RUN apt-get update && apt-get install -y \
            libfreetype6-dev \
            libjpeg62-turbo-dev \
            libmcrypt-dev \
            libpng12-dev \
            libicu52 \
            libicu-dev \
            zlib1g-dev \
        && docker-php-ext-install -j$(nproc) iconv mcrypt \
        && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
        && docker-php-ext-install -j$(nproc) gd
    RUN apt-get update && apt-get install -y libmemcached-dev \
        && pecl install memcached \
        && docker-php-ext-enable memcached
    # Install intl (not working yet):
    RUN pecl install intl
    # use own src file
    COPY src/ /var/www/html/

    Can anyone help? That would be so great, because this problem takes a lot of time by now. Thanks in advance!!!

  • How to assign a name to running container in docker?
  • how to notify error for `restart: on-failure` in docker-compose?
  • how to create reverse ssh tunnel to docker-toolbox which binds to
  • How can I get an upstart script to properly manage running a docker image?
  • stop and delete docker container if its running
  • Managing Persistent Files (not database) with Docker
  • One Solution collect form web for “Setting up docker on Mac OS – php-intl cannot be installed”

    You don’t need to use PECL, why don’t you just use:

    docker-php-ext-install intl

    Generally you also need to apt-get install libicu-dev for dependencies, but you already have that.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.