Skip to content

Instantly share code, notes, and snippets.

@sanemat
Created September 23, 2014 14:59
Show Gist options
  • Save sanemat/94e0022e56435d819563 to your computer and use it in GitHub Desktop.
Save sanemat/94e0022e56435d819563 to your computer and use it in GitHub Desktop.
Pend PHP
RUN apt-get install -y libcurl4-gnutls-dev re2c m4 libmcrypt-dev libtidy-dev
RUN curl -O http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
RUN curl -O http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb
RUN dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
RUN dpkg -i bison_2.7.1.dfsg-1_amd64.deb
RUN apt-mark hold libbison-dev
RUN apt-mark hold bison
# http://ubuntuserverguide.com/2014/06/how-to-install-lamp-in-ubuntu-server-14-04-lts.html
RUN apt-get install php5 php5-mysql php-pear php5-gd php5-mcrypt php5-curl
RUN php5enmod mcrypt
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
====
symfony/class-loader uses github api request, but this go over API rate limit
- Removing symfony/class-loader (v2.5.0)
- Installing symfony/class-loader (v2.5.4)
Downloading: connection...
Could not fetch https://api.github.com/repos/symfony/ClassLoader/zipball/9acd88cd723cdd31d0c9ac3fafef0137e6a0e2ad, enter your GitHub credentials to go over the API rate limit
The credentials will be swapped for an OAuth token stored in /home/appuser/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
@sanemat
Copy link
Author

sanemat commented Sep 23, 2014

https://circleci.com/docs/composer-api-rate-limit
composer install --prefer-source --no-interaction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment