Commit b19d6f0d authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Add Dockerfile for building container

parent 6261fd9b
Pipeline #405 failed with stages
in 40 seconds
......@@ -6,10 +6,25 @@ services:
variables:
GIT_SSL_NO_VERIFY: "true"
DOCKER_DRIVER: overlay
stages:
- build
- analysis
dockerize:
stage: build
before_script:
- export REVISION=$(git rev-parse --short HEAD)
- docker login --username gitlab-ci-token --password $CI_JOB_TOKEN
$CI_REGISTRY
script:
- docker build --build-arg GIT_HASH=$CI_COMMIT_SHA
-t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA -t $CI_REGISTRY_IMAGE:latest
-f Dockerfile .
- docker push $CI_REGISTRY_IMAGE
after_script:
- docker logout $CI_REGISTRY
sonarqube:
stage: analysis
image: ciricihq/gitlab-sonar-scanner
......
FROM php:5.6-apache
MAINTAINER Jason Frisvold <friz@godshell.com>
LABEL Description="phpTodo"
# set recommended PHP.ini settings # see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
# PECL extensions
RUN apt-get update \
&& apt-get install -y php5-mysql \
&& docker-php-ext-install mysqli mysql \
&& pecl install APCu-4.0.11 \
&& docker-php-ext-enable apcu
ADD . /var/www/html
EXPOSE 80
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment