Tag: composer php

Install composer dependencies while deploying

I’m using Elastic Beanstalk to deploy my application as a Single Docker Application. My Dockerfile does composer install while deploying, but I get a Could not authenticate against github.com error. I use these lines in my Dockerfile to install my dependencies: WORKDIR /www RUN [“composer”, “install”, “-o”] How would I solve this issue?

Docker running composer in startup script, composer never runs

I’ve got a docker container which is effectively a LAMP stack. I’m using supervisord for managing the processes. I can execute a bash script when the container starts, but I can’t get the script to run composer. My simple script #!/bin/bash git clone https://github.com/[..project..].git /var/www/ wait composer update -d /var/www/ wait # Just here to […]

php composer with docker build: failed to clone git

I am trying to create a Dockerfile to automate the installation of HumHub following the install guide: https://www.humhub.org/docs/guide-admin-installation.html However, whenever the build script runs composer, I get the following error: Changed current directory to /root/.composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) – Installing fxp/composer-asset-plugin (v1.1.1) Downloading: Connecting… […]

“Could not delete ./” when I use composer in docker

When I build my dockerfile, it just show that. Did anyone tried to use composer in docker? Or is there any other way to install the flarum into docker? PS: the user is root. Downloading https://packagist.org/packages.json Writing /root/.composer/cache/repo/https—packagist.org/packages.json into cache Downloading http://packagist.org/p/provider-2013%24d6b22cfddabf0741ef0c5c720daf4f0a5f17ed112a30074bfeef5007a1e30590.json Writing /root/.composer/cache/repo/https—packagist.org/p-provider-2013.json into cache Downloading http://packagist.org/p/provider-2014%2471316c49d46d6c1e66f1d56e3cd12020169065922e83ed72e3319f00146bf8cf.json Writing /root/.composer/cache/repo/https—packagist.org/p-provider-2014.json into cache Downloading http://packagist.org/p/provider-2015-01%244a1f70479a6d65b81b75a0db8f73f0cce3fa08a6f828fe1c93bda72f1943b88d.json Writing […]

php composer inside container lost vendor directory

I have the following Dockerfile FROM bitgandtter/sf:php7 # basic env fix ENV TERM xterm # install packages ADD . /var/www # update dependencies RUN cd Helpers && SYMFONY_ENV=prod composer update -o –no-dev ENV SYMFONY_ENV prod After build the image the Helpers directory does not contain the vendor directory. I really dont know why is that […]

composer install failing for unknown reason in travis-ci

I’m running a composer install after a docker-compose up and am unable to get the CI process to continue. All of the output shows the install was successful except for travis’ interpretation of the output. See https://travis-ci.org/BibleBowl/account/builds/125161543#L1454 Is there something I can do to show more verbose output?

How to install dependencies via Composer for Symfony project in Dockerfile?

I’ve met a problem related to making Docker container image, that contains Symfony base application. I can install php extensions without any problem (mcrypt, pdo_mysql, etc), but I can’t install dependencies via Composer. So… I’ve got, that I have problems related to caching and forming file autoload.php. I can’t understand why, but it tries connect […]

Running composer on Elastic Beanstalk with multi docker environment

I have tried to get my multi docker setup running on AWS. I’m running Laravel. By default, we don’t include vendors to our repository. This is a problem because there doesn’t seem like a way to run Composer after deployment. I’m including vendors into the release but then I get issues with the Composer auto […]

Docker php with composer PSR-4

Im trying to publish my webpage using docker on my nas. But Can’t get the PSR-4 to work, it wont find the controllers through the namespacing. Everything worked on my vagrant box. But as long as I don’t extend a class it wont break Whoops \ Exception \ ErrorException (E_ERROR) Class ‘Rsubscribe\Controllers\BaseController’ not found bootstrap/start.php […]

How do I integrate my git PHP repo into an official Docker Hub container?

In the official Docker Hub PHP 5.6 / Apache Dockerfile, Apache is pointed by default at /var/www/html. The Dockerfile does a lot of directory setup using this directory as the assumed docroot. Most instructions on deploying PHP applications in a Docker container include an instruction like this for the dockerfile: ADD src/ /var/www/html/ This is […]

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