Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
training-phpunit
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maxime Veber
training-phpunit
Commits
a3184069
Commit
a3184069
authored
7 years ago
by
Maxime Veber
Browse files
Options
Downloads
Patches
Plain Diff
Fix docker volume config
parent
4359a880
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+5
-2
5 additions, 2 deletions
Dockerfile
README.md
+1
-1
1 addition, 1 deletion
README.md
templates/index.html.twig
+1
-0
1 addition, 0 deletions
templates/index.html.twig
with
7 additions
and
3 deletions
Dockerfile
+
5
−
2
View file @
a3184069
...
...
@@ -7,9 +7,12 @@ RUN apt-get update \
RUN
php
-r
"copy('https://getcomposer.org/installer', 'composer-setup.php');"
\
&&
php
-r
"if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
\
&&
php composer-setup.php
\
&&
php
-r
"unlink('composer-setup.php');"
&&
php
-r
"unlink('composer-setup.php');"
\
&&
mv
composer.phar /project/composer.phar
ADD
./ /project
VOLUME
/project
# ADD ./ /project
WORKDIR
/project
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
a3184069
...
...
@@ -7,7 +7,7 @@ Run the docker
```
bash
docker build
.
-t
phpunit:test
# Lancer le docker
docker run
-it
-d
-p
8000:8000 phpunit:test
docker run
-it
-v
`
pwd
`
:/project
-d
-p
8000:8000 phpunit:test
# Pour lancer un terminal dans le docker
docker ps
docker
exec
-it
{
code
}
bash
...
...
This diff is collapsed.
Click to expand it.
templates/index.html.twig
+
1
−
0
View file @
a3184069
...
...
@@ -2,6 +2,7 @@
{%
block
body
%}
<h1>
Items
</h1>
{%
for
item
in
items
%}
{{
item.getWidget
()
|
raw
}}
{%
endfor
%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment