Change bash text instructions
This commit is contained in:
parent
f07d2eba4b
commit
101ffe3e4a
56
README.md
56
README.md
@ -35,9 +35,10 @@ OCS Inventory NG includes the packet deployment functionality to be sure that al
|
|||||||
Starting a **OCSInventory container** is simple:
|
Starting a **OCSInventory container** is simple:
|
||||||
Clone this repository :
|
Clone this repository :
|
||||||
|
|
||||||
> sudo git clone https://github.com/OCSInventory-NG/OCSInventory-Docker-Image.git
|
```bash
|
||||||
> cd OCSInventory-Docker-Image
|
sudo git clone https://github.com/OCSInventory-NG/OCSInventory-Docker-Image.git
|
||||||
|
cd OCSInventory-Docker-Image
|
||||||
|
```
|
||||||
|
|
||||||
*The following command uses the **default values**.*
|
*The following command uses the **default values**.*
|
||||||
|
|
||||||
@ -59,21 +60,23 @@ bash
|
|||||||
|
|
||||||
Enter the directory you just clone, and run the setup.sh script
|
Enter the directory you just clone, and run the setup.sh script
|
||||||
|
|
||||||
> cd OCSInventory-Docker-Image
|
```bash
|
||||||
> sudo bash setup.sh
|
cd OCSInventory-Docker-Image
|
||||||
|
sudo bash setup.sh
|
||||||
|
```
|
||||||
Follow the steps, the script will do the work for you
|
Follow the steps, the script will do the work for you
|
||||||
|
|
||||||
### Environmental variables options
|
### Environmental variables options
|
||||||
|
|
||||||
Use the following environmental variables to connect your MySQL Server.
|
Use the following environmental variables to connect your MySQL Server.
|
||||||
|
|
||||||
> OCS_DBNAME= *(Name of your database)*
|
```bash
|
||||||
> OCS_DBSERVER_READ= *(Database Server)*
|
OCS_DBNAME= *(Name of your database)*
|
||||||
> OCS_DBSERVER_WRITE=*(Database Server)*
|
OCS_DBSERVER_READ= *(Database Server)*
|
||||||
> OCS_DBUSER= *(User database)*
|
OCS_DBSERVER_WRITE=*(Database Server)*
|
||||||
> OCS_DBPASS= *(User password)*
|
OCS_DBUSER= *(User database)*
|
||||||
|
OCS_DBPASS= *(User password)*
|
||||||
|
```
|
||||||
----------
|
----------
|
||||||
|
|
||||||
### Using Docker container
|
### Using Docker container
|
||||||
@ -86,12 +89,14 @@ If you want to run your OCSInventory within a MYSQL docker container, simply sta
|
|||||||
|
|
||||||
The docker exec command allows you to run commands inside a Docker container. The following command line will give you a bash shell inside your OCSInventory container:
|
The docker exec command allows you to run commands inside a Docker container. The following command line will give you a bash shell inside your OCSInventory container:
|
||||||
|
|
||||||
> sudo docker exec -it yourcontainerOCSInventory bash
|
```bash
|
||||||
|
sudo docker exec -it yourcontainerOCSInventory bash
|
||||||
|
```
|
||||||
You can access to the container logs through the following Docker command:
|
You can access to the container logs through the following Docker command:
|
||||||
|
|
||||||
> sudo docker logs yourcontainerOCSInventory
|
```bash
|
||||||
|
sudo docker logs yourcontainerOCSInventory
|
||||||
|
```
|
||||||
----------
|
----------
|
||||||
|
|
||||||
### Create a volume back up from the docker's host
|
### Create a volume back up from the docker's host
|
||||||
@ -100,8 +105,9 @@ The Docker documentation is a good starting point for understanding the differen
|
|||||||
|
|
||||||
Create a data directory on your host system:
|
Create a data directory on your host system:
|
||||||
|
|
||||||
> mkdir /my/own/datadir
|
```bash
|
||||||
|
mkdir /my/own/datadir
|
||||||
|
```
|
||||||
Start your OCSInventory container like this:
|
Start your OCSInventory container like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -127,8 +133,9 @@ The option -v /my/own/datadir:/data/save/ocsinventory mounts the /my/own/datadi
|
|||||||
|
|
||||||
Create a volume:
|
Create a volume:
|
||||||
|
|
||||||
> docker volume create ocsdata
|
```bash
|
||||||
|
docker volume create ocsdata
|
||||||
|
```
|
||||||
Run your container:
|
Run your container:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -150,10 +157,11 @@ bash
|
|||||||
|
|
||||||
It is advisable to keep the directories mentioned in the example:
|
It is advisable to keep the directories mentioned in the example:
|
||||||
|
|
||||||
> /var/lib/ocsinventory-reports/ <br>
|
```
|
||||||
> /etc/ocsinventory-reports/ <br>
|
/var/lib/ocsinventory-reports/
|
||||||
> /usr/share/ocsinventory-reports/ocsreports/ <br>
|
/etc/ocsinventory-reports/
|
||||||
|
/usr/share/ocsinventory-reports/ocsreports/
|
||||||
|
```
|
||||||
They contain the necessary information for a proper server and web interface functioning
|
They contain the necessary information for a proper server and web interface functioning
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user