Replace quoted text by source code element

Better for copy paste to have all backslash for bash.
This commit is contained in:
Florian C 2018-10-17 08:42:32 -04:00 committed by GitHub
parent af73341239
commit 19024afa2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,18 +41,19 @@ Clone this repository :
*The following command uses the **default values**.* *The following command uses the **default values**.*
> sudo docker run \ ```bash
> -p 80:80 \ sudo docker run \
> --name myocsinventory \ -p 80:80 \
> -e OCS_DBNAME=ocsweb \ --name myocsinventory \
> -e OCS_DBSERVER_READ=localhost \ -e OCS_DBNAME=ocsweb \
> -e OCS_DBSERVER_WRITE=localhost \ -e OCS_DBSERVER_READ=localhost \
> -e OCS_DBUSER=ocs \ -e OCS_DBSERVER_WRITE=localhost \
> -e OCS_DBPASS=ocs \ -e OCS_DBUSER=ocs \
> -itd \ -e OCS_DBPASS=ocs \
> ocsinventory/ocsinventory-docker-image:latest \ -itd \
> bash ocsinventory/ocsinventory-docker-image:latest \
bash
```
---------- ----------
### Use setup.sh to start you OCSInventory container ### Use setup.sh to start you OCSInventory container
@ -103,18 +104,20 @@ Create a data directory on your host system:
Start your OCSInventory container like this: Start your OCSInventory container like this:
> sudo docker run \ ```bash
> -p 80:80 \ sudo docker run \
> --name myocsinventory \ -p 80:80 \
> -v /my/own/datadir:/data/save/ocsinventory \ --name myocsinventory \
> -e OCS_DBNAME=ocsweb \ -v /my/own/datadir:/data/save/ocsinventory \
> -e OCS_DBSERVER_READ=localhost \ -e OCS_DBNAME=ocsweb \
> -e OCS_DBSERVER_WRITE=localhost \ -e OCS_DBSERVER_READ=localhost \
> -e OCS_DBUSER=ocs \ -e OCS_DBSERVER_WRITE=localhost \
> -e OCS_DBPASS=ocs \ -e OCS_DBUSER=ocs \
> -itd \ -e OCS_DBPASS=ocs \
> ocsinventory/ocsinventory-docker-image:latest \ -itd \
> bash ocsinventory/ocsinventory-docker-image:latest \
bash
```
The option -v /my/own/datadir:/data/save/ocsinventory mounts the /my/own/datadir directory from the host system as /data/save/ocsinventory inside the container. The option -v /my/own/datadir:/data/save/ocsinventory mounts the /my/own/datadir directory from the host system as /data/save/ocsinventory inside the container.
@ -128,20 +131,22 @@ Create a volume:
Run your container: Run your container:
> sudo docker run \ ```bash
> -p 80:80 \ sudo docker run \
> --name name-container \ -p 80:80 \
> -v ocsdata:/usr/share/ocsinventory-reports/ \ --name name-container \
> -v ocsdata:/etc/ocsinventory-reports/ \ -v ocsdata:/usr/share/ocsinventory-reports/ \
> -v ocsdata:/var/lib/ocsinventory-reports/ \ -v ocsdata:/etc/ocsinventory-reports/ \
> -e OCS_DBNAME=ocsweb \ -v ocsdata:/var/lib/ocsinventory-reports/ \
> -e OCS_DBSERVER_READ=localhost \ -e OCS_DBNAME=ocsweb \
> -e OCS_DBSERVER_WRITE=localhost \ -e OCS_DBSERVER_READ=localhost \
> -e OCS_DBUSER=ocs \ -e OCS_DBSERVER_WRITE=localhost \
> -e OCS_DBPASS=ocs \ -e OCS_DBUSER=ocs \
> -itd \ -e OCS_DBPASS=ocs \
> ocsinventory/ocsinventory-docker-image:latest \ -itd \
> bash ocsinventory/ocsinventory-docker-image:latest \
bash
```
It is advisable to keep the directories mentioned in the example: It is advisable to keep the directories mentioned in the example: