singlestore-labs / singlestoredb-dev-image

The SingleStoreDB Dev Container is the fastest way to develop with SingleStore on your laptop or in a CI/CD environment.
Apache License 2.0
40 stars 15 forks source link

Container is not using ROOT_PASSWORD - Unable to log into cluster #35

Closed larskoole closed 1 year ago

larskoole commented 1 year ago

Describe the bug I can't log into the cluster.

When I navigate to http://localhost:8080/connect/localhost and log in with root as username and admin as password I get a The credentials are incorrect. Please verify them and try again. message.

To Reproduce Steps to reproduce the behavior:

  1. Run a fresh container
    docker run \
    -d --name singlestore \
    -e SINGLESTORE_LICENSE="private of course" \
    -e ROOT_PASSWORD=“admin” \
    -p 3306:3306 -p 8080:8080 -p 9000:9000 \
    -v singlestore_data:/data \
    ghcr.io/singlestore-labs/singlestoredb-dev:latest
  2. Go to http://localhost:8080/connect/localhost
  3. Log in with root as username and admin as password

Expected behavior The ability to log in.

Screenshots

image

Desktop (please complete the following information):

Additional context I'm using OrbStack so I've got no Docker for Mac installed. When I go into the container and do echo $ROOT_PASSWORD I do get "admin" as response.

larskoole commented 1 year ago

Apparently the command from the docs didn't work for me. What did work was the following:

docker run \
    -d --name singlestore \
    --env=SINGLESTORE_LICENSE=secret \
    --env=ROOT_PASSWORD=admin \
    -p 3306:3306 -p 8080:8080 -p 9000:9000 \
    -v singlestore_data:/data \
    ghcr.io/singlestore-labs/singlestoredb-dev:latest

The thing I changed was instead of using -e I used --env=.