hawkbit icon indicating copy to clipboard operation
hawkbit copied to clipboard

Run hawkBit Update Server with services as Docker Stack or as Docker Compose fails due to MySQL container issue.

Open mgilroy opened this issue 4 years ago • 1 comments

Hi,

Following the getting started guide https://www.eclipse.org/hawkbit/gettingstarted I've been unable to run either the instructions to run hawkBit Update Server with services as Docker Stack or as Docker Compose

docker stack deploy -c docker-compose-stack.yml hawkbit

or

docker-compose up -d

The issue appears to be the inclusion of the following line in the hawkbit-runtime/docker/docker-compose.yml file:

MYSQL_USER: "root"

Removing this line and both docker commands work.

The default username and password of admin:admin are also not stated anywhere in the getting started guide.

mgilroy avatar Jul 07 '21 11:07 mgilroy

Hi @mgilroy , yes you are right. It looks like it is no longer working like this since this mysql PR was merged. MYSQL_USER: "root" is not required anymore and created by default (see https://hub.docker.com/_/mysql/). I would suggest to add a respective comment in both docker files and remove the MYSQL_USER property.

Indeed, also the documentation has room for improvement like mentioning the default username and password in the getting started guide. Would you mind contributing these small fixes? :)

floruschbaschan avatar Jul 07 '21 14:07 floruschbaschan