Closed fam4r closed 4 years ago
Hi fam4r, i solved this issue just using MYSQL_PASSWORD
and OCS_DBPASS
with the same value. I think this occurs because OCS_DBPASS
is used in z-ocsinventory-server.conf
as the value for mysql connection in ocsinventory-server and the MYSQL_PASSWORD
is used in ocsinventory-db.
Unfortunately the logs ocsinventory-db still emitting, despite i can work with ocs normally
[Note] Access denied for user 'ocs'@'172.20.0.3' (using password: YES)
Hi,
Our Docker image has been reworked completly. 2.6 / nightly / dev tags are now available.
A complete documentation is available on wiki. Compose files are now located on the image repository and not on this one anymore.
Regards, Gilles Dubois.
General informations
Docker host's operating system :
Docker informations
Docker compose version :
Docker version :
Dockerfile:
Problem's description
Hello,
I can't find a way to install OCS Inventory via Docker.
I used the provided
docker-compose.yml
file and changed the following variables (as you can see in the Dockerfile above):1) I don't understand if the variables
OCS_DBUSER
/OCS_PASS
andMYSQL_USER
/MYSQL_PASSWORD
must be the same. 2) Using the above Dockerfile, when I executedocker-compose up
and go tohttp://localhost/ocsreports/
I get the following error:So I connected to the
ocsinventory-db
container and I noticed two things:root
MySQL user was stillmdp
and nottestonly
(see Dockerfile)retigest
user in themysql.user
table!Then, according to https://github.com/OCSInventory-NG/OCSInventory-Docker-Image/issues/12, i tried to put the
install.php
file into the directory/usr/share/ocsinventory-reports/ocsreports/
and went tohttp://localhost/ocsreports/install.php
.Using the default credentials
root
andmdp
the page said:Finally, clicking on
Click here to enter OCS-NG GUI
and submitting the credentialsadmin
/admin
I was able to login.I can not understand: maybe the DB is not being updated with the provided environment variables? But why the
retigest
DB is being created?It can be fixed or have I need to perform such operations manually like:
root
password with something likeALTER USER
retigest
MySQL user ?