Add docker in the quick start

This commit is contained in:
Quentin 2024-01-25 11:28:08 +01:00
parent 7020ecf7ae
commit eaa0bbd347
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -51,6 +51,16 @@ USAGE:
... ...
``` ```
If you use Docker, you can get the same result with:
```bash
docker run --network host dxflrs/aerogramme:0.2.0 aerogramme
```
*Using host network is not required for this example, but it will be useful for the following,
as, by default, Aerogramme often binds on localhost, and thus its sockets are not available
outside of the container even if you bind the correct ports.*
## Starting the daemon in development mode ## Starting the daemon in development mode
To start an in-memory daemon for evaluation purposes, you don't need any configuration file. Just run: To start an in-memory daemon for evaluation purposes, you don't need any configuration file. Just run:
@ -59,6 +69,15 @@ To start an in-memory daemon for evaluation purposes, you don't need any configu
aerogramme --dev provider daemon aerogramme --dev provider daemon
``` ```
If you use the docker container, you must launch:
```bash
docker run --network host dxflrs/aerogramme:0.2.0 aerogramme --dev provider daemon
```
*Starting from now, docker commands will not be given anymore. We assume that you have understood the pattern
on how to map the documentation commands to Docker.*
Now Aerogramme is listening for IMAP on `[::1]:1143` and for LMTP on port `[::1]:1025`. A test account has been created with username `alice` and password `hunter2`. Now Aerogramme is listening for IMAP on `[::1]:1143` and for LMTP on port `[::1]:1025`. A test account has been created with username `alice` and password `hunter2`.
<!-- <!--