You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Update documentation after codelab at Devoxx France 2025 (#52)
* fix: manual installation
* feat: add documentation to use local vscode with codespace
* fix: use folder .dagger instead of dagger suggered by dagger contibutor
* Update 03-utiliser-module-daggerverse.md
* fix: Update after review
* update devcontainer with latest versions
* small fix
* fix version
* fix: version and typo
* fix
* english update
* update
---------
Co-authored-by: Julien Haumont <3694732+jhaumont@users.noreply.github.com>
Co-authored-by: Julien Haumont <julien.haumont@zenika.com>
Copy file name to clipboardExpand all lines: runbooks/english/01-setup.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,16 @@
2
2
3
3
To run this codelab, you have 2 choices:
4
4
5
-
- Use GitHub Codespace by clicking on the button bellow (**recommended**)
5
+
- Use GitHub [Codespace](#codespace) by clicking on the button bellow (**recommended**)
6
6
- Install all prerequisites and Dagger on your computer (see section [Local installation](#local-installation) of this document)
7
7
8
-
## Fork this repository
8
+
## Codespace
9
+
10
+
### Repository fork
9
11
10
12
Please, fork this repository. With your fork, you can commit & push to save your work.
11
13
12
-
## Codespace
14
+
###Codespace creation
13
15
14
16
Click on the button bellow:
15
17
@@ -19,23 +21,41 @@ In the codespace's creation's page, keep in mind to **change the repository name
19
21
20
22

21
23
24
+
Codespace environnement can take few minutes.
25
+
26
+
Now, you are ready to go to next page [Getting started with Dagger](02-getting-started-with-Dagger.md)
27
+
28
+
> [!TIP]
29
+
> If the code space loading page is still displayed, scroll to bottom of [Codespace page](https://github.com/codespaces/)
30
+
> 
31
+
>
32
+
> If status is `Active`, that means the codespace is ready, but web page is blocked maybe due to too many call from same IP addresses (in case of codelab with too many people). Voir [Se connecter à VSCode (optionnel)](#se-connecter-à-vscode-optionnel).
33
+
34
+
### Connect to VSCode (optional)
35
+
36
+
You can connect your local VSCode (from your computer) directly to codespace environnement. To do that, please read [official documentation](https://docs.github.com/en/codespaces/developing-in-a-codespace/using-github-codespaces-in-visual-studio-code).
37
+
22
38
## Local installation
23
39
40
+
### Repository fork
41
+
42
+
Please, fork this repository. With your fork, you can commit & push to save your work.
43
+
44
+
### Configuration
45
+
24
46
To run this codelab, your need install all of components bellow:
25
47
26
48
- Under Windows, WSL2 is highly recommended (but you can use an other virtualization manager like [Virtualbox](https://www.virtualbox.org))
27
49
- Install **Docker for Windows/Mac** or **Rancher Desktop**
28
50
- Install [Git](https://git-scm.com/)
29
51
- Install [Go](https://go.dev/doc/install) language `1.23.x`
30
-
- Install [Dagger](https://docs.dagger.io/quickstart/cli/) version `0.18.3`
52
+
- Install [Dagger](https://docs.dagger.io/install/) version `0.18.10`
31
53
- Example for linux:
32
54
```bash
33
-
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.18.3 $HOME/.local/bin sh
55
+
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.18.10 BIN_DIR=$HOME/.local/bin sh
34
56
```
35
57
36
58
> [!TIP]
37
59
> If you have any issue with Docker credential by using WSL2, you can try this fix it by following instruction given on this website https://forums.docker.com/t/docker-credential-desktop-exe-executable-file-not-found-in-path-using-wsl2/100225/5
38
60
39
-
## Getting Started with Dagger
40
-
41
61
Now, you are ready to go to next page [Getting started with Dagger](02-getting-started-with-Dagger.md)
Copy file name to clipboardExpand all lines: runbooks/english/04-use-module-in-github-actions.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,4 +28,7 @@ You now have a CI pipeline for the `hello` application!
28
28
29
29
The pipeline is executed on GitHub Action using our Dagger module! This allows you to use the same pipeline locally and in GitHub Actions.
30
30
31
+
> [!TIP]
32
+
> You can install the GitHub app Dagger inside your repository to link directly inside the PR the build traces on Dagger Cloud. CF https://github.com/apps/dagger-cloud
33
+
31
34
Now, we will expore the Dagger shell, to do same but without any code: [Introducing Dagger Shell](./05-use-interactive-dagger-shell.md).
Copy file name to clipboardExpand all lines: runbooks/french/01-setup.md
+28-8Lines changed: 28 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,16 @@
2
2
3
3
Pour réaliser ce codelab, vous avez 2 possibilités :
4
4
5
-
- Utiliser le GitHub Codespace mis à disposition (**méthode recommandée**)
5
+
- Utiliser le GitHub [Codespace](#codespace) mis à disposition (**méthode recommandée**)
6
6
- Installer les prérequis et Dagger sur votre machine (voir section [Installation locale](#installation-locale) de ce document)
7
7
8
-
## Fork du repository
8
+
## Codespace
9
+
10
+
### Fork du repository
9
11
10
12
Faire un fork de ce repository. Avec ce fork, vous pouvez commit et pousser votre travail pour le sauvegarder.
11
13
12
-
##Codespace
14
+
### Création du codespace
13
15
14
16
Cliquez sur le bouton ci-dessous et laissez vous porter par la magie :
15
17
@@ -19,23 +21,41 @@ Dans la fenêtre de création du codespace, pensez à **changer le repository po
19
21
20
22

21
23
24
+
La création de l'environnement codespace prend quelques minutes.
25
+
26
+
Une fois le codespace déployé, allez à la page [Getting started with Dagger](02-getting-started-with-Dagger.md)
27
+
28
+
> [!TIP]
29
+
> Si la page de chargement reste bloquée, allez tout en bas de la page [Codespace](https://github.com/codespaces/) :
30
+
> 
31
+
>
32
+
> Si le statut est `Active`, le codespace est bien créé mais l'ihm est bloqué, peut-être à cause d'un trop grand nombre de connexions depuis la même adresse IP (dans le cas d'un codelab lors d'une conférence). Voir [Se connecter à VSCode (optionnel)](#se-connecter-à-vscode-optionnel).
33
+
34
+
### Se connecter à VSCode (optionnel)
35
+
36
+
Vous pouvez connecter l'instance VSCode de votre ordinateur à l'environnement codespace. Pour cela, suivez la [documentation officielle](https://docs.github.com/en/codespaces/developing-in-a-codespace/using-github-codespaces-in-visual-studio-code).
37
+
22
38
## Installation locale
23
39
40
+
### Fork du repository
41
+
42
+
Faire un fork de ce repository. Avec ce fork, vous pouvez commit et pousser votre travail pour le sauvegarder.
43
+
44
+
### Configuration
45
+
24
46
Voici les éléments à mettre en place pour réaliser le codelab sur votre machine :
25
47
26
48
- Avec Windows l'utilisation de WSL2 est recommandée (vous pouvez toutefois utiliser un système de virtualisation comme [Virtualbox](https://www.virtualbox.org))
27
49
- Avoir Docker installé sur votre machine (via **Docker for Windows/Mac** ou **Rancher Desktop** pour Windows et Mac OS)
28
50
- Installer un client [Git](https://git-scm.com/)
29
51
- Installer la version `1.23.x` du langage [Go](https://go.dev/doc/install)
30
-
- Installer le client [Dagger](https://docs.dagger.io/quickstart/cli/) version `0.18.3`
52
+
- Installer le client [Dagger](https://docs.dagger.io/install/) version `0.18.10`
31
53
- Exemple pour linux:
32
54
```bash
33
-
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.18.3 $HOME/.local/bin sh
55
+
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.18.10 BIN_DIR=$HOME/.local/bin sh
34
56
```
35
57
36
58
> [!TIP]
37
59
> En cas de soucis avec les identifiants docker sur WSL2, essayer la solution suivante https://forums.docker.com/t/docker-credential-desktop-exe-executable-file-not-found-in-path-using-wsl2/100225/5
38
60
39
-
## Getting Started with Dagger
40
-
41
-
Une fois prêts, démarrer le allez à la page [Getting started with Dagger](02-getting-started-with-Dagger.md)
61
+
Une fois la configuration terminée, allez à la page [Getting started with Dagger](02-getting-started-with-Dagger.md)
Copy file name to clipboardExpand all lines: runbooks/french/02-getting-started-with-Dagger.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,16 @@ cd hello
20
20
21
21
Initialisez votre module de Dagger :
22
22
```bash
23
-
dagger init --sdk=go --source=./dagger
23
+
dagger init --sdk=go --source=.dagger
24
24
```
25
25
26
26
Cette commande va télécharger l'image du conteneur Dagger engine (liée à votre version du CLI), le démarrer et générer votre structre de module Dagger :
27
27
- Un fichier `dagger.json` de metadata,
28
-
- Un répertoire `dagger`:
28
+
- Un répertoire `.dagger`:
29
29
- Un fichier `main.go` qui va contenir le code de votre module,
30
30
- Un ficher `dagger.gen.go` et un répertoire `internal` contenant le code utilitaire généré par Dagger,
31
31
32
-
Dans le fichier `dagger/main.go`, remplacez le code existant par celui ci-dessous :
32
+
Dans le fichier `.dagger/main.go`, remplacez le code existant par celui ci-dessous :
33
33
34
34
```go
35
35
package main
@@ -84,7 +84,7 @@ return dag.Container().
84
84
> [!WARNING]
85
85
> Le fichier `dagger.gen.go` apparait comme ayant un problème de compilation dans VSCode (le fichier est rouge).
86
86
>
87
-
> En changeant le contenu du fichier `dagger/main.go`, l'interface a évolué.
87
+
> En changeant le contenu du fichier `.dagger/main.go`, l'interface a évolué.
88
88
>
89
89
> Il faut regénérer le code Dagger du module, avec la commande ci-dessous :
0 commit comments