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
3aa443fb
Commit
3aa443fb
authored
Feb 14, 2019
by
Jason Frisvold
Browse files
- More changes to make this container work
parent
f3bb865b
Pipeline
#409
failed with stages
in 16 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
3aa443fb
.git*
Dockerfile
sonar-project.properties
.gitlab-ci.yml
View file @
3aa443fb
...
...
@@ -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 .
...
...
Dockerfile
View file @
3aa443fb
...
...
@@ -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
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