-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eclipse-mosquitto: Update license and improve documentation #2498
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments -- notably, $(pwd)
shells out unnecessarily: the shell maintains $PWD
automatically 😄
eclipse-mosquitto/content.md
Outdated
|
||
```console | ||
$ docker run -it -p 1883:1883 -p 9001:9001 -v mosquitto.conf:/mosquitto/config/mosquitto.conf %%IMAGE%% | ||
$ docker run -it -p 1883:1883 -v $(pwd)/mosquitto/config:/mosquitto/config %%IMAGE%% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ docker run -it -p 1883:1883 -v $(pwd)/mosquitto/config:/mosquitto/config %%IMAGE%% | |
$ docker run -it -p 1883:1883 -v "$PWD/mosquitto/config:/mosquitto/config" %%IMAGE%% |
eclipse-mosquitto/content.md
Outdated
@@ -40,7 +46,19 @@ i.e. add the following to `mosquitto.conf`: | |||
Run a container using the new image: | |||
|
|||
```console | |||
$ docker run -it -p 1883:1883 -p 9001:9001 -v mosquitto.conf:/mosquitto/config/mosquitto.conf -v /mosquitto/data -v /mosquitto/log %%IMAGE%% | |||
$ docker run -it -p 1883:1883 -v $(pwd)/mosquitto/config:/mosquitto/config -v /mosquitto/data -v /mosquitto/log %%IMAGE%% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ docker run -it -p 1883:1883 -v $(pwd)/mosquitto/config:/mosquitto/config -v /mosquitto/data -v /mosquitto/log %%IMAGE%% | |
$ docker run -it -p 1883:1883 -v "$PWD/mosquitto/config:/mosquitto/config" -v /mosquitto/data -v /mosquitto/log %%IMAGE%% |
eclipse-mosquitto/content.md
Outdated
or: | ||
|
||
```console | ||
$ docker run -it -p 1883:1883 -v $(pwd)/mosquitto/config:/mosquitto/config -v $(pwd)/mosquitto/data:/mosquitto/data -v $(pwd)/mosquitto/log:/mosquitto/log %%IMAGE%% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ docker run -it -p 1883:1883 -v $(pwd)/mosquitto/config:/mosquitto/config -v $(pwd)/mosquitto/data:/mosquitto/data -v $(pwd)/mosquitto/log:/mosquitto/log %%IMAGE%% | |
$ docker run -it -p 1883:1883 -v "$PWD/mosquitto/config:/mosquitto/config" -v "$PWD/mosquitto/data:/mosquitto/data" -v "$PWD/mosquitto/log:/mosquitto/log" %%IMAGE%% |
eclipse-mosquitto/content.md
Outdated
## Configuration | ||
|
||
When running the image, the default configuration values are used. To use a custom configuration file, mount a **local** configuration file to `/mosquitto/config/mosquitto.conf` | ||
When running the image, the default configuration values are used. To use a custom configuration file, create your mosquitto.conf in `$(pwd)/mosquitto/config/mosquitto.conf`, then mount the config directory to `/mosquitto/config`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running the image, the default configuration values are used. To use a custom configuration file, create your mosquitto.conf in `$(pwd)/mosquitto/config/mosquitto.conf`, then mount the config directory to `/mosquitto/config`. | |
When running the image, the default configuration values are used. To use a custom configuration file, create your mosquitto.conf in `$PWD/mosquitto/config/mosquitto.conf`, then mount the config directory to `/mosquitto/config`. |
eclipse-mosquitto/content.md
Outdated
For example, if you use port 1883 and port 8080: | ||
|
||
```console | ||
$ docker run -it -p 1883:1883 -p 8080:8080 -v $(pwd)/mosquitto/config:/mosquitto/config %%IMAGE%% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ docker run -it -p 1883:1883 -p 8080:8080 -v $(pwd)/mosquitto/config:/mosquitto/config %%IMAGE%% | |
$ docker run -it -p 1883:1883 -p 8080:8080 -v "$PWD/mosquitto/config:/mosquitto/config" %%IMAGE%% |
5a9d4a2
to
aa625c5
Compare
aa625c5
to
2bf3f35
Compare
Thanks, that's bad habit of mine :) |
No description provided.