Skip to content

Commit

Permalink
Update 07.Docker.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LudovicPatho authored Feb 25, 2024
1 parent b086f99 commit a65a0be
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions 07.Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Ensuite enregistrons le runner sur le serveur:
```
sudo gitlab-runner register --url http://gitlab.das.becode
```
---
Il est possible que vous rencontriez une erreur ``Could not resolve host``, il faut éditer le fichier :

Après le runner, il est possible que vous rencontriez une erreur ``Could not resolve host``, il faut éditer le fichier :

```
sudo nano /etc/gitlab-runner/config.toml
Expand All @@ -22,7 +23,7 @@ et rajouter la ligne suivante
....
extra_hosts = ["gitlab.das.becode:20.13.147.210"]
```

---
Et un exemple de fichier ``.gitabl-ci.yaml``

```yaml
Expand All @@ -38,3 +39,8 @@ job_hello_world:
- sleep 60
- echo "end"
```
---
**Exercice:**
- Créer un runner docker et un fichier gitlab-ci avec un script qui fait un echo "Hello Das"
- Utilisez l'image ubuntu:latest

0 comments on commit a65a0be

Please sign in to comment.