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
163c63e9
Commit
163c63e9
authored
7 years ago
by
Maxime Veber
Browse files
Options
Downloads
Patches
Plain Diff
Add docker
parent
194b782a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+16
-0
16 additions, 0 deletions
Dockerfile
README.md
+11
-0
11 additions, 0 deletions
README.md
with
27 additions
and
0 deletions
Dockerfile
0 → 100644
+
16
−
0
View file @
163c63e9
FROM
ubuntu:17.10
RUN
mkdir
/project
RUN
apt-get update
\
&&
apt-get
install
php php-cli php-json php-xml php-zip php-intl curl php-mbstring php-curl
-y
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');"
ADD
./ /project
WORKDIR
/project
CMD
["/project/bin/console", "ser:run", "0.0.0.0:8000"]
This diff is collapsed.
Click to expand it.
README.md
+
11
−
0
View file @
163c63e9
Training PHPUnit
Training PHPUnit
================
================
Run the docker
--------------
```
bash
docker build
.
-t
phpunit:test
# Lancer le docker
docker run
-it
-d
-p
8000:8000 phpunit:test
# Pour lancer un terminal dans le docker
docker ps
docker run
-it
{
code
}
bash
```
Faire un test PHPUnit simple
Faire un test PHPUnit simple
----------------------------
----------------------------
...
...
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