Commit 3aa443fb authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- More changes to make this container work

parent f3bb865b
Pipeline #409 failed with stages
in 16 seconds
.git*
Dockerfile
sonar-project.properties
......@@ -6,6 +6,7 @@ services:
variables:
GIT_SSL_NO_VERIFY: "true"
DOCKER_DRIVER: overlay
SMARTYVER: 3.1.33
stages:
- build
......@@ -18,6 +19,10 @@ dockerize:
- docker login --username gitlab-ci-token --password $CI_JOB_TOKEN
$CI_REGISTRY
script:
- curl -LO https://github.com/smarty-php/smarty/archive/v{$SMARTYVER}.tar.gz
- tar zxf v{$SMARTYVER}.tar.gz
- rm v{$SMARTYVER}.tar.gz
- mv v{$SMARTYVER} /Smarty
- docker build --build-arg GIT_HASH=$CI_COMMIT_SHA
-t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA -t $CI_REGISTRY_IMAGE:latest
-f Dockerfile .
......
......@@ -16,8 +16,11 @@ RUN { \
# PECL extensions
RUN docker-php-ext-install mysqli \
&& pecl install APCu \
&& docker-php-ext-enable apcu
&& docker-php-ext-enable apcu \
&& mkdir /var/www/smarty
ADD . /var/www/html
ADD /Smarty /var/www/Smarty
EXPOSE 80
Supports Markdown
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