Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Godshell
phpTodo
Commits
b19d6f0d
Commit
b19d6f0d
authored
Feb 14, 2019
by
Jason Frisvold
Browse files
- Add Dockerfile for building container
parent
6261fd9b
Pipeline
#405
failed with stages
in 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b19d6f0d
...
...
@@ -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
...
...
Dockerfile
0 → 100644
View file @
b19d6f0d
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment