All Projects → RobLoach → Docker Composer

RobLoach / Docker Composer

Licence: other
🙆 Docker container to install and run Composer.

Labels

Projects that are alternatives of or similar to Docker Composer

Openwrt V2ray
V2Ray for OpenWrt
Stars: ✭ 1,358 (+1205.77%)
Mutual labels:  makefile
Mesos Compose
Mesos cluster in one command
Stars: ✭ 102 (-1.92%)
Mutual labels:  makefile
Gdm3setup
An interface to configure GDM3, autologin options and change Shell theme
Stars: ✭ 103 (-0.96%)
Mutual labels:  makefile
Udict
A command line urban dictionary.
Stars: ✭ 99 (-4.81%)
Mutual labels:  makefile
Cookiecutter Lux Python
Cookiecutter template for an idiomatic Python project driven by Makefile
Stars: ✭ 102 (-1.92%)
Mutual labels:  makefile
Layout Instability
A proposal for a Layout Instability specification
Stars: ✭ 103 (-0.96%)
Mutual labels:  makefile
Moztt
Fonts used on FirefoxOS
Stars: ✭ 98 (-5.77%)
Mutual labels:  makefile
Ecs Refarch Cloudformation
A reference architecture for deploying containerized microservices with Amazon ECS and AWS CloudFormation (YAML)
Stars: ✭ 1,497 (+1339.42%)
Mutual labels:  makefile
Bsdiff and patch
just demo;
Stars: ✭ 102 (-1.92%)
Mutual labels:  makefile
Bsdowl
A highly portable build system targeting modern UNIX systems. Supports C, OCaml, TeX, METAPOST, NOWEB, M4, and more. Based on BSD Make.
Stars: ✭ 103 (-0.96%)
Mutual labels:  makefile
Sklearn tutorial
Tutorial for astronomy data processing with scikit-learn
Stars: ✭ 100 (-3.85%)
Mutual labels:  makefile
Activiti Cloud Examples
Activiti Cloud Examples using Docker Images from: https://hub.docker.com/u/activiti/dashboard/
Stars: ✭ 102 (-1.92%)
Mutual labels:  makefile
Microservice Canvas
Examples of the microservice canvas
Stars: ✭ 103 (-0.96%)
Mutual labels:  makefile
Kernel Tools
🐧 Kernels on Scaleway
Stars: ✭ 99 (-4.81%)
Mutual labels:  makefile
Devopicons
Heavily-optimised version of the Devicons icon-font.
Stars: ✭ 104 (+0%)
Mutual labels:  makefile
Libreelec.tv
Just enough OS for KODI
Stars: ✭ 1,358 (+1205.77%)
Mutual labels:  makefile
Pyzh
📚 一起写Python文章,一起看Python文章 - 利用readthedocs的Python技术文章的收集和翻译。
Stars: ✭ 1,387 (+1233.65%)
Mutual labels:  makefile
Yii2 Cookbook
Yii 2.0 Community Cookbook
Stars: ✭ 1,397 (+1243.27%)
Mutual labels:  makefile
Operating System
🔰 Home Assistant Operating System
Stars: ✭ 1,920 (+1746.15%)
Mutual labels:  makefile
Android build
Stars: ✭ 101 (-2.88%)
Mutual labels:  makefile

DEPRECATED

This image has been deprecated and moved to the official composer Docker Container. See the source for more information.

Supported tags and respective Dockerfile links

  • 1.0
  • 1.0-alpine
  • 1.0-php5
  • 1.0-php5-alpine
  • 1.1, 1, latest
  • 1.1-php5, 1-php5, php5
  • 1.1-alpine, 1-alpine, alpine
  • 1.1-php5-alpine, 1-php5-alpine, php5-alpine
  • master
  • master-php5
  • master-alpine
  • master-php5-alpine, master-php7.1.4-alpine

What is Composer?

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

wikipedia.org/wiki/Composer (software)

Composer Logo

How to use this image.

Installation / Usage

  1. Install the composer/composer container:

    $ docker pull composer/composer
    

Alternatively, pull a specific version of composer/composer: sh $ docker pull composer/composer:1.1

  1. Create a composer.json defining your dependencies. Note that this example is a short version for applications that are not meant to be published as packages themselves. To create libraries/packages please read the documentation.

    {
        "require": {
            "monolog/monolog": ">=1.0.0"
        }
    }
    
  2. Run Composer through the Composer container:

    $ docker run --rm -v $(pwd):/app composer/composer install
    

Or run using a specific version of Composer: sh $ docker run --rm -v $(pwd):/app composer/composer:1.1 install If working with packages installed via git ssh the local .ssh directory shall be mapped into the container: sh $ docker run --rm -v $(pwd):/app -v ~/.ssh:/root/.ssh composer/composer install

  1. Add optional composer command to the host (tested on OS X El Capitan with docker-machine)

Create new composer file sh $ sudo vim /usr/local/bin/composer

The contents of the file will look like this: sh #!/bin/sh export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin echo "Current working directory: '"$(pwd)"'" docker run --rm -v $(pwd):/app -v ~/.ssh:/root/.ssh -v $HOME/.composer-docker:/composer composer/composer [email protected]

Once the script has been made, it must be set as executable sh $ sudo chmod +x /usr/local/bin/composer

Now the composer command is available native on host: sh $ composer --version

Image Variants

composer/composer:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

composer/composer:php5

This is made to run Composer through PHP 5, rather then the default of PHP 7.

composer/composer:alpine

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

composer/composer:php5-alpine

This is made to run Composer through PHP 5, rather then the default of PHP 7, through the Alpine container.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].