Skip to content
Snippets Groups Projects
Commit 188a3f6c authored by MUNIER Florian's avatar MUNIER Florian
Browse files

Update README.md

parent 021f4a21
Branches
No related tags found
No related merge requests found
......@@ -9,6 +9,25 @@ git clone https://gitlab.imt-atlantique.fr/f21munie/project_jenkins_php.git
cd project_jenkins_php
```
# Générer l'image de l'application
```sh
cd project_jenkins_php
docker build -t checktva src/
```
# Exécuter l'application
```sh
cd project_jenkins_php
- cas où tout fonctionne :
docker run --rm -ti checktva php checktva.php product food 2
- cas où il manque un argument :
docker run --rm -ti checktva php checktva.php product food
- cas où il y a une erreur de type :
docker run --rm -ti checktva php checktva.php product food l
```
# Effectuer les tests manuellement
```sh
......@@ -24,7 +43,10 @@ cd project_jenkins_php
docker-compose up
```
Puis allez sur votre navigateur à l'adresse : localhost:8080.
Puis allez sur votre navigateur à l'adresse :
```sh
localhost:8080.
```
Créer un nouveau projet et collez le Jenkinsfile dans le script du pipeline.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment