Public Repository

Last pushed: a year ago
Short Description
GitLab build env with debian-php
Full Description
FROM debian:jessie

ENV DEBIAN_FRONTEND noninteractive

# Upgrade
# Install the basic php web stack (php, git, node, npm, phpcs)
# Composer, bower
# Workspace
# PHP Code Sniffer and additional KRDS standards
# Grunt utility
# Save some space

RUN http_proxy=http://172.24.0.250:3128 apt-get -y update && \
    http_proxy=http://172.24.0.250:3128 apt-get -y --force-yes upgrade && \
    http_proxy=http://172.24.0.250:3128 apt-get -y --force-yes install git npm php5-cli php5-common php5-curl php5-gd  php5-geoip php5-imagick php5-$
    curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && composer config --global cache-dir /cache

RUN mkdir -p /home/phpcs/krds && \
    curl -so /home/phpcs/phpcs.phar -L https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && \
    echo '#!/usr/bin/env sh'"\nphp /home/phpcs/phpcs.phar \$@" > /usr/local/bin/phpcs && chmod +x /usr/local/bin/phpcs && \
    phpcs --config-set encoding utf-8 && phpcs --config-set tab_width 4 && git clone https://git.int.krds.com/tools/phpcodesniffer-krds-coding-stand$
    phpcs --config-set installed_paths /home/phpcs/krds && \
    ln -s /usr/bin/nodejs /usr/bin/node && \
    npm config set cache=/cache && npm install -g bower grunt-cli && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_*
Docker Pull Command
Owner
ipernet

Comments (0)